context-autopsy
github.com/alistairclark7/context-autopsy- Category
- Developer Tools
- Rank
- No. 4917Tools index
Previous survey · No. 4747 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Model & Agent Evaluation
- Interfaces
- CLI
- GitHub
- 1 stars
- Date
About
context-autopsy reads coding agent transcripts already on your machine (Claude Code, Codex, Cursor and others) and breaks token use down by purpose, such as reading code, build and test logs, failed commands and fixed overhead. It reports both tokens added and tokens processed across repeated model calls, since the full context is resent each turn. Everything runs locally with no uploads.
At a glance
context-autopsy reads local coding-agent transcripts and estimates which kinds of content occupied the context window. It is worth trying when long sessions keep slowing down or compacting and you want to identify noisy inputs you can cut.
Good fit
Developers investigating repeated file reads, long test logs or setup output in supported agent transcripts.
Consider something else when
Use provider records for exact billing. This tool estimates how much context different kinds of content consumed.
Start here
Pass a sanitized transcript path or select a recent session with --last 1. Look at the most expensive outputs and pick one command whose output you could shorten next time.
Cost and requirements
MIT-licensed. Requires Node.js 18.3 or newer and readable transcripts. The project documents local analysis. The optional share command prepares a summary you can post.
Limits to know
Per-item estimates are calibrated against reported totals where available. Content repeated across turns can account for more processed tokens without adding more unique text.
Sources checked 2026-11-05. Source-based assessment.
- github.com/AlistairClark7/context-autopsy/blob/d94603a7818aa884ac835de23b300cc15e0203ff/README.md
- github.com/AlistairClark7/context-autopsy/blob/d94603a7818aa884ac835de23b300cc15e0203ff/package.json
- github.com/AlistairClark7/context-autopsy/blob/d94603a7818aa884ac835de23b300cc15e0203ff/bin/context-autopsy.js
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.