Deja: Open-Source Local Memory Layer for Coding Agents
Deja indexes Claude Code, Codex CLI and opencode session logs into a local, redacted memory layer with MCP recall, auto-context, and SSH sync.
Deja is a zero-dependency Go binary that indexes local session logs from Claude Code, Codex CLI, and opencode into a searchable, local-only memory layer. It turns gigabytes of past agent conversations into sub-10ms full-text search, retroactively covering sessions logged before installation.
Beyond search, deja exposes an MCP "recall" tool so agents can query prior sessions directly, plus an optional SessionStart hook that auto-injects relevant context before a prompt is even sent. Secrets such as API keys, JWTs, and private keys are redacted at index time, making the cached history safe to share or sync.
For teams working across multiple machines, deja sync moves memory via a shared folder or a single SSH command, using append-only, idempotent batches. Everything runs locally: no models to download, no background services, and no network code in the indexing or search path — a lightweight alternative to heavier memory platforms like Mem0 or Letta.