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
Renderer: kill header sentence, wrapper tags, indentation, and redundant
src/path metadata. Short tag names (<r>, <perf>, <intent>). Session block
collapsed to pipe-separated one-liner. ~40% fewer structural tokens,
same information content, still valid XML.
Install: one-line curl script creates ~/.dhee with hidden venv, installs
package, configures Claude Code hooks automatically. No pip + settings.json
dance required. pip install and git clone remain for users who manage
their own environment.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Every token that isn't technical substance is now gone. The old injection wrapped content in a header sentence, `<dhee-context>` tag, `<docs>`/`<insights>`/`<memories>` wrappers, 2-space indentation, and verbose attributes like `src="CLAUDE.md" path="Repository Guidelines › Coding Style & Naming Conventions"`. All of it was scaffolding the LLM didn't need.
12
+
13
+
-**Killed the header sentence.**~25 tokens per injection, zero value.
14
+
-**Killed wrapper tags.** Items are flat children of `<dhee>`, not nested inside `<docs>`/`<memories>`/etc.
15
+
-**Killed indentation.** No leading spaces on any line.
16
+
-**Short tag names.**`<rule>` → `<r>`, `<row>` → `<perf>`, `<i>` for insights.
17
+
-**Dropped redundant metadata.** Doc chunks no longer ship `src="..."` or `path="breadcrumb"` — the content is authoritative on its own.
18
+
-**Session block collapsed.** One-line pipe-separated format instead of nested `<decisions>`/`<files>`/`<todos>` tags.
19
+
20
+
Net: ~40% fewer structural tokens per injection, same information content. Same XML parseability (still valid XML).
21
+
22
+
### One-line install
23
+
24
+
```bash
25
+
curl -fsSL https://raw.githubusercontent.com/Sankhya-AI/Dhee/main/install.sh | sh
26
+
```
27
+
28
+
Creates `~/.dhee` with a hidden venv, installs the package, configures Claude Code hooks automatically. No `python -m venv`, no `pip install`, no editing `~/.claude/settings.json`. Re-running updates. `pip install dhee` and `git clone` remain available for users who prefer to manage their own environment.
29
+
30
+
---
31
+
7
32
## [3.3.1] - 2026-04-16 — Honest Injection
8
33
9
34
Dogfooding v3.3.0 revealed the Claude Code hook was a net-negative feature:
Copy file name to clipboardExpand all lines: README.md
+29-8Lines changed: 29 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,34 @@ Your files stay exactly where they are. You maintain them the same way. Dhee jus
43
43
44
44
## Quick Start
45
45
46
+
**One command. No venv. No config. No pasting into settings.json.**
47
+
48
+
```bash
49
+
curl -fsSL https://raw.githubusercontent.com/Sankhya-AI/Dhee/main/install.sh | sh
50
+
```
51
+
52
+
That's it. The installer creates `~/.dhee` with a hidden venv, installs the `dhee` package, and wires Claude Code hooks automatically. Next time you open Claude Code in any project, cognition is on.
53
+
54
+
<details>
55
+
<summary>Other install options</summary>
56
+
57
+
**Via pip (if you manage your own venv):**
46
58
```bash
47
59
pip install dhee
48
-
dhee install # hooks into Claude Code lifecycle
49
-
dhee ingest # chunks your CLAUDE.md, AGENTS.md into vector memory
60
+
dhee install # configure Claude Code hooks
61
+
```
62
+
63
+
**From source (contributors):**
64
+
```bash
65
+
git clone https://github.com/Sankhya-AI/Dhee.git
66
+
cd Dhee
67
+
./scripts/bootstrap_dev_env.sh
68
+
source .venv-dhee/bin/activate
69
+
dhee install
50
70
```
71
+
</details>
51
72
52
-
Done. Every Claude Code session now gets selective context injection.
73
+
After install, Dhee auto-ingests project docs (CLAUDE.md, AGENTS.md, etc.) on the first session. Run `dhee ingest` manually any time to re-chunk.
53
74
54
75
---
55
76
@@ -93,10 +114,10 @@ Dhee manages information through a complete lifecycle — not just storage and r
93
114
▼ ▼
94
115
┌─────────────────────────────────────┐
95
116
│ Token-budgeted XML injection │
96
-
│ <docs><rule src="CLAUDE.md" │
97
-
│ path="Testing" s="0.83">│
98
-
│ Always run pytest before... │
99
-
│ </rule></docs> │
117
+
│ <dhee> │
118
+
│ <r s="0.83">Always run pytest...│
119
+
│ </r> │
120
+
│ </dhee> │
100
121
└─────────────────────────────────────┘
101
122
│
102
123
LLM sees only
@@ -286,7 +307,7 @@ Zero LLM calls on hot path. Pure pattern matching + statistics.
-**Renderer** — Caveman-compressed XML: `<dhee><r s="0.83">...</r></dhee>`. No header, no wrapper tags, no indentation — every byte earns its place. ~40% fewer structural tokens vs v3.3.
0 commit comments