Exposes engram's knowledge graph as a Zed slash command via the context server protocol (JSON-RPC over stdio).
- engram installed globally:
npm install -g engramx - Project indexed:
engram initrun in your project root
Add to your Zed settings.json:
{
"context_servers": {
"engram": {
"command": {
"path": "engram",
"args": ["context-server"]
}
}
}
}Open ~/.config/zed/settings.json (macOS) or ~/.local/config/zed/settings.json (Linux) and merge the block above.
In Zed's agent panel, type /engram followed by your query:
/engram auth flow
/engram database schema decisions
/engram known issues GraphStore
engram queries the local knowledge graph and injects matching context — architecture nodes, past decisions, mistake warnings — directly into the AI's prompt.
- Zed sends
context/liston startup — engram advertises theengramslash command. - When you invoke
/engram <query>, Zed sendscontext/fetchwith{ query, project }. - The server runs
engram query <query> -p <project> --budget 2000as a subprocess. - The result (nodes, edges, mistake warnings) is returned as text and injected into context.
Pass a specific project path via the project param. By default the server uses process.cwd() at the time Zed launches it.
- "engram query failed" — run
engram initin your project root, thenengram(mines the codebase). - No results — try a broader query, or run
engram stats -p .to check node count. - Command not found — ensure
engramis on yourPATH(which engram).