executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
cost-aware-llm-pipeline成本感知 LLM 管道,根据任务复杂度选择合适模型, 管理上下文预算,避免在长会话末尾做大型重构。
Independent GitHub snapshot · Automated classification · Original documentation governs
成本感知 LLM 管道,根据任务复杂度选择合适模型,管理上下文预算。
使用场景:
成本: ~$0.001/1K tokens
使用场景:
成本: ~$0.01/1K tokens
使用场景:
成本: ~$0.05/1K tokens
| 上下文位置 | 可用空间 | 建议 |
|---|---|---|
| 前 20% | 宽松 | 探索、研究、讨论 |
| 中间 60% | 谨慎 | 核心实现、详细代码 |
| 最后 20% | 压缩 | 整理、总结、收尾 |
# 不好:多次调用,每次都加载上下文
/edit file1.ts
/edit file2.ts
/edit file3.ts
# 好:一次调用处理多个文件
/multi-edit file1.ts file2.ts file3.ts
长会话后运行: /compact
保留决策和结论,丢弃中间追踪
# 不好的做法
用 Opus 写 README
# 好的做法
用 Haiku 写 README
用 Sonnet 实现核心逻辑
用 Opus 做架构决策
| Skill | 关系 |
|---|---|
| Strategic Compact | 提供上下文压缩以保持低使用率 |
| Continuous Learning | 从成本数据中学习优化模型选择 |
| Memory Persistence | 保存会话摘要以支持上下文重建 |
/cost-estimate <task> - 估算任务成本/model-select <complexity> - 建议模型选择/context-budget - 显示当前上下文预算