Skip to content

Commit 9f6538f

Browse files
committed
chore(opencode): set subagent effort through variants
OpenCode 2 keeps agent-level options but never sends them, so the reasoning effort of four subagents would silently fall back to the model default after an upgrade. Each now picks the variant that carries the same reasoningEffort; the Haiku explorer drops its options block, since without a variant it does not think either way. Refs: anomalyco/opencode#49550
1 parent c781be4 commit 9f6538f

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎opencode/agent/debugger.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ description: "Hidden read-only debugging subagent for root-cause diagnosis: repr
33
mode: subagent
44
model: openai/gpt-6.1-sol
55
hidden: true
6-
options:
7-
reasoningEffort: high
6+
# variant, not options: OpenCode 2 keeps agent options but never sends them
7+
# (anomalyco/opencode#49550). This variant sets the same reasoningEffort.
8+
variant: high
89
permission:
910
"*": deny
1011
glob: allow

‎opencode/agent/explore-small.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ description: "Fast/cheap read-only codebase lookups: find files, simple keyword
33
mode: subagent
44
model: openai/gpt-6-luna
55
hidden: true
6-
options:
7-
reasoningEffort: low
6+
# variant, not options: OpenCode 2 keeps agent options but never sends them
7+
# (anomalyco/opencode#49550). This variant sets the same reasoningEffort.
8+
variant: low
89
permission:
910
"*": deny
1011
glob: allow

‎opencode/agent/explore-spark.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description: "Ultra-fast read-only needle lookups in a pre-identified narrow sco
33
mode: subagent
44
model: anthropic/claude-haiku-4-5
55
hidden: true
6-
options:
7-
thinking:
8-
type: disabled
6+
# No variant and no options: without a variant Haiku 4.5 does not think, so
7+
# thinking stays off. An options block would be ignored by OpenCode 2
8+
# (anomalyco/opencode#49550).
99
permission:
1010
"*": deny
1111
glob: allow

‎opencode/agent/reviewer-deep.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ description: "Deep read-only review subagent for high-risk hunks: system assumpt
33
mode: subagent
44
model: openai/gpt-6.1-sol
55
hidden: true
6-
options:
7-
reasoningEffort: high
6+
# variant, not options: OpenCode 2 keeps agent options but never sends them
7+
# (anomalyco/opencode#49550). This variant sets the same reasoningEffort.
8+
variant: high
89
permission:
910
"*": deny
1011
glob: allow

0 commit comments

Comments
 (0)