context-engineer
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs.
> /plugin marketplace add rohitg00/pro-workflow > /plugin install pro-workflow@pro-workflow
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs.
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.
Repo: rohitg00/pro-workflow
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
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 touch >5 files or require…
Analyze permission denial patterns and generate optimized alwaysAllow/alwaysDeny rules. Use when permission prompts slow down workflow.
Break down complex tasks into implementation plans before writing code. Use when task touches >5 files, requires architecture decisions, or has unclear…