Once memories are promoted, two commands make them useful in practice.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.
recall gives you an interactive search interface: pass a keyword query and Engram returns the best-matching promoted facts, ranked by token overlap and confidence. gen-context goes a step further — it renders all top memories into a structured block that you can embed directly into AGENTS.md or CLAUDE.md, so every new agent session starts with the right context pre-loaded. Both commands operate exclusively on promoted + non-stale memories.
recall
Searches promoted memories and returns the best matches, ranked by keyword overlap with the query and then by confidence score. When called with no query, it returns the top memories by confidence alone — useful for a quick health-check of what agents currently see.
Arguments & Options
Optional keyword query string. Engram tokenizes the query and ranks promoted memories by token overlap, breaking ties with confidence score. Omit to retrieve top memories sorted by confidence only.
Maximum number of results to return. Increase for broader exploration; lower for tight context windows.
Short alias for
--limit.Output format
Each result follows the pattern:Examples
Recall everything (top 20 by confidence):recall only surfaces memories with status: promoted that are within their freshness horizon (non-stale). Use engram list --status stale to see what has aged out and engram doctor to understand why.gen-context
Renders the top promoted memories into an <!-- engram --> block formatted for AGENTS.md or CLAUDE.md. Printed to stdout by default; use --write to atomically upsert the block directly into an existing file. Subsequent runs replace the previous block rather than appending.
Arguments & Options
Path to the file to upsert the memory block into. Engram performs an atomic write and replaces any existing
<!-- engram -->…<!-- /engram --> block. If the file has no existing block, the content is appended. Example: ./AGENTS.md.Maximum number of memories to include in the generated block.
Short alias for
--write.Short alias for
--limit.Output
Without--write, the rendered block is printed to stdout:
--write, Engram upserts the block and confirms:
Examples
Print the memory block to stdout (preview before writing):AGENTS.md:
CLAUDE.md with a smaller limit for a tighter context window:
The
--write path must already exist or be a writable location. Engram does not create parent directories. If the target file is new, create it first (even as an empty file) before running gen-context --write.