Skip to content

chore(context): Phase 0 token diet — axiom dedup + memory tiering#644

Merged
bakeb7j0 merged 1 commit intomainfrom
chore/context-diet-phase0
May 10, 2026
Merged

chore(context): Phase 0 token diet — axiom dedup + memory tiering#644
bakeb7j0 merged 1 commit intomainfrom
chore/context-diet-phase0

Conversation

@bakeb7j0
Copy link
Copy Markdown
Contributor

Summary

First pass of the context diet initiative. Reduces per-turn token tax by ~35% (~11KB) through safe, zero-risk changes that don't alter execution behavior.

Changes

  • CLAUDE.md: Collapse 18-line WAVE_AXIOMS inline restatement to 2-line pointer (full file still loads on demand via wave skills)
  • MEMORY.md: 71 → 23 index entries. Cold memories stay on disk but leave the per-turn index. 4 superseded/stale memories deleted outright.
  • Skill descriptions: Trimmed verbose descriptions on /issue, /nextwave, /wavemachine, /devspec, /ddd, /prepwaves to fit 8K discovery budget
  • Phase 1 hooks deployed (in ~/.claude/settings.json, coexist with prose — not yet load-bearing):
    • pre-push-test-gate.sh — blocks git push without prior test run
    • post-tool-test-sentinel.sh — records successful test/lint commands
    • pre-stage-secrets-gate.sh — warns on secret-pattern filenames
    • post-compact-reread.sh — injects re-read reminder after compaction

Test Plan

  • All hooks smoke-tested with mock input (block/pass cases verified)
  • settings.json validated as valid JSON
  • No behavioral change to current workflow — hooks coexist with prose rules
  • One-week bake period before Phase 3 (prose removal)

🤖 Generated with Claude Code

CLAUDE.md: collapse 18-line WAVE_AXIOMS restatement to a 2-line pointer
(the full file still loads on demand via wave skills).

MEMORY.md: 71 → 23 entries (cold files remain on disk, just leave the
per-turn index). Deleted 4 superseded/stale memories outright.

Skill descriptions: trimmed verbose ones (/issue, /nextwave, /wavemachine,
/devspec, /ddd, /prepwaves) to fit the 8K discovery budget better.

Phase 1 hooks (coexist with prose, not yet load-bearing):
- pre-push-test-gate.sh — blocks git push without prior test run
- post-tool-test-sentinel.sh — records successful test/lint commands
- pre-stage-secrets-gate.sh — warns on secret-pattern filenames
- post-compact-reread.sh — injects re-read reminder after compaction

Net: ~11KB/turn reduction in per-turn context tax (~35%).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bakeb7j0 bakeb7j0 enabled auto-merge May 10, 2026 10:49
@bakeb7j0 bakeb7j0 added this pull request to the merge queue May 10, 2026
Merged via the queue into main with commit d64aa1a May 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant