diff options
| author | Aiden Cline <[email protected]> | 2025-09-18 17:52:23 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-18 17:52:23 -0500 |
| commit | ffa5689885d0bc943c1bcd91cf1bf3706a52c3c5 (patch) | |
| tree | 07db268502339122d2ec099764ba8567ddb729f1 /packages/web/src/content | |
| parent | 0e409842e849aec549f458be6b46346b42cafaf3 (diff) | |
| download | opencode-ffa5689885d0bc943c1bcd91cf1bf3706a52c3c5.tar.gz opencode-ffa5689885d0bc943c1bcd91cf1bf3706a52c3c5.zip | |
docs: subtask config option (#2682)
Diffstat (limited to 'packages/web/src/content')
| -rw-r--r-- | packages/web/src/content/docs/commands.mdx | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/commands.mdx b/packages/web/src/content/docs/commands.mdx index 8653e26cc..1e6aa951c 100644 --- a/packages/web/src/content/docs/commands.mdx +++ b/packages/web/src/content/docs/commands.mdx @@ -227,6 +227,8 @@ This is shown as the description in the TUI when you type in the command. ### Agent Use the `agent` config to optionally specify which [agent](/docs/agents) should execute this command. +If this is a [subagent](/docs/agents/#subagents) the command will trigger a subagent invocation by default. +To disable this behavior, set `subtask` to `false`. ```json title="opencode.json" { @@ -238,7 +240,26 @@ Use the `agent` config to optionally specify which [agent](/docs/agents) should } ``` -This is an **optional** config option. If not specified, defaults to "build". +This is an **optional** config option. If not specified, defaults to your current agent. + +--- + +### Subtask + +Use the `subtask` boolean to force the command to trigger a [subagent](/docs/agents/#subagents) invocation. +This useful if you want the command to not pollute your primary context. + +```json title="opencode.json" +{ + "command": { + "analyze": { + "subtask": true + } + } +} +``` + +This is an **optional** config option. --- |
