Repository setup that caps startup context and measures coding-agent token use
Teams using Claude Code or Cursor can treat token waste as a repo hygiene issue. agent-stack gives a concrete pattern: generate CLAUDE.md, AGENTS.md, .claudeignore, hooks, Cursor rules, skills, and .agent-stack/graph.md in one setup step, then log usage through a Stop hook into .agent-stack/usage.jsonl.
The most useful part is the code map. It indexes source files and exported symbols so an agent can search one compact file before opening source. The README example claims 142 files and 906 top-level symbols in the map, a CLAUDE.md capped at 800 startup tokens, and a measured drop from 12,340 to 7,180 input tokens per day. Those numbers are project claims, so the practical adoption test is simple: run the setup on one active repo, keep the baseline, and compare input tokens per day after a week of normal agent work.