You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22300b9
Browse filesBrowse the repository at this point in the historyBrowse files
prune: z.boolean().optional().describe("Enable pruning of old tool outputs (default: true)"),
810
810
})
811
811
.optional(),
812
+
subagent_models: z
813
+
.record(z.string(),z.string())
814
+
.optional()
815
+
.describe(
816
+
"Named models for subagents. Keys become enum values the LLM can choose from, values are provider/model strings (e.g., { fast: 'anthropic/claude-3-5-haiku-latest', smart: 'anthropic/claude-sonnet-4-20250514' })",
Copy file name to clipboardExpand all lines: packages/opencode/src/tool/task.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ Available agent types and the tools they have access to:
5
5
6
6
When using the Task tool, you must specify a subagent_type parameter to select which agent type to use.
7
7
8
+
If subagent_models are configured in your opencode.json config, you can optionally specify a model parameter to override which model the subagent uses. The model parameter accepts one of the named aliases defined in your config's subagent_models section.
9
+
8
10
When to use the Task tool:
9
11
- When you are instructed to execute custom slash commands. Use the Task tool with the slash command invocation as the entire prompt. The slash command can take arguments. For example: Task(description="Check the file", prompt="/check-file path/to/file.py")
0 commit comments