Ctxaudit — Development skill for Claude Code
Find out how much of your agent's context window is burned before you type a single word.
How to install Ctxaudit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Doojyaan/ctxaudit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ctxaudit does
Find out how much of your agent's context window is burned before you type a single word.
Alternatives in Development
- Device Control Agent — You are an autonomous macOS agent with full control of this device via two CLI tools: - steer — GUI automation 250 ★
- Release & Shipping Burn Patterns — Research Summary — Research completed: 2026-02-10 Sources: ~/.claude/CLAUDE.md (This Has Burned You Before table), SESSION_HANDOF 216 ★
- Docmancer — Find out what your coding agents already know 121 ★
README
ctxaudit
**Find out how much of your agent's context window is burned before you type a single word.**
$ npx ctxaudit
ctxaudit — pre-flight context audit
/Users/you/payments-platform
15.0% of the context window is gone before you type.
████░░░░░░░░░░░░░░░░░░░░ 29,928 / 200,000 tokens
window: Claude (200k) · tokenizer: o200k_base
Breakdown
MCP tool schemas (3 servers) 29,000 96.9% ████████████
AGENTS.md 675 2.3% ░░░░░░░░░░░░
skill metadata (4 skills) 127 0.4% ░░░░░░░░░░░░
MCP config files 126 0.4% ░░░░░░░░░░░░
What to cut
• Disable or lazy-load the "github" MCP server −20,000 tokens
Tool schemas load at startup and are paid every session,
including sessions that never touch that server.
• Prune rarely-used skills −63 tokens
4 skills cost 127 tokens of metadata on every request.
Every agent session starts with a bill you already paid: instruction files, skill metadata, and MCP tool schemas are all loaded before your first message. `ctxaudit` measures that bill, in tokens, per source — and tells you what to cut.
Why this exists
I measured a real install with 1,901 skills and 22 MCP servers. The pre-flight cost was **248,662 tokens — 124% of a 200k window**. The session could not start.
That is an extreme case, but the tax is universal. Published measurements of the same problem:
| Observation | Source |
|---|---|
| A Claude Code session starts at ~35,000 tokens before the first keystroke, while another harness starts at 7,000 | [HN discussion, P-46] |
| The GitHub MCP server alone costs 15,000–20,000 tokens of tool schema on every request | [GitHub issue, B-11] |
| A browser toolset adds ~6,600 tokens per request; one study found 71% of tokens spent on tool discovery rather than work | [blog, N-06/N-22] |
| Skill metadata is injected into the system prompt on every request, even when |
Related Skills
Quota Autopsy
Find out why your coding agent burned through your quota. Reads Claude Code and Codex CLI logs offline and lis
Agent Usage Guard
A Claude Code mod that holds subagent fan-out, heavy-context prompts and retry loops before they spend your us
Packlight
See the tokens Claude Code and Codex load before you type: MCP tool lists, skills, hooks, CLAUDE.md and AGENTS
Seekstone
The Obsidian MCP server that needs no plugin, no running Obsidian app — and doesn't blow your context window.
Leantoken
Code intelligence for agents: find the code that matters and keep your context window and tokens lean.
Context Budget
Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities.
Related Agents
Session Context
Loads a single FullStory session's event transcript into an isolated context window and answers a specific tas
Audit Domain Runner
Execute a single domain audit (one of the 13 audit-domain- skills) in an isolated context window. Spawned by a
Single Function Auditor
Stage 6 worker. Audits exactly ONE C/C++ function on a clean context window — reads its body via codenav, walk