Context Lens

Drop your agent config — what it spends before your first turn, and what to cut.

Back to SkillSafe

Drop your .claude folder here — or the loose files.

Your sub-agent and skill definitions, your rule and command files, the MCP config (.mcp.json), and the top-level project-convention file your assistant reads on every turn. Everything is read in your browser with no upload; the whole measurement below is free and complete on its own.

Handy when you only want to check the memory file or the MCP config.
How it works

Nothing to hand? Load the — a tight setup that comes back healthy — the , where a long memory file, two overlapping rule files and a couple of CLI-wrapping MCP servers are quietly eating the window, or the , where thirteen servers and a duplicated skill directory have taken a third of the context before anyone types.

1

Drop the config — the measurement is free

No upload, no AI. Every file is classified as a memory file, agent, skill, rule or command; its tokens are estimated by splitting fenced and indented code (chars ÷ 4) from prose (words × 1.3); its YAML frontmatter is parsed, including the folded block form, so the description that rides along on every Task call gets a word count. .mcp.json becomes servers with tool-schema overhead at about 500 tokens per tool, with CLI-wrapping servers named. Byte-identical files across mirrored skill directories are found and counted once, and always-on files that repeat each other are flagged by trigram overlap. This part costs nothing and stands on its own.

2

The AI audits — this is the metered part

The model gets the browser's exact numbers plus a budgeted excerpt of every file — large files head-and-tail with the middle marked, never a blind cut — and returns the judgement the arithmetic cannot: every component classified always, sometimes or rarely needed against your project, the issues that actually matter, and a ranked list of trims. Then the browser marks its homework: a saving larger than the component it names actually costs, a component that is not in your inventory, or a total that disagrees with the measurement all get surfaced above the results. Pricing is honest too — a worst-case amount is reserved and only what the run uses is charged.

3

Trim, then audit again

The number that matters is the second one. Take the top recommendations, drop the folder again, and the header states the delta — tokens recovered and the change in share of window — against your last audit of the same setup. Export the component table as CSV for a spreadsheet, the report as Markdown for a PR description, or JSON for a script. Past audits live on your SkillSafe account, so the comparison works from your laptop and your desktop alike.

A derived work of the context-budget skill by affaan-m (MIT), which defined the inventory, the thresholds and the report this app is built around.