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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

memroot · setupQuick start

Claude Code

  1. Run in your repository

    Setup Claude Code
    npx memroot@latest setup --agent claude
  2. Authorize in Claude Code

    Inside Claude Code
    /mcp

    Select memroot, choose Authenticate, then restart Claude Code.

  3. Optional: import existing agent memory.

    Import what your agents already remember
    npx memroot@latest import

Codex

  1. Run in your repository

    Setup Codex
    npx memroot@latest setup --agent codex
  2. Approve in your browser

    Setup opens Codex’s sign-in page. Approve access, then restart Codex.

  3. Optional: import existing agent memory.

    Import what your agents already remember
    npx memroot@latest import

Grok

  1. Run in your repository

    Setup Grok
    npx memroot@latest setup --agent grok
  2. Authorize in Grok

    Inside Grok
    /mcps

    Restart Grok, run /mcps, select memroot, then press i to sign in with your browser.

  3. 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

  1. Run in your repository

    Setup Antigravity CLI
    npx memroot@latest setup --agent agy
  2. Authorize in your browser

    Memroot login
    npx memroot@latest agy login

    Approve the separate Memroot connection in your browser, then restart Antigravity CLI.

  3. 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.

Memroot privacy notice

Works with

One memory. Any agent.

Memroot is built on agent-neutral contracts.

Memory packs give agents relevant context on demand.

Memroot
  • Claude Code
  • Codex
  • Grok
  • Antigravity CLI
  • Teammates

More agents and adapters are on the way.

Continue the work

Let your next agent start where the last one stopped.

Create free account