Repository navigation
Description
Why
People switch between coding agents on one project, and each switch means explaining the project again: not only the code, but why decisions were made and what was already tried. memkernel is an MCP server, and Claude Code, Codex, Cursor and Antigravity can all use MCP servers, so in principle they can share one store. In practice, today:
- Session-start context is automatic only in Claude Code (
templates/hooks/session-start.py) and Kiro (templates/kiro/). In other tools the agent has the tools but nothing tells it torecallthe latest checkpoint and decisions when a session starts. - One shared server is possible but untested.
MEMKERNEL_TRANSPORT=streamable-http(withMEMKERNEL_HOSTandMEMKERNEL_PORT, README "Transports") lets several clients connect to one memkernel process. But Evaluate moving to mcp 2.x #95 found that no test starts a real HTTP server: the e2e tests use an in-memory transport. - Several separate stdio servers on one store (each tool starting its own memkernel) is what most users would try first, and it is untested. The store locks (memkernel-0-7-store-locks) cover the wiki import and tag writes, and the first-open race is fixed (A new store's first open races between the SessionStart hook and the MCP server: "table collections already exists" #69), but the design case is one server plus its hooks, not several live servers writing at once.
The goal is one correct record across tools, not better recall than a shared file. memkernel's 0.5 evaluation found no detectable difference against files alone (eval/lifecycle-suite/report-0.5.0.md). What a store adds over a pasted AGENTS.md is keeping that record correct over time: superseded decisions are not returned, code memories are revalidated against changed files, and with wiki-studio only approved pages come back.
Proposed (for a spec)
- One shared server, documented and tested.
- A README section: run memkernel once over Streamable HTTP and register it in each tool's MCP configuration.
- An end-to-end test that starts the server as a process and drives it with a live MCP client (overlaps with Evaluate moving to mcp 2.x #95's transport tests; one can serve both).
- Session-start context in the other tools.
- Instruction templates for Codex (an
AGENTS.mdblock), Cursor (rules) and Antigravity, telling the agent to recall the latest checkpoint (recall(checkpoint_only=true, order="newest")) and the project's decisions at the start, with the wiki workflow kept in one place (One job, one set of instructions: memkernel's and wiki-studio's agent guidance overlap on the wiki workflow #86). - For tools with a hook or startup-command system: a small CLI, for example
memkernel session-start, that prints the same block as the Claude Code hook (MemoryLifecycle.on_session_start). The roadmap already lists a "memkernel retain|recall|consolidate --jsonCLI for non-MCP harnesses". - Each tool's integration details (where rules live, whether a startup hook exists) are checked against that tool's current documentation when the spec is written.
- Instruction templates for Codex (an
- Several stdio servers on one store. Test concurrent writers from separate memkernel processes on one persisted store. Then either support it (with whatever locking it needs) or document plainly that the shared server (1) is the supported setup.
Out of scope
- A hub application or a sync service between tools: memkernel stays the memory layer.
- Capturing the other tools' transcripts automatically: that is Context rescue: fix the compaction hooks, then capture session knowledge before it is lost (0.5.1 → 0.6) #59 Phase 2 (a transcript reader per harness).
Acceptance (sketch)
- A documented setup where two different MCP clients use one memkernel store, with a test that runs it.
- In each tool covered, a new session starts with the latest checkpoint and the project's decisions, by hook or by instruction.
- A tested answer, supported or documented as unsupported, for several stdio servers on one store.
Related: #95 (mcp 2.x and the real transport tests), #59 (transcript capture), #86 (one home per instruction), #85 (injected memory is quoted as data, which applies to these tools too).
Activity
gosha70 commentedon Nov 8, 2026
Thanks! Recall is only as reliable as whatever triggers it, and that's what item 2 is about.
To your question: for now - it's for one developer using several coding tools on the same machine; MemKernel stays self-hosted and local by design: the store lives next to the code, and no session data leaves the machine. So a hosted recorder isn't the direction for this issue.
One thing that would help: you mentioned session hooks in Codex and Cursor. Do you have links to the docs for those? When the spec is written, I'll check each tool's current docs before deciding where a hook can replace instructions.
spec: #107 after review: host and origin checks, no spool line, Codex…
spec: #107, correct the HTTP security fact: the SDK already protects …
spec: #107 approved by the owner, D1-D5 as written
Merge pull request #141 from gosha70/spec/107-one-store-across-tools
spec: one memkernel store across several coding tools (gosha70#107)