Agent Token & Quota Burn Forensics

    1

    Read-only JSONL token, prompt-cache busting, compaction-point, and retry-loop forensics for Claude Code, Codex CLI, Cursor, Gemini, and Antigravity.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Agent Token & Quota Burn Forensics

    Example session with this skill installed

    Analyze our Claude Code and Codex JSONL session logs to find where prompt cache broke and which turn we should have compacted at.

    • Read your context and instructions
    • Compiled the agent token

    Files: 2 | Turns: 42 | Context: 2,410,000 (hit_ratio=84.2%) | Est. Compaction Savings (threshold=80,000): 46.8% | Cache Busts: 2 | Retry Loops: 1 (run_command x4).

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Long autonomous coding sessions silently burn 30-55% of their API quota on uncompacted context tails, broken prompt caches, and identical tool retry loops. This read-only forensics skill inspects your local JSONL transcripts with zero external dependencies (pure Python 3.10+ stdlib, zero writes, zero network calls) and pinpoints the exact turns wasting budget.

    Supported Transcript Schemas

    • Claude Code and Anthropic SDK (usage.input_tokens, cache_read_input_tokens, cache_creation_input_tokens)
    • Codex CLI, OpenAI, and Cursor (prompt_tokens, completion_tokens, prompt_tokens_details.cached_tokens)
    • Gemini API (usageMetadata promptTokenCount, candidatesTokenCount, cachedContentTokenCount)
    • Flat JSONL agent transcripts (input_tokens, output_tokens, cache_read_tokens)

    What It Detects

    • Compaction inflection points: finds the exact turn where context crosses --compact-threshold (default 80,000 tokens) and estimates realistic token and USD savings.
    • Prompt-cache busts: catches turns where a warm prompt cache (>=70% hit ratio) collapses below 30%.
    • Retry loops: flags >=3 consecutive identical tool-call sequences burning tokens without progress.
    • Top tool bloat: ranks tools by attributed token spend.

    Cross-Platform Verified

    Tested on Ubuntu, Windows, and macOS (Python 3.10 and 3.12) with 25 unit and E2E tests and zero ruff lint warnings.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Estimates USD cost from indicative built-in per-model rate tables; exact billing depends on your provider plan and tier.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed today

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    Read-only JSONL token, prompt-cache busting, compaction-point, and retry-loop forensics for Claude Code, Codex CLI, Cursor, Gemini, and Antigravity.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Agent Token & Quota Burn Forensics on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in LLM Ops

    Free