You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-25Lines changed: 29 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
<imgsrc="docs/dhee-logo.png"alt="Dhee"width="80">
3
3
</p>
4
4
5
-
<h1align="center">Dhee — the context compiler for AI coding agents</h1>
5
+
<h1align="center">Dhee — the context manager for AI coding agents</h1>
6
6
7
-
<h3align="center">Local context infrastructure that compiles working state, routes tool output, and shares audited learnings across Hermes, Claude Code, Codex, Cursor, Gemini CLI, Aider, Cline, and any MCP client.</h3>
7
+
<h3align="center">Dhee decides what your coding agent should see, remember, and forget each turn, so it stays cheap, reliable, and auditable.</h3>
8
8
9
9
<palign="center">
10
-
Dhee is not another coding agent, IDE, or vector database. It is the control plane that decides what context reaches the next turn: goal, facts, decisions, plan, active files, tests, and pointer-backed evidence.
10
+
It runs locally under Claude Code, Codex, Cursor, Gemini CLI, Aider, Cline, Hermes, and any MCP client.
**Dhee is the local context compiler for agentic development.** It runs on your machine, uses SQLite and local state files, plugs into Hermes, Claude Code, Codex, and any MCP client, and turns scattered transcripts, tool output, repo docs, memories, and subagent digests into a small auditable working set.
45
+
**Dhee decides what your coding agent should see, remember, and forget each turn, so it stays cheap, reliable, and auditable.**
46
46
47
-
This is the category Dhee is built to own: **context governance for AI coding agents**. As models get cheaper and more capable, the scarce resource is not the prompt box; it is the quality, stability, provenance, and cost of the context that gets admitted into every agent turn. Dhee sits between agents and their workspace as the compiler for that context.
47
+
Every serious coding agent now hits the same bottleneck: not model intelligence, but context. Transcripts grow, tool output piles up, compaction drops decisions, and useful project knowledge gets trapped in one session.
48
48
49
-
It does five jobs the model can't reliably do for itself:
49
+
Dhee runs locally between your agent and your workspace. It keeps the agent focused on the goal, decisions, files, tests, and evidence that matter now, while preserving the raw history for audit and reuse.
50
50
51
-
1.**Maintains compiled state.** Every turn gets a small regenerated state card instead of the whole journey: current goal, canonical facts, active decisions, next action, active files, test status, and pointer-backed evidence.
51
+
The buyer problem is simple:
52
52
53
-
2.**Remembers.** Doc chunks, decisions, what worked, what failed, user preferences. Decay and promotion keep stale knowledge out of the hot path while preserving what should transfer.
53
+
- Agents waste money re-reading files, logs, and old conversation.
54
+
- Agents lose decisions after compaction, handoff, or tool-output overload.
55
+
- Teams cannot reuse what one agent learned in another agent without copying a pile of text.
54
56
55
-
3.**Routes.** A 10 MB `git log` becomes a compact digest with a pointer. Raw output only re-enters context when the model explicitly expands it.
57
+
Dhee handles the context layer:
56
58
57
-
4.**Shares learnings.**Hermes memory, session traces, and agent-created skills flow into Dhee as auditable learning candidates. Only promoted learnings appear as Learned Playbooks for Claude Code, Codex, Hermes, and any Dhee-enabled agent.
59
+
1.**Keeps current state.**Goal, facts, decisions, active files, tests, and next step stay visible without replaying the whole session.
58
60
59
-
5.**Self-tunes.** Dhee watches which digests the model expands and which retrieval depths are useful, then tunes router policy per tool, per intent, per file type. The goal is not a bigger prompt; it is a smaller, better working set.
61
+
2.**Shrinks noisy tool output.** Large reads, searches, logs, and test runs become compact digests with pointers back to the raw evidence.
62
+
63
+
3.**Reuses team knowledge safely.** Decisions, docs, handoffs, and promoted learnings move across agents with provenance instead of becoming prompt sludge.
60
64
61
65
### Who it's for
62
66
63
-
-**AI-native engineering teams** whose agents are now expensive, forgetful, repetitive, or hard to audit.
67
+
-**AI-native engineering teams** whose agents are expensive, forgetful, repetitive, or hard to audit.
64
68
-**Claude Code / Cursor / Codex / Gemini CLI / Aider / Cline users** who have hit context limits, compaction loops, or runaway tool-output bills.
65
69
-**Teams standardizing on `AGENTS.md`, `CLAUDE.md`, Skills, MCP tools, and subagents** who need governed delivery instead of bigger prompts.
66
70
-**Hermes users** who already have a self-evolving agent and want those learnings to make Claude Code and Codex smarter too.
67
71
-**Founders building agentic development workflows** who need a local, inspectable context layer before they can trust agents with more of the work.
68
72
69
73
---
70
74
71
-
## <spanid="compiled-state">Compiled State — the transcript is audit, state is truth</span>
75
+
## <spanid="compiled-state">Current State — keep the agent oriented</span>
72
76
73
77
Long coding sessions get expensive and less reliable when old tool output, repeated reads, failed attempts, and superseded plans keep influencing the next token. Dhee's answer is not to trim the transcript. Dhee keeps a canonical working state and regenerates a small state card for each turn.
74
78
@@ -99,9 +103,9 @@ Quality is the gate. Dhee suppresses duplicate and stale context only when the p
99
103
100
104
---
101
105
102
-
## <spanid="shared-agent-learning">Shared Agent Learning — one promoted learning, every agent benefits</span>
106
+
## <spanid="shared-agent-learning">Team Knowledge — reuse what agents learn</span>
103
107
104
-
Hermes can evolve its own skills and memories. Claude Code has native hooks. Codex has MCP config, `AGENTS.md`, and a persisted session stream. Dhee is the information layer underneath them: it turns separate agent histories into shared, gated context.
108
+
Hermes can evolve its own skills and memories. Claude Code has native hooks. Codex has MCP config, `AGENTS.md`, and a persisted session stream. Dhee turns those separate agent histories into reusable context that other agents can trust.
105
109
106
110
```text
107
111
Hermes MemoryProvider
@@ -111,7 +115,7 @@ Hermes MemoryProvider
111
115
└─ self-evolution traces
112
116
│
113
117
▼
114
-
Dhee Learning Exchange
118
+
Dhee Review Layer
115
119
│
116
120
├─ candidate -> review / evidence / score
117
121
├─ promoted -> injected as Learned Playbooks
@@ -140,9 +144,9 @@ This is the product contract: **with Dhee, a learning proven in one agent can be
140
144
141
145
---
142
146
143
-
## <spanid="dheefs">DheeFS — one local learning space every agent already understands</span>
147
+
## <spanid="dheefs">File Interface — inspect agent context like local files</span>
144
148
145
-
Agents already understand files and shell verbs. DheeFS exposes Dhee's memory, router, handoff, artifacts, shared tasks, and learning exchange as one virtual context space:
149
+
Agents already understand files and shell verbs. Dhee exposes memory, handoff, artifacts, shared tasks, and learning review as one virtual context space:
146
150
147
151
```bash
148
152
dhee shell "ls /learnings"
@@ -338,7 +342,7 @@ Four MCP tools replace `Read` / `Bash` / `Agent` on heavy calls:
338
342
339
343
A 10 MB `git log --oneline -50000` becomes a ~200-token digest. This is where the serious savings live.
340
344
341
-
### Self-tuning retrieval
345
+
### Learns what to show
342
346
343
347
Most memory layers are static: you write rules, they retrieve. Dhee watches what happens and tunes itself.
344
348
@@ -357,15 +361,15 @@ Frontend-heavy teams get deeper JS/TS digests. Data teams get richer CSV/JSONL s
|**Self-tuning retrieval**|**Yes**| No | No | No | No | No |
364
+
|**Adapts from expansions**|**Yes**| No | No | No | No | No |
361
365
|**Hermes → Claude/Codex learning exchange**|**Yes**| No | No | No | No | No |
362
366
|**Auto-digest tool output**|**Yes**| No | No | No | No | No |
363
367
|**Git-shared team context**|**Yes**| Manual | No | No | No | No |
364
368
|**Works across MCP agents**|**Yes**| No | Partial | No | Yes | Yes |
365
369
|**External DB required**| No (SQLite) | No | Qdrant/pgvector | Postgres+vector | No | No |
366
370
|**License**| MIT | — | Apache-2 | Apache-2 | MIT | MIT |
367
371
368
-
Dhee is not trying to be the agent, the IDE, or the memory SaaS. It is the **context governance layer** those systems need underneath them: token reduction, reproducible recall, self-tuning retrieval policy, git-shared team context, and promoted cross-agent learning in one local-first control plane.
372
+
Dhee is not trying to be the agent, the IDE, or the memory SaaS. It is the **context manager** those systems need underneath them: smaller prompts, reproducible recall, adaptive retrieval, git-shared team context, and auditable knowledge reuse in one local-first package.
0 commit comments