llmwiki export --target json produces a typed envelope that @atomicmemory/llmwiki ingests as one Atomic Memory record per wiki page, with all advisory metadata preserved.
The two tools at a glance
The bridge flows one direction: llmwiki compiles and exports → Atomic Memory ingests. On re-export with the same
--project-id, the bridge updates existing records rather than creating duplicates.
Use the JSON export for the Atomic Memory bridge. Use Open Knowledge Format when you want to exchange compiled knowledge with OKF-aware tools or review an external OKF bundle before merging it into a wiki.
Export your wiki to Atomic Memory
1
Compile your wiki
Make sure your wiki is up to date before exporting. Run a full incremental compile to ensure all pending sources are reflected in the pages:
2
Export to JSON with a project ID
Run This writes a JSON export file containing one envelope per compiled page.
llmwiki export with --target json and a stable --project-id. The project ID pins a consistent identifier inside the JSON envelope so the bridge can derive deterministic external IDs for each page - re-exporting with the same ID updates existing Atomic Memory records rather than duplicating them.3
Install the bridge package
The bridge is provided by the
@atomicmemory/llmwiki package:4
Import into Atomic Memory
Follow the full compile → export → import → package workflow in the bridge cookbook. The cookbook covers authentication, import options, and how to query the resulting records from an agent.
What --project-id does
When you pass --project-id my-project, llmwiki embeds that string in the JSON export envelope alongside each page. The bridge uses the project ID and the page slug together to derive a deterministic external ID for each Atomic Memory record.
This means re-exporting after a recompile and re-importing will update the existing records rather than insert duplicates - provided you use the same --project-id value each time. Without a project ID, the bridge cannot guarantee stable external IDs across exports.
Choose a short, stable, slug-like value - something that describes the project and does not change between runs. For example: engineering-handbook, ml-research-q4, onboarding-docs.
JSON envelope shape
The JSON export preserves the full per-page advisory metadata that llmwiki tracks. The bridge maps these fields undermemory.metadata.llmwiki.* on each Atomic Memory record:
This metadata is advisory - it reflects the state of the wiki at the time of export and is not re-checked by Atomic Memory at query time.
When to use each tool
Use llmwiki alone when you want:- A persistent, browsable knowledge base compiled from your sources
- A RAG index with hybrid semantic and BM25 retrieval
- A CI-checked, lint-gated knowledge artifact
- A source for domain packs or
llms.txtexport for other tools - Obsidian-compatible markdown that you can open and edit directly
- Agent workflows where the agent needs structured, citation-traced context at runtime
- The ability to correct or annotate imported wiki knowledge from inside an agent session
- Scoped, per-project memory that agents can search independently of the full wiki
- A runtime memory layer that grows from both the compiled wiki and agent activity
Next steps
- See CLI reference: llmwiki export for all export targets and flags.