Context Budget Audit
Run the audit script and report findings:
Execute from the repository root: bash scripts/agent/context-budget.sh
Then analyze the output:
- Classify each item
- Always loaded: hook outputs (SessionStart), AGENTS.md
- On invocation: skill SKILL.md files (when
/skillcalled) - On Agent spawn: full agent .md body
- Flag if over budget
- AGENTS.md > 500 tokens → summarize or split
- Any single skill > 200 tokens → trim
- Agent description line > 50 tokens → shorten
- SessionStart output > 100 tokens → slim hook script
- Report format
```text
ALWAYS LOADED
AGENTS.md ~XXX tokens
SessionStart.sh ~XX tokens (estimated output)
ON INVOCATION (skills)
/build ~XX tokens
/format ~XX tokens
...
ON AGENT SPAWN
graphql-explorer ~XXX tokens
TOTAL LOADED AT REST: ~XXX tokens
RECOMMENDATIONS: ...
```