[Resource]: Context-Audit
Display Name
context-audit
Category
Tooling
Sub-Category
Tooling: Usage Monitors
Primary Link
https://github.com/ishwar170695/context-audit
Author Name
ishwar170695
Author Link
https://github.com/ishwar170695
License
MIT
Other License
No response
Description
CLI for auditing coding-agent session transcripts from Claude Code, Cursor, and Aider. Analyzes token distribution, context reuse, prompt caching impact, retrieval overhead, and distinguishes workspace-recoverable from conversational memory to identify what can be safely compacted.
Validate Claims
Run context-audit on any Claude Code JSONL transcript and compare the generated metrics against the raw transcript contents.
The repository includes benchmark results across 27 real coding-agent sessions showing:
- 94.5% average context reuse
- Prompt caching savings below 1%
- Retrieval bloat near zero
These results can be independently reproduced by analyzing additional transcripts with the tool.
Specific Task(s)
Analyze a Claude Code session transcript and determine:
- Where tokens are actually spent.
- How much context is reused versus newly introduced.
- Whether prompt caching meaningfully reduces cost.
- Which information is workspace-recoverable versus conversational memory.
Specific Prompt(s)
Use context-audit on this Claude Code JSONL transcript and generate a report showing token distribution, context reuse ratio, prompt caching impact, retrieval overhead, and workspace-recoverable versus conversational memory. Explain which portions of the context could be safely compacted and which should be preserved.
Additional Comments
Created to provide empirical measurements of coding-agent context usage rather than relying on assumptions about optimization strategies.
Supports:
- Claude Code transcripts
- Cursor transcripts
- Aider transcripts
- Generic JSONL-based coding-agent logs
Runs locally, requires no API calls, and processes transcripts offline.
Recommendation Checklist
- [x] I have checked that this resource hasn't already been submitted
- [x] It has been over one week since the first public commit to the repo I am recommending
- [x] All provided links are working and publicly accessible
- [x] I do NOT have any other open issues in this repository
- [x] I am primarily composed of human-y stuff and not electrical circuits
🤖 Validation Results
✅ All validation checks passed!
Your submission is ready for review by a maintainer.
Validated Data:
{
"display_name": "context-audit",
"category": "Tooling",
"subcategory": "Usage Monitors",
"primary_link": "https://github.com/ishwar170695/context-audit",
"author_name": "ishwar170695",
"author_link": "https://github.com/ishwar170695",
"license": "MIT",
"description": "CLI for auditing coding-agent session transcripts from Claude Code, Cursor, and Aider. Analyzes token distribution, context reuse, prompt caching impact, retrieval overhead, and distinguishes workspace-recoverable from conversational memory to identify what can be safely compacted.",
"secondary_link": "",
"last_modified": "2026-06-19:05-01-06",
"active": "TRUE",
"last_checked": "2026-06-22:14-07-17"
}
This comment is automatically updated when you edit the issue.