Opencode Workflow Best Practices

Learn how to effectively use Opencode's dual-mode workflow for optimal results.

Build vs Plan Mode

Build Mode

  • Direct code generation
  • Fast iterations
  • Best for small, well-defined tasks

Plan Mode

  • AI creates a plan first
  • Review before execution
  • Best for complex, multi-file changes

Best Practices

  1. Start with Plan mode for unfamiliar codebases
  2. Use Build mode for quick fixes and iterations
  3. Leverage AGENTS.md to provide project context
  4. Review AI suggestions before accepting

Next Steps