docs: correct usage commands for opencode v2 CLI (--agent only on run/mini)

This commit is contained in:
haylan committed 2026-10-14 16:05:20 +02:00
1 parent 8fce64c34e
commit c20a4f0226
1 file changed
+4 -1
+4 -1
View File
@@ -40,9 +40,12 @@ upstream revision each release carries).
Start OpenCode with the `pocock` agent selected and describe what you want to build:
```bash
opencode --agent pocock
opencode mini --agent pocock # interactive (v2.0.29: --agent is not a top-level flag)
opencode run --agent pocock "build …" --auto # one-shot, autonomous
```
In the default TUI (plain `opencode`), switch to `pocock` with the agent picker instead.
| Agent | Role |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pocock` | Primary orchestrator. Routes with `ask-matt`, walks grill → spec → tickets → build → review → retro, proposes before each user-invoked step, runs `implement-spec` with one git worktree per ticket and parallel `pocock-worker` subagents. |