Tortuga
context-cost

context-cost

See exactly what's eating your Claude Code context window — and clean it up

Author

Tortuga

Launch Date

March 7, 2026

Platforms
Claude Code Claude Code
Est. Token Cost

~200 tokens

View on GitHub

Install

Copy and paste this into your terminal

$ npx skills add https://github.com/tortuga-ai/skills --skill tortuga:context-cost

About

Claude Code's context window is your most expensive resource, and it's invisible by default. This skill analyzes your current session's context usage with actual API token counts, shows you what's taking up space (tool results, file contents, conversation history), and offers an interactive cleanup menu to drop what you don't need. Essential for long coding sessions where context bloat silently degrades output quality.

How It's Used

Run the skill mid-session whenever Claude's responses start feeling off or you want to check your burn rate. It reads the current context state, breaks down token usage by category, and presents a cleanup menu where you can selectively drop old tool results, stale file reads, or irrelevant conversation branches. Think of it as Activity Monitor for your context window.

What You Get

Token breakdown — Exact token counts per category — system prompt, conversation history, tool results, file contents — so you know what's actually consuming your context budget

Cost estimate — Running dollar cost for the current session based on your model's per-token pricing, updated in real time as you continue working in Claude Code

Cleanup menu — Interactive list of droppable context items ranked by size — select what to remove and reclaim tokens without losing the context you actually need

Usage trend — Shows how your context usage has grown across the session so you can spot the moment it spiked and understand which operation caused the bloat