Context
Everything Claude reads before the first question costs tokens in every session. This page measures that cost with the same script as the release gate and breaks it down so you can see where to cut.
Total against the ceiling
Breakdown by component
| Component | Tokens | % of total | |
|---|---|---|---|
| Memory (CLAUDE.md + imports) | 4835 | 35 % | |
| Always-loaded rules | 2642 | 19 % | |
| Skill listing | 4786 | 34 % | |
| Agent descriptions | 1716 | 12 % |
Always-loaded memory
Files Claude Code loads when opening a session in a project with Ovillo (the consumer CLAUDE.md and its @imports).
| File | Chars | Tokens | Level |
|---|---|---|---|
CLAUDE.md | 7557 | 1889 | root |
_hilo/ESTADO_PROYECTO.json | 9086 | 2272 | @import |
_hilo/SESION_ACTUAL.md | 2695 | 674 | @import |
Rules
| Rule | Chars | paths: | Always loaded |
|---|---|---|---|
| context-optimization.md | 2269 | no | yes |
| developer-branch.md | 4106 | no | yes |
| devops-awareness.md | 4194 | no | yes |
Skill listing
Claude sees a listing with the name and description of every model-invocable skill; workflows (disable-model-invocation) are left out. The description is cut at 1536 characters.
Measured, not assumed (ADR-040): the 13 path-scoped skills (paths:) do appear in the listing and are counted here. Until ADR-040 they were counted as 0, on an assumption that turned out to be false when checked against the model: in a directory where nothing matches, it still quotes their description. The sibling assumption does hold, which is why workflows stay out.
No description is truncated.
How to bring the cost down
- Move layer conventions to path-scoped skills (
paths:): they only load when those files are touched. - Shorten descriptions below the cap without losing the tokens that fire the evals (measure it with
run_eval.py). - Reduce the consumer memory: a short
CLAUDE.mdand@importsonly for what is stable. - Agents: a one-sentence description with USE FOR / DO NOT; the body costs nothing until it is invoked.