Skip to content

Commit 12d3a49

Browse files
committed
Sharpen context manager positioning
1 parent 4182d28 commit 12d3a49

1 file changed

Lines changed: 29 additions & 25 deletions

File tree

README.md

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<img src="docs/dhee-logo.png" alt="Dhee" width="80">
33
</p>
44

5-
<h1 align="center">Dhee — the context compiler for AI coding agents</h1>
5+
<h1 align="center">Dhee — the context manager for AI coding agents</h1>
66

7-
<h3 align="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+
<h3 align="center">Dhee decides what your coding agent should see, remember, and forget each turn, so it stays cheap, reliable, and auditable.</h3>
88

99
<p align="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.
1111
</p>
1212

1313
<p align="center">
@@ -22,14 +22,14 @@
2222
</p>
2323

2424
<p align="center">
25-
<img src="docs/demo/demo.gif" alt="Dhee demo — fat skills, thin tokens, self-tuning retrieval" width="900">
25+
<img src="docs/demo/demo.gif" alt="Dhee demo — smaller context for coding agents" width="900">
2626
</p>
2727

2828
<p align="center">
2929
<a href="#what-is-dhee">What is Dhee</a> ·
30-
<a href="#compiled-state">Compiled State</a> ·
31-
<a href="#shared-agent-learning">Shared Agent Learning</a> ·
32-
<a href="#dheefs">DheeFS</a> ·
30+
<a href="#compiled-state">Current State</a> ·
31+
<a href="#shared-agent-learning">Team Knowledge</a> ·
32+
<a href="#dheefs">File Interface</a> ·
3333
<a href="#quick-start">Quick Start</a> ·
3434
<a href="#repo-shared-context">Repo-Shared Context</a> ·
3535
<a href="#benchmarks">Benchmarks</a> ·
@@ -42,33 +42,37 @@
4242

4343
## What is Dhee?
4444

45-
**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.**
4646

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.
4848

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.
5050

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:
5252

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.
5456

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:
5658

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.
5860

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.
6064

6165
### Who it's for
6266

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.
6468
- **Claude Code / Cursor / Codex / Gemini CLI / Aider / Cline users** who have hit context limits, compaction loops, or runaway tool-output bills.
6569
- **Teams standardizing on `AGENTS.md`, `CLAUDE.md`, Skills, MCP tools, and subagents** who need governed delivery instead of bigger prompts.
6670
- **Hermes users** who already have a self-evolving agent and want those learnings to make Claude Code and Codex smarter too.
6771
- **Founders building agentic development workflows** who need a local, inspectable context layer before they can trust agents with more of the work.
6872

6973
---
7074

71-
## <span id="compiled-state">Compiled State — the transcript is audit, state is truth</span>
75+
## <span id="compiled-state">Current State — keep the agent oriented</span>
7276

7377
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.
7478

@@ -99,9 +103,9 @@ Quality is the gate. Dhee suppresses duplicate and stale context only when the p
99103

100104
---
101105

102-
## <span id="shared-agent-learning">Shared Agent Learning — one promoted learning, every agent benefits</span>
106+
## <span id="shared-agent-learning">Team Knowledge — reuse what agents learn</span>
103107

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.
105109

106110
```text
107111
Hermes MemoryProvider
@@ -111,7 +115,7 @@ Hermes MemoryProvider
111115
└─ self-evolution traces
112116
113117
114-
Dhee Learning Exchange
118+
Dhee Review Layer
115119
116120
├─ candidate -> review / evidence / score
117121
├─ promoted -> injected as Learned Playbooks
@@ -140,9 +144,9 @@ This is the product contract: **with Dhee, a learning proven in one agent can be
140144

141145
---
142146

143-
## <span id="dheefs">DheeFS — one local learning space every agent already understands</span>
147+
## <span id="dheefs">File Interface — inspect agent context like local files</span>
144148

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:
146150

147151
```bash
148152
dhee shell "ls /learnings"
@@ -338,7 +342,7 @@ Four MCP tools replace `Read` / `Bash` / `Agent` on heavy calls:
338342

339343
A 10 MB `git log --oneline -50000` becomes a ~200-token digest. This is where the serious savings live.
340344

341-
### Self-tuning retrieval
345+
### Learns what to show
342346

343347
Most memory layers are static: you write rules, they retrieve. Dhee watches what happens and tunes itself.
344348

@@ -357,15 +361,15 @@ Frontend-heavy teams get deeper JS/TS digests. Data teams get richer CSV/JSONL s
357361
|:--|:-:|:-:|:-:|:-:|:-:|:-:|
358362
| **Tokens / turn** | **~300** | 2,000+ | varies | ~1K+ | varies | ~1,900 |
359363
| **LongMemEval R@5** | **99.4%** |||| 96.6% | 95.2% |
360-
| **Self-tuning retrieval** | **Yes** | No | No | No | No | No |
364+
| **Adapts from expansions** | **Yes** | No | No | No | No | No |
361365
| **Hermes → Claude/Codex learning exchange** | **Yes** | No | No | No | No | No |
362366
| **Auto-digest tool output** | **Yes** | No | No | No | No | No |
363367
| **Git-shared team context** | **Yes** | Manual | No | No | No | No |
364368
| **Works across MCP agents** | **Yes** | No | Partial | No | Yes | Yes |
365369
| **External DB required** | No (SQLite) | No | Qdrant/pgvector | Postgres+vector | No | No |
366370
| **License** | MIT || Apache-2 | Apache-2 | MIT | MIT |
367371

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.
369373

370374
---
371375

0 commit comments

Comments
 (0)