Memroot / How it works
From session to signal.
Connect Claude Code, Codex or Grok to Memroot through MCP, save engineering lessons with evidence, and retrieve a bounded memory pack for your next task.
Connect your agents.
One setup command connects Claude Code, Codex and Grok. Memroot’s hooks remind each agent to check Memroot before it works. Browser authorization controls what each connection can access.
Capture the lessons.
Agents save lessons as they work. Session capture runs during the work and when a session ends, redacts it on your machine and turns it into typed lessons with evidence; the transcript is never uploaded.
Let it dream.
Dreaming runs in the background, like sleep consolidating the day. It merges memories that state the same fact; you can undo a merge until any memory in it changes. Newer lessons replace the ones they correct, and agents’ feedback shifts relevance.
Recall what matters.
Memroot’s advanced, context-aware ranking reads the task, the files in play and your Git state, and gives the agent only the memories that matter. When nothing fits, it can return none. Every agent and teammate shares the same memory, on any machine.
Get connected
Quick start.
Choose your agent. Follow three steps.
Claude Code
Run in your repository
Setup Claude Codenpx memroot@latest setup --agent claudeAuthorize in Claude Code
Inside Claude Code/mcpSelect memroot, choose Authenticate, then restart Claude Code.
Optional: import existing agent memory.
Import what your agents already remembernpx memroot@latest import
Codex
Run in your repository
Setup Codexnpx memroot@latest setup --agent codexApprove in your browser
Setup opens Codex’s sign-in page. Approve access, then restart Codex.
Optional: import existing agent memory.
Import what your agents already remembernpx memroot@latest import
Grok
Run in your repository
Setup Groknpx memroot@latest setup --agent grokAuthorize in Grok
Inside Grok/mcpsRestart Grok, run /mcps, select memroot, then press i to sign in with your browser.
Check the connection
Setup installs the plugin and registers the MCP server. After you authorize it, ask Grok to run the Memroot status skill or call connection_status, then save and retrieve a test memory. Setup itself doesn’t verify saving or retrieval.
Antigravity CLI
Run in your repository
Setup Antigravity CLInpx memroot@latest setup --agent agyAuthorize in your browser
Memroot loginnpx memroot@latest agy loginApprove the separate Memroot connection in your browser, then restart Antigravity CLI.
Check the connection
Ask Antigravity to call connection_status. Use /memroot:memroot-project to select a project, then ask Antigravity to check Memroot for a project question.
Under the surface
Inside the memory workflow.
What a memory contains
Engineering lessons belong in a typed memory graph, with evidence, provenance, and Git context.
Durable engineering lessons such as decisions, proven fixes, conventions, and failed approaches.
The memory graph records evidence, provenance, and explicit stale or superseded states.
What Memroot stores
Memroot stores structured engineering memories, not full coding-session transcripts.
What comes back on the next task
Retrieval searches memories by meaning using embeddings and supplied Git context when available, then checks project access and memory state before returning a bounded memory pack. The pack includes evidence and staleness signals. Retrieved memories are context to check against your current code, not instructions.
Memory packs carry task-specific context instead of an unbounded history dump.
Works with
One memory. Any agent.
Memroot is built on agent-neutral contracts.
Memory packs give agents relevant context on demand.
- Claude Code
- Codex
- Grok
- Antigravity CLI
- Teammates
More agents and adapters are on the way.
Continue the work