These three commands handle the operational layer of Engram: moving memories from the staging queue into active recall, connecting harnesses to Engram over the Model Context Protocol, and running the MCP server itself.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xantorres/engram/llms.txt
Use this file to discover all available pages before exploring further.
sync is safe to run repeatedly — it defaults to a dry-run so you can preview changes before committing. init is a one-time wiring step per harness. serve keeps the MCP server alive for agent sessions that communicate over stdio.
sync
Runs the promotion bridge over every pending candidate and decides how each one should be routed: direct append, queued for human review, or skipped. Without --apply, the command is a harmless dry-run that shows what would happen.
Arguments & Options
Execute the routing decisions and write changes to the memory store. Without this flag, Engram prints a dry-run summary and exits without modifying anything.Both this flag and autopromote being enabled are required for actual writes to occur. Enable autopromote via
autopromote: true in ~/.config/engram/config.toml or the environment variable ENGRAM_AUTOPROMOTE=true. If autopromote is not set, --apply is accepted but no writes occur.Output
The summary line reports three counters:--apply is active:
| Route | Meaning |
|---|---|
append | Low-risk fact; promoted directly to recall on --apply. |
queue | Higher-risk fact (tier-3); moved to the review queue, requires promote --confirm. |
skip | Duplicate or otherwise filtered out; no action taken. |
Examples
Preview what sync would do without making any changes:Run
engram sync (no flags) as often as you like — it is read-only in dry-run mode and will never corrupt your memory store.init
Prints the JSON configuration snippet you need to add to a harness’s MCP config file in order to wire it to the Engram MCP server. The snippet is harness-specific and ready to paste.
Arguments & Options
The agent harness to generate config for.Valid values:
claude-code, codex, opencode.Examples
Generate a Claude Code MCP config snippet:serve
Starts the Engram MCP server over stdio. The server exposes two tools (remember, recall) and one resource (memory://recall) to any connected harness. This command is normally invoked automatically by the harness using the config produced by engram init, but you can also run it directly for debugging.
Arguments & Options
This command takes no arguments or options.Exposed MCP surface
| Type | Name | Description |
|---|---|---|
| Tool | remember | Stage a fact into memory. Mirrors engram remember. |
| Tool | recall | Query promoted memories. Mirrors engram recall. |
| Resource | memory://recall | Static snapshot of all promoted memories for context injection. |
Example
serve blocks and communicates over stdin/stdout. It is designed to be launched as a subprocess by your harness, not run interactively. Use engram init <harness> to get the correct launch config rather than starting it manually.