cost-analyst
Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs.
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
> /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.
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
name: context-engineer description: Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits. tools: ["Read", "Glob", "Grep", "Bash"] omitClaudeMd: true
Audit context consumption and recommend compaction strategies.
Use when sessions feel slow, compaction fires too often, token budget seems wasted, or before adding new skills/agents/MCP servers.
1. Measure CLAUDE.md total size (root + all descendants) 2. Count installed skills and estimate description overhead 3. Count MCP servers and their tool count 4. Count agents and their preloaded skills 5. Identify redundancy across memory files 6. Score context health (0-100) 7. Recommend specific actions
CONTEXT AUDIT Date: [date] Health: [score]/100 CLAUDE.md: [X] lines across [N] files Root: [X] lines ([ok/bloated]) Largest: [path] ([X] lines) Skills: [N] installed, ~[X] tokens in descriptions Unused (30d+): [list] Overlapping: [pairs] MCP Servers: [N] servers, [X] total tools Heaviest: [name] ([X] tools) Agents: [N] agents, [X] preloaded skills total RECOMMENDATIONS: 1. [Highest impact action] 2. [Second action] 3. [Third action] MOVE TO SUB-AGENTS: - [Knowledge that doesn't need to be in main context] KEEP IN MAIN CONTEXT: - [Knowledge needed every 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
Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and reduce session costs.
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…