# Bring relevant knowledge into a session

Source: https://usecns.dev/engram-guide-bring-relevant-knowledge-into-a-session/

[Start here](https://usecns.dev/manual-engram/)
[CLI commands](https://usecns.dev/commands-engram/)
[Configuration & integration](https://usecns.dev/engram-topics/)

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](https://usecns.dev/engram-topic-mcp-protocol-and-results/) and [hook payloads](https://usecns.dev/engram-topic-hook-payloads-and-feedback/) 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](https://usecns.dev/engram-topic-roll-out-guards-and-authorize-overrides/).