context-engineer
AgentAnalyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching…
Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs.
Claude Code
> /plugin marketplace add rohitg00/pro-workflow> /plugin install pro-workflow@pro-workflow
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: cost-analyst description: Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs. tools: ["Read", "Glob", "Grep", "Bash"] omitClaudeMd: true
Analyze token usage patterns and recommend cost optimizations.
1. Check current session token usage 2. Identify the most expensive operations 3. Analyze cache hit rates 4. Recommend specific optimizations
Current tiers (see [`references/models-2026.md`](../references/models-2026.md) for strings, prices, and routing):
Effort is a second cost lever on top of the model, not a substitute for it: the model sets the base per-token price, effort sets how much reasoning gets spent. A low-effort call on an expensive tier is still billed at that tier's rate. Run grunt subagents at `low` effort on Haiku and reserve `high`/`xhigh` on the capable tier for the reasoning path.
COST ANALYSIS Top cost drivers: 1. [operation] -- ~[N]K tokens 2. [operation] -- ~[N]K tokens Optimization opportunities: - [specific change] -- saves ~[N]K tokens/session - [specific change] -- saves ~$X.XX/session Current efficiency: [score]/100 Projected savings: $X.XX/session
Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching…
Specialized debugging agent. Use when facing hard bugs, test failures, or runtime errors that need systematic investigation.
Multi-phase development agent. Research > Plan > Implement with validation gates. Use PROACTIVELY when building features that…
Analyze permission prompts and denials, including auto mode classifier blocks, and recommend permission rules and autoMode…
Break down complex tasks into implementation plans before writing code. Use when task touches >5 files, requires architecture…
Google cross-vendor agent named for the model it runs — Gemini 4 Argon, Google’s top reasoning model, via…
Fresh-context, read-only verifier for a proposed claude-obsidian change or release. Inspects the requested staged diff, unstaged…
Inspect or update Inbox Zero rules and analytics through the public API CLI. Use when tasks involve rules, stats, or API-driven…