Skip to content

v2.1: Personal Knowledge Mesh — federated WorldModelRAG across every project on the PC #740

Closed

Description

@AmitoVrito

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

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 paths

Components

  • synapsekit mesh CLI: 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

Activity

  1. added this to the v2.1.0 milestone on Jun 25, 2026
  2. added
    enhancement
    retrieval
    v2.1
    ambient
    on Jun 25, 2026
  3. AmitoVrito commented on Jul 14, 2026

    @AmitoVrito
    CollaboratorAuthor

    Merged, thanks Dhruv. The knowledge mesh CLI and MCP tools turned out really solid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ambientenhancementretrievalv2.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions