Skip to main content

Harness Context-Budget Planner

See how many context-window tokens your CLAUDE.md/AGENTS.md, skills, and tool schemas consume before a user types anything — split into always-on vs on-demand, with trim suggestions.

100% local — nothing you paste here is ever uploaded
Try a Sample Harness
Instructions File (CLAUDE.md / AGENTS.md)
Paste your file content0 lines · ~0 tokens
Skills
Tool / Function Schemas (optional)
Paste tool definitions (JSON)0 tokens
Context Window Reference
ModelContext Window (tokens)
Defaults shown are rough, publicly reported figures as of August 2026 — flagship model context windows change often and vary by exact version and API tier. Edit any row to match your model's current published limit for an accurate comparison.
Always-On Budget vs Context Window
Token Breakdown
Trim Suggestions

Frequently Asked Questions

Is my CLAUDE.md or AGENTS.md content uploaded anywhere?

No. Everything you paste is counted and analyzed entirely in your browser with JavaScript. Nothing is sent to a server, logged, or stored — closing the tab discards it completely.

How accurate are the token counts?

They're approximate. This tool doesn't bundle each vendor's exact tokenizer, so it uses the common rule-of-thumb approximation of roughly 4 characters per token for English text. That's accurate enough to see relative proportions and catch bloat, but not precise enough for exact billing calculations — for that, use your provider's official token-counting endpoint.

What's the difference between "always-on" and "on-demand" tokens?

In Claude's Skills architecture (and similar designs elsewhere), only a skill's short frontmatter description is loaded into context by default so the model can decide whether to use it — that's always-on, present on every turn. The skill's full body only loads when the skill actually fires — that's on-demand. Your main instructions file and any tool/function schemas are always-on, since they're present whenever the agent is available.