Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>PlanckSpace — Claude Code cost, context & fixesNew to Visual Studio Code? Get it now.
PlanckSpace — Claude Code cost, context & fixes

PlanckSpace — Claude Code cost, context & fixes

Planckspace

|
4 installs
| (0) | Free
Every token, accounted for, while you code. A live meter for your Claude Code session (context, cost, prompt-cache countdown, plan limits), a turn-by-turn timeline of where the tokens went, your CLAUDE.md structure with its real token cost, your skills, MCP servers and subagents with real usage, and
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PlanckSpace — Claude Code cost, context & fixes

Every token, accounted for, while you code.

PlanckSpace shows what your AI coding agent is doing to your budget right now, where the tokens went afterwards, what it loads on every turn, and which fixes would make it cheaper. Then it applies them in one click and measures whether they worked.

Everything is computed on your machine from files that are already there: Claude Code's own session logs and settings. There's no account to create and nothing to configure. Your prompts, your code and these figures are never sent to PlanckSpace.


What you get

A live meter in the status bar

While a Claude Code session runs in your workspace:

⚡ 412K ctx · $14.20 value · cache 37:12
  • Context: how big the prompt is that every turn re-reads, and how close it is to auto-compaction.
  • Cost so far: what the session has cost. On a Pro/Max/Team seat this is usage value (what the work would cost at API rates), never mixed with billed money.
  • Prompt cache countdown: when the cache goes cold. A turn after that re-writes the whole context, and the tooltip says what that will cost.

Now: the live session, your plan limits, your day

  • A live card per Claude Code session: a context gauge, what each turn costs just to re-read the context, cache state, compactions, cache re-writes with their cause, and subagent runs.
  • Plan limits: your real 5-hour and weekly percentages with reset times, from Claude Code's own numbers whenever they're fresh. When they aren't, you see this machine's usage in the current 5-hour window and your last limit hit.
  • Today, this week and this month, in the ledger your money is actually in, with a 14-day chart and where the month's tokens went.

Sessions and the session timeline

  • Your last 30 days, grouped by day: title, repo, model, cost, outcome, peak context. Resume any of them in Claude Code.
  • Open one to see it turn by turn:
    • what each request carried (re-read vs. written to cache vs. new input) and what it cost;
    • markers where it compacted, where the cache was re-written, and where it resumed on a cold cache;
    • what drove the cost: "61% was re-reading a 236K context", "Explore ran on Opus: $6.15, about $1.01 on Haiku".

Context: your CLAUDE.md structure, with its real cost

  • Everything Claude Code loads for this repo, in load order: managed and user CLAUDE.md, project and parent folders, CLAUDE.local.md, every @import, the nested CLAUDE.md files read on demand, plus AGENTS.md, Cursor, Windsurf and Copilot rules.
  • How many tokens are re-read on every turn, and what that costs per session and per month across your own sessions.
  • Health checks, each with a fix:
    • bloated instructions → split into on-demand files (preview first, undo anytime) or trim with Claude Code;
    • a missing or stale CLAUDE.md → create or refresh it with Claude Code;
    • broken @imports;
    • credentials pasted into instruction files;
    • model rules written as text, which don't work (the model is a setting).
  • Effective settings: every Claude Code setting that applies here, and which file it comes from (managed › local › project › user). Values of env vars, keys and permission rules are never shown.
  • Inside CLAUDE.md, a CodeLens shows the file's token cost and each section's tokens as you edit.

Toolbox: skills, subagents, MCP servers, commands, hooks, plugins

  • Everything installed for this repo and for you, with real usage from your last 30 days: uses, sessions, last used, and dollars per subagent type.
  • Unused items are flagged. Remove them in one click (Undo puts them back), or turn a project MCP server off on this machine only.
  • Discover: curated open-source skills, MCP servers and plugins (Anthropic's official skills, Superpowers, Context7, Playwright MCP, PlanckSpace's model routing, …). Every install command is checked against the project's README, and installs run in a visible terminal or through Claude Code's own plugin dialog.

Save: fixes that are measured, not claimed

  • Fixes for you, judged against your own sessions:
    • default new sessions to Sonnet;
    • set a repo's default model;
    • split CLAUDE.md into on-demand files;
    • add session-discipline rules.
  • Claude Code settings levers, sized by replaying your own requests:
    • compact earlier (autoCompactWindow);
    • read-only subagents on Haiku;
    • prompt-cache TTL;
    • effort level;
    • what cache re-writes cost you.
  • Did it work? Every fix you apply gets a before/after, measured from your next sessions.
  • Undo is exact: settings are changed key by key, and a file you edited after the fix is never silently overwritten.
  • Connected to a PlanckSpace workspace, your findings come with the team's fix loop and proof of savings: a saving counts only once it's measured in your sessions.

Quiet nudges

At most one every 10 minutes, each kind switchable off:

  • a session's context has grown large (with what each turn re-reads);
  • a plan limit hits 80% or 95%, or a limit was hit;
  • a metered session passes a dollar milestone.

Privacy

  • Read-only, on this machine. The extension reads Claude Code's transcripts (~/.claude/projects) and settings, and what the PlanckSpace CLI keeps in ~/.planckspace, its local.db through the CLI itself (planck query), so the extension ships no native code. It never writes to them, except the fixes you click, which are backed up and undoable.
  • Never sent to PlanckSpace: your prompts, responses, code, file contents, session titles, or the figures shown here. From transcripts the extension reads token counts, models, timings and tool names. It never parses message text.
  • It never touches your AI tool's requests: no proxy, no interception.
  • Network: none by default. If you connect a workspace, the extension calls PlanckSpace's API for your own findings and their fix loop. The PlanckSpace CLI (if you use it) syncs session metadata only.

Works with

Claude Code Everything: live meter, timeline, context, toolbox, levers. Uses Claude Code's own logs.
Cursor, Windsurf, JetBrains Session history and cost through the PlanckSpace CLI.
Editors VS Code 1.85+, Cursor, Windsurf, VSCodium (Open VSX).

Fixes that need judgement open in your own Claude Code, pre-filled for you to read and send. Claude shows its plan and diff before it writes anything.

Optional: the PlanckSpace CLI

npx @planckspace/cli@latest init

The CLI adds session outcomes (shipped / abandoned, from your git history), your other AI tools, and team sync. The extension reads its local.db through planck query, so it needs CLI 0.5.2 or newer (npm i -g @planckspace/cli). Everything else works without it.

Commands

Command What it does
PlanckSpace: Open: Now The live view (also: click the status bar)
PlanckSpace: Show Session Timeline… Pick a session and open its turn-by-turn timeline
PlanckSpace: Explain Current Session Timeline of the session running now
PlanckSpace: Show Effective Claude Code Settings Every setting that applies here, and where it's set
PlanckSpace: Create CLAUDE.md with Claude Code Opens /init in Claude Code
PlanckSpace: Split CLAUDE.md into On-Demand Files The context-index split, backed up
PlanckSpace: Undo Last Fix Reverts the most recent fix exactly
PlanckSpace: Connect a Workspace / Join Your Team Optional team sync
PlanckSpace: Fix Background Sync Repairs the CLI's sync daemon

Settings

Setting Default
planckspace.statusBar.enabled true Live meter in the status bar
planckspace.codeLens.enabled true Token CodeLens in instruction files
planckspace.nudges.enabled true Quiet nudges (each kind has its own switch)
planckspace.nudges.contextTokens 300000 Context size that triggers a nudge (and again at 2×)
planckspace.nudges.limitPercent [80, 95] Plan-limit levels that trigger a nudge
planckspace.nudges.costMilestonesUsd [5, 10, 25, 50] Billed $ per session that trigger a nudge

Troubleshooting

  • "No Claude Code session running here". The live view follows sessions whose working folder is inside the open workspace. Sessions in other folders still appear under Sessions › All.
  • Plan limits show local usage instead of percentages. Claude Code caches your real limits when it fetches them (for example when you run /usage). PlanckSpace shows them while they're less than 15 minutes old.
  • No outcomes or Cursor sessions. Those come from the PlanckSpace CLI's local.db. Install the CLI and run planck scan.
  • "PlanckSpace CLI not found" / "too old". The extension reads local.db through the planck CLI and needs 0.5.2 or newer. Run npm i -g @planckspace/cli, then refresh. Claude Code figures keep working from its own logs meanwhile; outcomes and other tools wait for the CLI.

License

MIT — see LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft