From oh-my-agent
Reviews current task context and prompt cache for optimizations: identifies bloat/duplicates, lists cache breakers, proposes strategies, and outputs health report with action plan.
How this command is triggered — by the user, by Claude, or both
Slash command
/oh-my-agent:optimizeThe summary Claude sees in its command listing — used to decide when to auto-load this command
运行 oma 上下文优化工作流。 用户上下文: $ARGUMENTS 任务: 1. 识别可避免的上下文膨胀和重复负载。 2. 列出当前工作流中可能的缓存破坏者。 3. 提出缓存安全的压缩策略。 4. 为后续轮次提供实用的操作规则。 输出格式: ## 上下文健康状况 - ... ## 缓存破坏者 - ... ## 优化计划 1. ... 2. ... 3. ...
运行 oma 上下文优化工作流。
用户上下文: $ARGUMENTS
任务:
输出格式:
npx claudepluginhub sswym/oh-my-agent --plugin oh-my-agent/contextAnalyzes Claude Code's context configuration for optimization opportunities and applies improvements. Also supports resetting to defaults.
/context-optimizerDiagnoses context window usage issues, audits MCPs and CLAUDE.md, applies fixes like compaction and disabling unused tools, sets auto-compaction, and reports optimized state.
/optimize-contextAnalyzes context window usage against MECW principles, providing token breakdowns, utilization status, and optimization recommendations. Accepts optional path and --detailed flag.
/contexteRuns built-in /context command to fetch real token metrics, analyzes usage patterns for inefficiencies, and provides tailored optimization recommendations.
/quickPerforms quick context health check: quality score/grade, token overhead, top 3 issues with savings, degradation risk, and action suggestions.
/cc-budgetCalculates remaining context window after fixed overhead from CLAUDE.md, rules, skills, and MCP schemas. Shows budget summary table and top consumers. Also supports audit, optimize, anchor-plan, simulate.