Repository navigation
Labels
ambientAmbient/background agentsenhancementNew feature or requestretrievalRetrieval and RAGv2.1v2.1.0 milestone
Milestone
Description
Summary
A background daemon (synapsekit mesh start) that indexes every .md, CLAUDE.md, AGENTS.md, README.md, ADR, and design doc across every git repo on the user's machine, then builds a federated WorldModelRAG graph linking projects by shared entities (people, libraries, concepts, decisions).
Fits the framework
- Reuses
WorldModelRAG(v2.0: World-Model RAG — live causal knowledge graph over user data #735) as the graph substrate - Reuses existing
Loaderinterfaces — addsLocalMdLoader,GitRepoLoader - Reuses
SmartContextManager(feat: SmartContextManager with hierarchical allocation and prompt caching #711) for hierarchical retrieval across projects - Stored locally via
SQLiteVecStore+ Kuzu — no cloud egress unless opted in - Defaults to
EdgeRuntime(v2.0: Edge SynapseKit — on-device inference with cloud fallback #736) for extraction → privacy first
Design
from synapsekit.mesh import KnowledgeMesh
mesh = KnowledgeMesh(
roots=[\"~/code\", \"~/Documents/notes\"],
include=[\"*.md\", \"CLAUDE.md\", \"AGENTS.md\", \".cursor/rules/*\"],
extractor=EdgeRuntime.local(),
graph=WorldModelRAG.kuzu(\"~/.synapsekit/mesh.kuzu\"),
watch=True, # inotify/FSEvents
)
await mesh.query(\"How did I solve auth in any project last year?\")
# -> traverses cross-project entity links + retrieves chunks + cites file pathsComponents
-
synapsekit meshCLI:start,stop,status,reindex,query -
MeshDaemon— watches filesystems, incremental ingest -
LocalMdLoader— chunks markdown, preserves heading hierarchy -
GitRepoLoader— pulls README, ADRs, design docs, commit subjects -
CrossProjectEntityResolver— "Auth in repo A" links to "AuthService in repo B" -
DuplicationDetector— "You already wrote a retry decorator in repo X" - Privacy filter:
~/.synapsekit/mesh.ignore(gitignore-style) - MCP server: exposes the mesh as a tool to Claude Desktop / Cursor / Zed
Use cases
- "What pattern have I used for rate-limiting?"
- "Show every place I referenced FastAPI middleware"
- "Who collaborated with me on Postgres-heavy projects?" (across local + git history)
- "What does my future self need to know about this codebase?" → generate summary
Risks
- Disk usage on huge repos → incremental + LRU
- Sensitive content (private keys in markdown, credentials) → strict redaction before indexing
- Stale graph after rebase/squash → versioned re-ingest
Acceptance
- Indexes 10k markdown files in <60s incrementally
- Cross-project query returns ranked hits with file paths + line numbers
- Runs fully offline by default
- MCP integration demo with Claude Desktop
Metadata
Metadata
Assignees
Labels
ambientAmbient/background agentsenhancementNew feature or requestretrievalRetrieval and RAGv2.1v2.1.0 milestone
Activity
AmitoVrito commentedon Jul 14, 2026
Merged, thanks Dhruv. The knowledge mesh CLI and MCP tools turned out really solid.