Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Agent Context Budget Doctor

    1

    The symptoms are familiar: instructions ignored mid-session, quality that degrades as the conversation grows, surprise costs, and compaction that eats the plan.

    $14

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    4 usesSecurity scanned
    Agent Context Budget Doctor

    Agent Context Budget Doctor

    Example session with this skill installed

    Audit my CLAUDE.md and list of active MCP servers. The agent is getting expensive and forgets the project roadmap after about 10 messages.

    • Read your context and instructions
    • Compiled the agent context budget

    Analysis shows your 'startup rent' consumes 18k tokens. The 'aws-sdk' MCP server contributes 12k tokens via 40 unused tool definitions.

    Prescription

    1. Move the 4-page roadmap from CLAUDE.md to roadmap.md; load it only when updating status.
    2. Disable the 'aws-sdk' server for this repo.
    1. Move the 4-page roadmap from CLAUDE.md to roadmap.md

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

    About this skill

    An agent's context window is a fixed budget, and most setups spend it like they haven't looked at the bill: a memory file that grew by accretion, a dozen always-loaded skills, MCP servers whose tool definitions cost tens of thousands of tokens before the first request, hooks that log every event — and then the actual work arrives to find the room half full. The symptoms are familiar: instructions ignored mid-session, quality that degrades as the conversation grows, surprise costs, and compaction that eats the plan. Agent Context Budget Doctor treats it like a clinician. Give it your CLAUDE.md or AGENTS.md, your skill list, MCP config, and hooks, plus the symptoms, and it produces a token-budget breakdown with the hogs flagged, a diagnosis mapping each symptom to its cause, and prescriptions ordered by payoff — including the rewritten memory file when trimming is the fix, a durable-state pattern that makes compaction a non-event, and the relapse-prevention habits that keep the setup lean. The download includes three reference files: the context-budget worksheet, the symptom-to-diagnosis guide, and the trimming playbook. It audits what you provide; it does not execute your agent or measure live sessions, and token figures are estimates. Works with Claude Code, Cursor, Codex CLI, Gemini CLI, and any SKILL.md agent.

    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.

    Token figures are estimates derived from the files and config you provide, not exact billing metrics — real usage varies by model, tokenizer, and how a session unfolds. This skill audits what you give it; it does not execute your agent, attach to a running session, or measure live token spend, so its diagnosis is only as complete as the files and symptoms you supply. Compaction behavior and startup costs differ across harnesses (Claude Code, Cursor, and others), so some prescriptions may need adapting to your setup. The rewritten files and trims are recommendations to review and test — always confirm nothing essential was removed before relying on them. It reflects context-engineering practices as understood at the time of authoring and does not update itself or monitor changes to any platform.

    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

    4 uses

    Times used to date

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 months ago

    Permissions

    Read Files
    Write Files

    This skill reads the config and files you provide — CLAUDE.md/AGENTS.md, skill list, MCP config, hooks — plus its own bundled reference templates, and writes a diagnosis report and rewritten/optimized files. It does not run shell commands, open a browser, make network calls, or read environment variables, it connects to no external hosts, and it does not attach to or measure a live agent session (token figures are estimates from the files you supply).

    Listed4 months ago

    What's inside

    Frequently Asked Questions

    This skill performs a clinical audit of your agent's context overhead, identifying 'token hogs' like bloated memory files or wordy MCP tool definitions that cause your agent to become slow, expensive, or forgetful. It provides a budget breakdown, a specific diagnosis of your performance issues, and rewritten configuration files to reclaim your context window.

    The Doctor supports any environment following the SKILL.md or AGENTS.md conventions, and is specifically optimized for Claude Code, Cursor, Codex CLI, and Gemini CLI setups. It works by analyzing your configuration files, skill lists, and MCP definitions rather than monitorng live execution.

    You receive the core Diagnostic Skill, along with a Context-Budget Worksheet, a Symptom-to-Diagnosis Guide, and a Trimming Playbook containing best practices for long-term context health. These resources help you implement durable-state patterns that prevent future 'context creep.'

    No, the Doctor performs a static analysis of your configuration files (like CLAUDE.md) and tool definitions to provide estimated token costs. It does not require access to your live API keys or active sessions, making it a safe way to optimize your setup without exposing session data.

    Setup is simple: just add the Skill to your agent's directory and provide it with your existing configuration files (e.g., your memory logs, skill list, and MCP configs). Once it has access to these files and a description of your agent's 'symptoms,' it will automatically begin the audit and prescription process.

    New in LLM Ops