Commit 8cffb68
v0.8.2 — context diet
Cuts tokens wasted on every full-agent turn.
Root CLAUDE.md → DEVELOPER.md
- The Agent SDK auto-loads every CLAUDE.md from the agent's CWD up to
the git root. Runtime agents run from groups/main/, so they were
inheriting ~1,330 tokens of developer documentation (key-file table,
architecture notes, NanoClaw heritage) into every system prompt. That
context belongs in DEVELOPER.md for Claude Code reading the repo, not
in a Telegram chat turn.
- File unchanged, only name moved. Per-group CLAUDE.md files
(groups/{name}/CLAUDE.md) keep their name — those are the runtime
instructions and SHOULD load.
appendMemoryLog deleted
- The orchestrator was writing "- [auto] Handled: <raw Telegram XML
preview>" to memory/log.md after every full-agent turn. The agent
then re-read that log on every session start, paying tokens to
re-ingest message previews from days past.
- Logging is now the agent's responsibility. groups/{name}/CLAUDE.md
already instructs it to prepend meaningful events. Andy is in the
loop for chat turns — trust him + the agent. Removes ~30 lines of
index.ts and an unused GROUPS_DIR import.
Existing [auto] noise pruned from groups/main/memory/log.md
- 74 [auto] entries dropped. File 204 → 86 lines.
- Real entries (versions, decisions, debugging notes) preserved.
- Gitignored, so this prune is local-only.
Verified
- 425 tests pass.
- Typecheck and build clean.
- v0.8.1 was 33 minutes ago — no architectural change here, just
context diet.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4c31906 commit 8cffb68
4 files changed
Lines changed: 37 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
3 | 34 | | |
4 | 35 | | |
5 | 36 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
449 | 448 | | |
450 | 449 | | |
451 | 450 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 451 | | |
485 | 452 | | |
486 | 453 | | |
| |||
501 | 468 | | |
502 | 469 | | |
503 | 470 | | |
504 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
505 | 476 | | |
506 | 477 | | |
507 | 478 | | |
| |||
0 commit comments