A CLI tool to install a pre-configured OpenCode agent workflow in any repository.
This tool sets up a structured agent workflow for OpenCode with the following agents:
| Agent | Mode | Purpose |
|---|---|---|
| plan | primary | Architecture, constraints, sequencing. Writes to .opencode/plan.md |
| execution | primary | Orchestrates subagents to implement plans |
| build | primary | Default development agent with full access |
| coder | subagent | Writes code following instructions from execution |
| review | subagent | Reviews implementation against plan |
| test-runner | subagent | Executes tests and reports results |
| testing-strategy | subagent | Defines what to test and what not to test |
| ask | primary | Read-only agent for answering questions |
| merge | primary | Detect and resolve git merge conflicts interactively |
go install github.com/GH-Jaider/opencode-agent-flowkit@latestgit clone https://github.com/GH-Jaider/opencode-agent-flowkit.git
cd opencode-agent-flowkit
make install# Install in current directory
opencode-agent-flowkit
# Install in a specific directory
opencode-agent-flowkit ./my-project
# Force overwrite existing files
opencode-agent-flowkit --force
# Show version
opencode-agent-flowkit --version
# Show help
opencode-agent-flowkit --helpyour-repo/
├── opencode.json # Main OpenCode configuration
└── .opencode/
├── config.json # Model configuration (editable)
├── plan.md # Plan template
└── agents/
├── execution.md # Orchestrator agent
├── coder.md # Code writing agent
├── review.md # Review/critic agent
├── test-runner.md # Test execution agent
├── testing-strategy.md # Testing philosophy agent
├── ask.md # Read-only Q&A agent
└── merge.md # Merge conflict resolution agent
Edit .opencode/config.json to configure which LLM model each agent uses:
{
"models": {
"default": null,
"execution": null,
"coder": null,
"review": "anthropic/claude-sonnet-4-20250514",
"test-runner": null,
"testing-strategy": null,
"ask": null
}
}null= uses OpenCode's default model- Specify a model string to override for that agent
This tool does NOT install an AGENTS.md file. Code style guidelines are language-specific and should be:
- Created manually per project
- Installed via language-specific skills/superpowers
- Added to OpenCode's global configuration
The intended workflow is:
- Plan (
planmode): Define what you're building in.opencode/plan.md - Execute (
executionmode): Orchestrator reads plan and delegates to subagents - Review (
@review): Compare implementation against plan - Iterate: Fix issues identified in review
Plan → Execute → Review → Fix → Done
↑ ↓
└───────────────────┘
When you encounter merge conflicts, switch to the merge agent (Tab):
- Detect - Agent runs
git statusand identifies all conflicted files - Present - For each conflict, shows both sides with context
- Choose - You pick a resolution: keep ours, keep theirs, keep both, or a smart merge
- Apply - Agent edits the file (with your approval) and offers to stage it
- Commit - You review and commit when ready
git merge <branch> → conflicts? → Switch to merge agent (Tab)
│
For each conflict:
├── View ours vs theirs
├── Choose resolution
└── Approve edit
│
git add → git commit
To update to the latest version, run the installer again with --force:
opencode-agent-flowkit --forceThis will overwrite all configuration files with the latest templates.
MIT