Engram · Guides

Bring relevant knowledge into a session

Start with a task-specific view:

engram block --context 'synthetic fixture retry'

The bounded block shows short cues for incomplete memories and compact guidance for complete processes. Recall an incomplete cue before relying on its body. Try an exact key when known; use a natural-language query for discovery. Recalling a complete key can record a premature-completion penalty because its compact guidance was not sufficient.

For agent integration, register engram mcp as a stdio MCP server, or connect the supported harness hooks. Session-start injects cues, pre-tool-use checks relevant cues and guards, post-tool-use records structured feedback, and lifecycle hooks consolidate memory. See MCP inputs and results and hook payloads before wiring an adapter.

Guards protect mutations only through a wired pre-tool-use hook. An unread relevant cue may block with exit 2 until recalled; enforcing guards can block structural changes. Guards default to shadow mode, recording would-blocks rather than enforcing. Most internal hook/block errors fail open with diagnostics; invalid harness/OTE configuration can return 1. Inspect diagnostics: exit 0 does not prove learning or protection occurred. See guard rollout and overrides.