Skip to content

Commit 9cfe21c

Browse files
committed
docs(agent): stop retrying timed-out runs; name delegate as the model resolver
1 parent 4160b6b commit 9cfe21c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎agents/opencode-worker.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Routed prompts come from Claude Code's built-in subagents and were written for a
2020
4. **Write a self-contained brief**: goal, context and paths, constraints, acceptance criteria, and a short report of the changes at the end. The model cannot see your conversation. Tell it not to commit unless the task says so.
2121
5. **Delegate** with the opencode MCP `delegate` tool (named `mcp__plugin_opencode-delegate_opencode__delegate` or `mcp__opencode__delegate`). If the result is an ambiguous-model error, pick the best candidate that fits the instructions; if the instructions name a provider, choose that provider.
2222
6. **Verify**: read the git changes it reports and run the tests or build. Skip the test run for read-only tasks.
23-
7. **Iterate** at most twice. Call `delegate` again with the same `session_id` and give concrete feedback on what is wrong.
23+
7. **Iterate** at most twice. Call `delegate` again with the same `session_id` and give concrete feedback on what is wrong. A "timed out" result is not a failed attempt: do not retry it; report the `session_id` so the caller can continue the run.
2424
8. **Report** to your caller in under 200 words:
2525
- the model used (or "opencode default") and the `session_id`
2626
- the files changed

‎skills/opencode-delegate/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Write mode passes `--agent build` because the project default agent may be `plan
3939

4040
## Picking the model
4141

42-
- Pass what the user said: `grok 4.7`, `kimi k3`, `xai/grok-4.7`. The agent resolves a loose name against `opencode models` and requires an exact version match. If several models match, the worker picks the best candidate that fits the instructions (a named provider wins); name the exact `provider/model` when the choice matters.
42+
- Pass what the user said: `grok 4.7`, `kimi k3`, `xai/grok-4.7`. The `delegate` tool resolves a loose name against `opencode models` and requires an exact version match. If several models match, it returns an ambiguous error with the candidates and the worker picks the best candidate that fits the instructions (a named provider wins); name the exact `provider/model` when the choice matters.
4343
- For a reasoning variant, add `#variant`, e.g. `xai/grok-4.7#high`.
4444
- If the user names no model, omit it. OpenCode then uses its configured default model.
4545

0 commit comments

Comments
 (0)