context-costlisted
Install: claude install-skill gethrbr/deckhand
# Measure what the agent reads before you type
Find everything the agent loads at the start of every session in this repo, measure it, and show what to cut or move so it loads only where it is needed. Read only: never edit a file until the user picks the cuts. Never run the project's own scripts.
Tokens here are bytes ÷ 4, so every number is "about". Say so once in the report. Keep **measured** (files you read) and **estimated** (MCP, anything you could not read) apart everywhere, including the headline, and never add an estimate into a number the user might post. In Claude Code, `/context` shows the exact split: suggest the user runs it and pastes it, and use its numbers when they do.
## 1. Find what loads every session
From the repo root (`ROOT=$(git rev-parse --show-toplevel)`) and the folder the user works in (default the root). Measure each file with `wc -c`.
**Claude Code**
- `~/.claude/CLAUDE.md` (the user's own, loaded in every repo)
- every `CLAUDE.md`, `.claude/CLAUDE.md` and `CLAUDE.local.md` from the working folder up to the filesystem root (find the ones below it with `git ls-files -co --exclude-standard '*CLAUDE.md' '*CLAUDE.local.md' '*AGENTS.md'`) (a `CLAUDE.md` in a subfolder loads only when the agent works with files there: list it as "on demand")
- `AGENTS.md`: Claude Code reads it **only when there is no `CLAUDE.md` or `CLAUDE.local.md`** in the working folder or above, or when a `CLAUDE.md` imports it with `@AGENTS.md`. If both exist and nothing impo