whereismyai
Context Autopsy
Context Autopsy is a command-line tool that analyzes local coding agent transcripts to break down token usage across sessions.
Context autopsy reads coding-agent transcripts stored locally on your machine and breaks down every token by its purpose. It supports agents such as Claude Code, Codex, Cursor, OpenCode, Pi, Gemini CLI, Qwen Code, Cline, Roo Code, Kilo Code, Factory Droid, Amp, and Goose. The tool calculates both added tokens and processed tokens to reveal the true cost of context rot and latency. Everything runs locally without uploading data, and no dependencies are required. Users can view category shares, peak context usage, expensive tool outputs, and cross-cutting waste like failed commands or duplicate files.
Context Autopsy at a glance
Key features
- Breaks down tokens by category
- Tracks processed tokens and costs
- Analyzes peak context usage
- Identifies expensive tool outputs
- Flags cross-cutting waste and duplicate files
- Copies shareable summary cards to clipboard
- Runs locally with no dependencies
Use it for
- Find out what fills a coding agent context window
- Identify sessions buried in setup plumbing
- Check token costs across multiple local coding agents
- Analyze peak context and expensive tool results
Alternatives to Context Autopsy
- ccusage — Tracks token usage and costs locally across multiple coding agent CLIs.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Context Mode — Saves up to 98 percent of context per session by keeping raw data out of the LLM.
- Lcc — Cuts token counts significantly without losing exact session details.
- ContextMCP — Maintains fresh, accurate context for AI agents using AST-aware chunking.
- CodeSight — Reduces AI token usage significantly and maps projects instantly.
- Billion Context — Compresses conversation history to run single AI coding sessions for days.
- Claude Tap — Inspect prompts, tool calls, and token usage locally without a hosted dashboard.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- CodeGraphContext — Turns codebases into interactive knowledge graphs for AI assistants.
- Personal Context Manager — Manages global and project-specific coding rules in a Git repository.
- Dsh Context — Provides complete context visibility and usage tracking.
All Context Autopsy alternatives