YDevDesk YDevDesk
YDevDesk / Knowledge Graph Multi-Agent Memory · MCP

Knowledge Graph

A local-first MCP memory protocol that lets Antigravity (AGY), Claude Code, and OpenAI Codex share verified decisions without repeating work.

What It Solves

When multiple coding agents (Claude Code, Codex, AGY) work on the same repository, each new session starts cold. The Knowledge Graph lets every agent read recent decisions before editing and append a concise atomic summary after verifying each change.

Architecture & Storage Modes

  • Local Mode (Default): Entries stay strictly on your machine in ~/.config/ydevdesk/knowledge.json with Unix 0o600 permissions.
  • YDevHub Mode (Optional): Connect your self-hosted YDevHub server to sync entries across devices via /api/v1/knowledge.
  • Offline Queue: If your hub is temporarily unreachable, local entries are preserved and can be synced once connectivity returns.

MCP Tools

  • knowledge_read(service, limit) — Fetches recent verified decisions for a service at session start.
  • knowledge_log(service, title, summary) — Records an atomic 1-2 sentence summary after verification.
json · knowledge_log payload
{
  "service": "YDevDesk",
  "title": "v1.4.2 Windows session resume fix",
  "summary": "Added cmd /K and pwsh support via init_shell_args. [[ydevdesk/windows]] [[ydevdesk/sessions]]"
}

What Changes on Your System

Running One-Click Setup inside YDevDesk adds a delimited block only to the agents you opt into:

Agent Modified Configuration
Claude Code ~/.claude/CLAUDE.md (delimited block) and MCP server entry
OpenAI Codex ~/.codex/AGENTS.md (delimited block) and config.toml MCP entry
Antigravity (AGY) GEMINI.md rule block and MCP configuration
Atomic Writes & Backups: A timestamped backup is created before every edit. Uninstall removes only the YDevDesk-managed block and leaves your personal rules untouched.

Raw Rule Templates

Security Model

  • Knowledge outputs are treated as untrusted data — agents never execute instructions embedded inside past logs.
  • Secrets, tokens, passwords, X-API-Key, and raw file contents are strictly prohibited from logs.
  • Zero data leaves your machine unless you explicitly configure a self-hosted YDevHub endpoint.