[PR #4894] docs: Update "model" inheritance for agents #11160

Closed
opened 2026-02-16 18:15:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4894

State: closed
Merged: Yes


Clarified the behavior of the default 'model' config for agents.

This clarifies that modelis not inherited from the global model config, but from the primary agent that invokes the subagent.

I came across this when setting big pickle as global default, using sonnet for the build agent and removed the model config from my subagents. This made the subagents use sonnet instead of big pickle.

I think this is important, especially for providers that count per requests like copilot. Making the subagents using a fast and cheaper model like big pickle seems reasonable.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4894 **State:** closed **Merged:** Yes --- Clarified the behavior of the default 'model' config for agents. This clarifies that `model`is not inherited from the global model config, but from the primary agent that invokes the subagent. I came across this when setting big pickle as global default, using sonnet for the build agent and removed the model config from my subagents. This made the subagents use sonnet instead of big pickle. I think this is important, especially for providers that count per requests like copilot. Making the subagents using a fast and cheaper model like big pickle seems reasonable.
yindo added the pull-request label 2026-02-16 18:15:57 -05:00
yindo closed this issue 2026-02-16 18:15:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11160