Project memory that survives compaction
Session summaries, decisions, gotchas, key files, mirrored memories, tasks, plans, and indexed code are loaded automatically at the next startup or prompt.
Shared memory for AI coding agents
Eagle Mem gives Claude Code, Codex, and Google Antigravity one hook-backed memory layer, gives Grok the same skills and CLI memory surface, and protects releases with local SQLite guardrails. Install once. Every future session starts warmer, safer, and less wasteful.
Eagle Mem is not a second brain pasted onto the side. It sits inside the agent loop, so recall, safety, and handoff data are created where the work actually happens.
Session summaries, decisions, gotchas, key files, mirrored memories, tasks, plans, and indexed code are loaded automatically at the next startup or prompt.
File-level guardrails and feature verification turn advisory memory into an enforced release boundary for push, PR, and publish commands.
Split broad work into owned lanes, launch the opposite agent in isolated git worktrees, and bring the worker's handoff back into the same project memory.
Eagle Mem installs hooks for Claude Code, Codex, and Google Antigravity, links Grok skills when `~/.grok` is present, runs schema migrations, enables patch auto-updates, and keeps the local database under your home directory.
npm install -g eagle-mem
eagle-mem install
The installer is not only copying shell scripts. It wires Eagle Mem into the places Claude Code, Codex, Grok, and Antigravity actually read on startup, then keeps those files current on `eagle-mem update`.
Registers lifecycle hooks in `~/.claude/settings.json`, links Eagle Mem skills into `~/.claude/skills`, and creates or updates the Eagle Mem section in `~/.claude/CLAUDE.md` so Claude knows the memory, verification, and orchestration protocol.
Enables `codex_hooks` in `~/.codex/config.toml`, registers hooks in `~/.codex/hooks.json`, links skills into `~/.codex/skills`, and creates or updates `~/.codex/AGENTS.md` with a clean-output contract so Codex does not print internal capture blocks to the user.
Links Eagle Mem skills into `~/.grok/skills` and uses `eagle-mem grok-bootstrap` to verify the setup. Grok can search memory, inspect tasks, coordinate lanes, and check Compaction Survival through the shared CLI. Native lifecycle hooks can be added later if Grok exposes compatible hook points.
Eagle Mem treats orchestration as an agent-run workflow. The active agent becomes the coordinator, creates durable lanes, launches the opposite agent in a git worktree, and records each worker's status back into the same project memory.
In monorepos and multi-app workspaces, agents can move between nested folders without splitting memory into separate projects. Hooks and statuslines resolve back to the session workspace, then repair stale rows safely.
Codex coordinators default to Claude Code workers. Claude Code coordinators default to Codex workers. The selected worker model, effort, branch, worktree, PID, log, and validation command are stored with the lane.
`eagle-mem orchestrate spawn` creates an isolated worktree, writes a self-contained worker prompt, launches the worker CLI, syncs completion or blockers, and mirrors the lane into shared tasks so the next session can resume cleanly.
A Codex coordinator can run `eagle-mem orchestrate spawn proof --foreground`, launch Claude Code with `claude-opus-4-7` at `xhigh`, then confirm the completed lane with `eagle-mem orchestrate --json`, `eagle-mem tasks completed`, and `eagle-mem orchestrate handoff`.
Hooks capture lightweight observations. Stop hooks store rich summaries. SessionStart and UserPromptSubmit inject only the pieces that matter for the current project and prompt.
SessionStart, PreToolUse, UserPromptSubmit, PostToolUse, Stop, SessionEnd.
Sessions, summaries, memories, tasks, guardrails, features, and code chunks.
Claude Code, Codex, and Antigravity recall through hooks; Grok can inspect the same project memory through skills and CLI commands.
Eagle Mem already survived compaction through per-turn capture and reload, but the
enriched summary was produced by a background job that, on auto-compaction,
could finish after the context window had already collapsed. The new
PreCompact hook runs that enrichment synchronously, before
compaction — for both manual and auto triggers. It is side-effect-only: it never blocks
compaction and never overwrites an agent-authored eagle-mem session save,
which is already richer and already survives. This builds on v4.14.0 governance parity
(eagle-mem gate, curator rule provenance) and the v4.13 full-spectrum
security & reliability hardening — with normal recall and capture unchanged.
Claude Code, Codex, Grok, Antigravity, and OpenCode now have clearer integration surfaces, documented capabilities, and a shared expectation: memory should stay source-attributed and locally inspectable.
The runtime can assess durable summaries, task state, orchestration lanes, and restore data so agents do not keep implementing blindly when context risk becomes too high.
Eagle Mem supplies durable recall, events, and verification evidence while project governance hooks decide when to warn, block, or force a handoff.