Skip to content

Local First Design

github-actions[bot] edited this page May 13, 2026 · 2 revisions

Local-First Design

KGraph stores repo intelligence locally and keeps it inspectable.

What Gets Stored

All runtime data lives under .kgraph/:

.kgraph/
├── config.yaml
├── map/
│   ├── files.json
│   ├── symbols.json
│   ├── dependencies.json
│   └── relationships.json
├── inbox/
├── cognition/
├── domains/
├── interactions/processed/
├── sessions/
├── knowledge/
│   ├── atoms.jsonl
│   ├── schema.json
│   └── indexes/
└── context/

These files are local, human-readable, and safe to inspect.

knowledge/atoms.jsonl is the canonical durable-memory store. Markdown cognition files remain as a compatibility and input layer for older captures, but atom lifecycle, confidence, provenance, stale detection, compaction, repair, context ranking, impact, and visualization use atoms as the source of truth.

What KGraph Avoids

KGraph does not require:

  • telemetry
  • accounts
  • cloud services
  • API keys
  • source-code upload
  • a database
  • an embedding service
  • a model provider
  • a background daemon

Why Local-First Matters

AI coding tools repeatedly inspect the same package files, routes, symbols, imports, and prior decisions. KGraph keeps the reusable context in the repo so agents can start with focused context instead of broad rediscovery.

Clone this wiki locally