计划模式
Plan mode lets you see what Commander will do before it does it. Switch to plan mode to review the execution strategy, agent allocation, and tool calls — with zero risk of unintended changes. - Safety — Review the full plan before any files are modified
本文说明 计划模式 在 Commander 中的职责、使用方式与相关模块。命令与代码路径与产品保持一致。
bash
# Set plan mode
npx tsx packages/core/src/cliEntry.ts mode plan
# Then run any task
npx tsx packages/core/src/cliEntry.ts run "refactor the database layer"
# Or use the --plan flag for one-off plan mode
npx tsx packages/core/src/cliEntry.ts plan "implement search feature"要点
- 与英文源文档语义对齐;API 与 CLI 以 monorepo 为准
- 需要可运行示例时,优先使用 快速开始 中的
cliEntry.ts路径 - 指标口径:25 提供商 · 5 拓扑 · 18 工具 · 6700+ 测试