summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJustin Vogt <[email protected]>2025-12-08 05:53:41 +0100
committerGitHub <[email protected]>2025-12-07 22:53:41 -0600
commitd6e499dd481a8a743a92706832d0c6b175f20a98 (patch)
tree7ceb6421ad3b1e0b8612785878228e6309618fa4
parentaec1497c6eaf49e8fe179fd9595345d4840d84a1 (diff)
downloadopencode-d6e499dd481a8a743a92706832d0c6b175f20a98.tar.gz
opencode-d6e499dd481a8a743a92706832d0c6b175f20a98.zip
docs: Update "model" inheritance for agents (#4894)
Co-authored-by: Aiden Cline <[email protected]>
-rw-r--r--packages/web/src/content/docs/agents.mdx7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/agents.mdx b/packages/web/src/content/docs/agents.mdx
index a2997515b..db6ae5c86 100644
--- a/packages/web/src/content/docs/agents.mdx
+++ b/packages/web/src/content/docs/agents.mdx
@@ -315,7 +315,12 @@ This path is relative to where the config file is located. So this works for bot
### Model
-Use the `model` config to override the default model for this agent. Useful for using different models optimized for different tasks. For example, a faster model for planning, a more capable model for implementation.
+Use the `model` config to override the model for this agent. Useful for using different models optimized for different tasks. For example, a faster model for planning, a more capable model for implementation.
+
+:::tip
+If you don’t specify a model, primary agents use the [model globally configured](/docs/config#models) while subagents will use the model of the primary agent that invoked the subagent.
+:::
+
```json title="opencode.json"
{