Multi-agent shared brain across Claude, Codex, Antigravity, Gemini, Copilot, and VS Code.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Multi-agent shared brain across Claude Code/Desktop, Codex,
Antigravity CLI (agy), Copilot, and VS Code.
Cross-session memory, self-improving skill loops, and inter-agent signaling β
one local MCP server turns parallel agent instances into a coordinated
multi-agent system instead of N isolated chats.
Every connected client (Claude Code, Claude Desktop, Codex CLI + desktop, Antigravity CLI, Copilot, every MCP-aware VS Code extension) shares one SQLite store, one set of threads, one user model, and one learning loop that improves the skill library autonomously over time.
The brief format is dense β structural tags, opaque IDs, ~6 KB per session-start injection. Optimized for agent consumption, not human reading.
Every agent CLI starts cold. Context dies at session boundaries. Skills you taught Claude don't transfer to Codex. Threads you closed in yesterday's Antigravity chat are invisible to today's Copilot. Parallel agent instances running the same task don't know about each other and duplicate work or step on each other's writes.
thread-keeper is the substrate underneath. Three things that together make it more than a memory store:
spawn primitive launches child
agents in parallel, each gets a self_cid + sees the same memory.
broadcast / whisper / inbox / wait / ask / respond let
concurrent sessions signal each other across CLIs. Parent /
children / sibling agents become a coordinated swarm, not isolated
chats.~/.claude/skills/,
~/.codex/skills/, ~/.gemini/config/skills/ for Antigravity,
existing ~/.agents/skills/, extra roots from
THREADKEEPER_EXTRA_SKILLS_DIRS, and ~/.threadkeeper/skills/), with
lessons.md as a fallback for CLIs without a native skills loader.Foreground MCP servers also run a daily self-update check by default. Source
checkouts fast-forward their tracked git branch and reinstall the editable
package; PyPI/pipx/venv installs run pip install --upgrade in the current
interpreter environment only after the latest PyPI release files have matching
Integrity API provenance from the expected GitHub Trusted Publisher. Dirty or
diverged git checkouts are skipped rather than overwritten. Restarts are gated
on install/setup success plus a subprocess import smoke check, so a broken or
unverified update is recorded but the current server keeps running.
Upstream PyPI publishing is intentionally gated: green merge-to-main builds are
auto-tagged, but every upload pauses for a human approval on the protected
pypi GitHub Environment (a maintainer-signed annotated v* tag remains the
manual override path), as described in
docs/RELEASING.md.
They also run a twice-weekly installed-skill updater by default. It keeps all configured CLI skill roots in sync, adopts newer local copies installed into a non-primary root, and updates GitHub-backed skills when a tracked upstream source changes.
The shortest path β PyPI + pipx (recommended):
thread-keeper-setup detects every CLI you have installed (Claude
Code / Claude Desktop / Codex CLI + desktop / Antigravity CLI agy /
Copilot / VS Code), registers the MCP server in each one's
config, copies hooks to
~/.threadkeeper/hooks/, and writes a managed instructions block into
each CLI's per-user instructions file (CLAUDE.md / AGENTS.md /
copilot-instructions.md β Claude Desktop and VS Code
have no global instructions file, so that step is skipped for them).
Restart your CLI of choice. Hook-capable clients inject a brief on the first
message; hookless clients such as Codex and Antigravity CLI either follow the
managed instructions block and call brief() / context() before answering, or
β on hosts that support MCP resources β pull the brief as the read-only
memory://brief resource the host attaches automatically (see
MCP primitives).
If you don't have pipx and don't want to install it:
For development (editable install from a git checkout) or to track the bleeding edge:
To preview without writing anything:
| CLI | MCP config | Instructions file | Hooks | Transcripts ingested |
|---|---|---|---|---|
| Claude Code | ~/.claude.json mcpServers | ~/.claude/CLAUDE.md | ~/.claude/settings.json hooks | ~/.claude/projects/**/*.jsonl |
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json mcpServers (macOS); %APPDATA%\Claude\β¦ (Win); ~/.config/Claude/β¦ (Linux) | none (GUI-only) | not supported by the app | none β chats live in Electron IndexedDB |
| Codex (CLI + desktop) | ~/.codex/config.toml [mcp_servers] (shared between CLI and Codex.app) | ~/.codex/AGENTS.md | not supported | ~/.codex/sessions/**/rollout-*.jsonl |
Antigravity CLI (agy) | ~/.gemini/config/mcp_config.json mcpServers | ~/.gemini/config/AGENTS.md | not wired yet | not yet parsed β sqlite/protobuf under ~/.gemini/antigravity-cli/conversations/*.db |
| Copilot | ~/.copilot/mcp-config.json mcpServers | ~/.copilot/copilot-instructions.md | ~/.copilot/hooks.json | ~/.copilot/session-store.db (sqlite) |
| VS Code | ~/Library/Application Support/Code/User/mcp.json servers (macOS); %APPDATA%\Code\User\mcp.json (Win); ~/.config/Code/User/mcp.json (Linux) | none (per-workspace only) | not supported | none β extensions own their history |
Every CLI that produces parseable transcripts feeds the same
dialog_messages table with a source tag, so dialog_search() finds
matches regardless of where the conversation happened. Claude Desktop,
Antigravity CLI, and the VS Code adapter are the exceptions β MCP registration
only; their chats don't reach the table for now (Electron IndexedDB on the
Claude Desktop side; sqlite/protobuf on the Antigravity side; per-extension
stores on the VS Code side).
VS Code's user-level mcp.json is the central host that every
MCP-aware VS Code extension consumes β GitHub Copilot Chat, the
Anthropic Claude IDE plugin, the OpenAI Codex IDE plugin, Continue,
Cline, β¦ β so a single registration there reaches all of them at once.
Adding a new CLI = one file under threadkeeper/adapters/ implementing
the CLIAdapter contract. See CONTRIBUTING.md.
MCP has three server primitives. thread-keeper uses all three, mapped to the read/act split, plus MCP elicitation for host-native confirmations:
| Primitive | Control | What thread-keeper exposes | When to use |
|---|---|---|---|
| Tools | model-controlled (may act) | the full surface β brief, note, spawn, search, curator_review, β¦ | the agent decides to call them |
| Resources | application-controlled, read-only | memory://brief, memory://context, memory://dashboard, memory://agent-status | the host attaches/pulls them automatically |
| Prompts | user-controlled templates | review_recent_threads, run_library_curation, audit_threadkeeper | the user runs them (Claude Code: /mcp__thread-keeper__<name>) |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/thread-keeper)<a href="https://allmcps.com/mcp/thread-keeper"><img src="https://allmcps.com/api/badge/thread-keeper?style=directory" alt="Thread Keeper on AllMCPs" /></a>