Files
nexus/wiki/concepts/Plan-Mode.md

1.0 KiB

title, type, tags, sources, last_updated
title type tags sources last_updated
Plan Mode concept
opencode
workflow
design
如何在ubuntu上安装opencode并配置vibe-kanban
2026-04-22

Definition

Plan Mode(计划模式)是 OpenCode 的双模式工作流之一。通过 Tab 键从 Build 模式切换进入,禁用写入能力,只生成实现方案和步骤分解。

Mechanism

  • 通过键盘 Tab 键切换到 Plan 模式
  • 界面上会显示模式指示器(通常在右下角)
  • AI 只分析、推理、输出方案,不执行任何文件修改
  • 用户可以审阅、反馈、补充细节后,再切换回 Build 模式

Use Cases

  • 复杂功能的需求澄清与方案评审
  • 多方案对比分析
  • 新技术栈的可行性调研
  • 与团队成员的协作沟通
  • Build Mode — Plan 模式的反向操作,执行实际代码修改
  • OpenCode — 提供 Plan/Build 双模式的核心工具
  • AGENTS.md — 项目上下文定义,与 Plan Mode 配合提供充足背景信息