Skip to main content
dokkai/ 読解OPEN SOURCE v0.1.0
Menu

OPEN SOURCELOCAL FIRSTv0.1.0

Give your agent a map,not a dump.

Dokkai turns a repository into a graph-aware context layer that coding agents can search, navigate and cite.

Compatible with:

  • Codex
  • Claude
  • Gemini
  • Model Context Protocol
  • Grok
  • Mistral
00 / 06REST

A compressed software architecture, waiting to be read.

Transformation ready

REST. A compressed software architecture, waiting to be read.

02 / SYSTEM TRANSFORMATION

A codebase is not a collection of files.It is a network of decisions.

Dokkai extracts that network, connects it to the source and makes it available as compact context.

FILE DUMPcontext keeps expanding
01grep

request flow

02read_file

request_handler.py

03read_file

access_policy.py

04search

ApplicationService

05read_file

application_service.py

06read_file

repository.py

files opened
18
repeated reads
5
context payload
increasing
CONNECTED RETRIEVALone bounded trace
context("How does a request move through the system?")
semantic seed
1
connected entities
7
source ranges
6
context bundle
1

Illustrative retrieval trace. Counts describe this example, not a universal benchmark.

Start with the repository as it is.

Dokkai extracts the structural graph, builds rich source chunks and stores searchable code and descriptions.

CGR → CHUNK → DESCRIBE → UPSERT

Files become a system.

Classes, functions, methods, modules and their relationships become a navigable graph.

CALLS · INHERITS · IMPLEMENTS · OVERRIDES · DEFINES

Similarity finds the seed. The graph finds the system around it.

Semantic or literal search finds the seed. Dokkai then expands through its connected neighborhood.

seed → hop 1 / CALLS → hop 2 / IMPLEMENTS

Connected context, ready for the agent.

Return a compact, source-linked bundle through MCP, CLI, API or the web interface.

MCP · CLI · API · WEB UI
CONTEXT TRACE / 01 / INGEST01 / 04
example-service/src/services/
QUERYHow does a request move through the system?
CONTEXT BUNDLE6 source rangesseed · hop 1 · hop 2

More files do not create more understanding.Relationships do.

03 / GRAPH MICROSCOPE

The graph changes what gets retrieved.

A semantic match becomes a starting point. Dokkai follows the surrounding calls, implementations, definitions and inherited behavior before assembling the context.

Search does not stop at the match.

A lens moves across an abstract dependency graph. Outside the lens the graph is dim and unlabeled. Inside it, entities, relations, source ranges and provenance become visible: the seed match, the calls and implementations around it, and the assembled context bundle.

DEPTH
DIRECTION
CALLSCALLSCALLSCALLSRequestHandlerHANDLERApplicationServiceSERVICEDomainModelDOMAINRepositoryINTERFACEAccessPolicyPOLICY
Service Handler Interface Adapter Domain

Selected entity: ApplicationService.execute. Kind: SERVICE. Path: src/services/application_service.py. Lines: 41–63. Connected entities: 4.

04 / INTERFACES

One context layer.Every interface.

Expose the same graph to Claude Code, Codex, local Ollama models, the CLI or the web interface.

Read the MCP documentation
CLAUDE CODECODEXDOKKAI / MCPOLLAMAGENERIC MCP
context(
  project="example-service",
  query="How does a request move through the system?"
)
TOOL RESPONSE / context
BUNDLE
6 source ranges
seed · hop 1 · hop 2
source-linked · local · deterministic demo
claude mcp add dokkai -- uv run --directory /absolute/path/to/dokkai python src/mcp_server.py
05 / EVIDENCE

Measure the retrieval path.

The included harness records tool calls and approximate response payload against a defined token budget.

REFERENCE RUN AWITHIN BUDGET

QUERY TYPEarchitecture traversal

TOOL CALLS
1 × context
APPROX. RESPONSE PAYLOAD
< 2.5K tokens
BUDGET
5K tokens
RESULT
WITHIN BUDGET
REFERENCE RUN BWITHIN BUDGET

QUERY TYPEsemantic retrieval

TOOL CALLS
1 × search
APPROX. RESPONSE PAYLOAD
< 700 tokens
BUDGET
5K tokens
RESULT
WITHIN BUDGET

Measured with the included local harness. Repository and query details have been anonymized.

06 / BUILT IN THE OPEN

Built in the open.Runs on your machine.

Graph extraction, storage, retrieval, MCP, CLI, API and web UI are available in the public repository under the MIT License.

01Repository
02code-graph-rag
03Memgraph
04Rich source chunks
05Weaviate
06Ollama
07MCP / CLI / API / Web UI

Graph extraction, indexing, retrieval and generation remain on the local machine.

Remote providers are an explicit choice, not an architectural requirement.

dokkai/public source
dokkai/
├── src/
│   ├── controllers/
│   ├── services/
│   │   ├── ingest.py
│   │   ├── retriever.py
│   │   ├── graph_store.py
│   │   └── chat.py
│   └── mcp_server.py
├── cli/
├── frontend/
├── docker-compose.yml
└── README.md

Read the code before you run it.

CURRENT VERSION
v0.1.0
LICENSE
MIT
STATUS
active development
RUNTIME
local
INTERFACES
MCP · CLI · API · Web
MODEL PATH
Ollama · optional remote providers

Questions, integrations or contributions?

Contact the developer
DOKKAI LABS / EXPERIMENTAL

Experiments built on the same context layer.

Review and bug-hunt routines use graph-aware retrieval to collect evidence and keep findings attached to source.

01BRANCH REVIEW

diffcontextanalyzesummarize

ANCHORED · src/services/application_service.py:41–63
02BUG HUNT

scopesearchinspectverifyreport

UNANCHORED · requires verification

The dependency graph pulls back, its selected paths stay active, and the relations recompose into the Dokkai / 読解 signature.

Your codebase already has a structure.Give your agents access to it.

v0.1.0 · MIT license · local graph extraction · MCP · CLI · web UI