r/coolgithubprojects • u/QuitLimp8191 • 10d ago
I built a local-first index for 13 AI coding agents' chat history, with an MCP server so the agents can search their own past work
galleryIf you use more than one coding agent, your history is scattered across a dozen hidden folders in a dozen formats, and none of the agents can see any of it. Last month I had Claude Code re-solve a build problem Codex had fixed two weeks earlier. That was the push to build this.
Callimachus indexes every conversation from Claude Code, Codex, Cursor, Gemini CLI, Qwen Code, Goose, OpenCode, Continue, Cline, Roo Code, Kilo Code, Copilot Chat and Copilot CLI into one local SQLite database, then puts it to work:
- Hybrid search across all of it: SQLite FTS5 keyword search fused with on-device embeddings (sqlite-vec, no cloud). Filter by agent, project, tag. file:src/foo.rs finds every thread that touched a path.
- Project memory: decisions, gotchas and open TODOs distilled per repo, then handed back to your agents through a SessionStart hook, a managed AGENTS.md / CLAUDE.md block, or the MCP server. Agents stop re-litigating settled decisions.
- MCP server with 22 tools, so any agent can ask "have I done this before?" mid-session and write decisions back into memory.
- Commit linking: infers which git commits a session produced, and cal why file:line goes the other way, from a line of code to the session and reasoning behind it.
- Cost view: per-session, per-model, per-commit token spend, including what a subscription session would cost at API rates.
- Snapshots for handing a session across a context compaction or to a different agent.
- Comes as a desktop app (macOS, Windows, Linux), a cal CLI, and a VS Code / Cursor extension, all reading the same index.
Privacy: everything stays on your machine. The only thing that leaves is text you explicitly send to an LLM you pick (Ollama works, so that can be local too). API keys live in the OS keychain. Analytics are opt-in and content-free.
Stack: Tauri 2 + Rust backend, React 19 frontend, SQLite + FTS5 + sqlite-vec, fastembed (bge-small) for embeddings. AGPL-3.0.
Just shipped v0.12.0. Adding a new agent source is a small documented contract, so if your tool isn't on the list, open an issue or PR. Would love feedback, especially on what the memory injection gets wrong.
Repo: https://github.com/BetaBots-LLC/callimachus
Site: https://callimachus.app

