cco
In Claude Code: what this session costs and where the tokens go, plus the tools to cut it — /cco for the board, /cco audit, /cco…
Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too
$ npx -y skills add egorfedorov/claude-context-optimizer --skill token-check --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/token-checkContext preview
The summary Claude sees to decide when to auto-load this skill.
Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too
name: token-check description: Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too large to send. license: MIT
Give a quick, honest estimate and the cheapest way to get the same result. These are estimates; say so. Exact counts come from the API's token counter.
tokens. A full page of text is 500–700 tokens.
token, so the same text costs noticeably more than in English.
plus an image's worth for pages read as images.
Give a range (for example "about 18–24K tokens"), and compare it with the context window: 1M tokens on current Opus, Sonnet and Haiku 5.5 models, 200K on older Haiku.
In a conversation, everything already in it is re-sent with every new message. A 20K-token document pasted early is paid for again on each of the next 30 messages, about 600K tokens in total. That, not the first send, is what uses up limits.
1. Send only the part that matters: the section, the function, the failing lines of a log. 2. Strip what carries no meaning: minified code, base64, repeated log lines, boilerplate. 3. Summarize a long document once, then continue from the summary. 4. When a conversation is long, start fresh from a handoff (the `fresh-start` skill). 5. In Claude Code: read files with offset/limit, let the `context-optimizer` scout subagent do wide exploration on Haiku, and run `/cco audit` to see where a session's tokens actually went.
See what Claude costs you, and spend less of it. Every message re-sends the whole conversation, so long chats and long coding sessions use up limits fast and recall early details worse.
In Claude Code: what this session costs and where the tokens go, plus the tools to cut it — /cco for the board, /cco audit, /cco…
Turn a long document, PDF, transcript, spreadsheet or log into a compact working digest the conversation can continue from. Use…
Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the…
Turn background the user keeps re-explaining or re-pasting into reusable instructions, so new chats start with it for free. Use…
Rewrite a vague request into a precise prompt — goal, context, scope, constraints, what done looks like, output format. Use when…