Dev.to
7/23/2026

Parse transcript.jsonl Directly to See What's Actually Being Called
Short summary
A practical script that parses Claude Code's transcript.jsonl files to tally how many times each Skill, Agent, and MCP server was invoked, going beyond the /usage command's cost-only reporting. The script uses Python embedded in Bash to scan JSONL records, filter by time window, and extract tool_use blocks for per-item breakdowns. Useful for cost optimization and environment health checks.
- •Parses transcript.jsonl to tally per-Skill, per-Agent, and per-MCP-server call counts
- •Goes beyond Claude Code's /usage which only shows aggregate cost and quota
- •Includes a ready-to-use Bash+Python script with time-window filtering
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



