Files
nexus/wiki/concepts/Build-Mode.md
2026-04-22 12:02:55 +08:00

32 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Build Mode"
type: concept
tags: [opencode, workflow, implementation]
sources: [如何在ubuntu上安装opencode并配置vibe-kanban]
last_updated: 2026-04-22
---
## Definition
**Build Mode**(构建模式)是 OpenCode 的双模式工作流之一。通过 Tab 键从 Plan 模式切换回来,执行实际的代码修改和文件写入。
## Mechanism
- 从 Plan 模式按 Tab 键切换回 Build 模式
- AI 获得完整的文件写入权限
- 执行 Plan 阶段生成的实现方案
- 支持 `/undo` 撤销最近的修改,`/redo` 重做
## Build Workflow
1. **Plan 阶段**描述需求AI 生成实现方案
2. **Review 阶段**:审阅方案,补充上下文和示例
3. **Build 阶段**Tab 切换,执行 `Sounds good! Go ahead and make the changes.`
4. **Iterate 阶段**:如需调整,用 `/undo` 回退后重新 Plan
## Related Concepts
- [[Plan Mode]] — Build 模式的前置阶段,生成实现方案
- [[OpenCode]] — 提供 Plan/Build 双模式的核心工具
- [[Vibe Coding]] — AI 辅助编程的工作流理念