Skip to content

[FEATURE]: Show resolved model for delegated Task subagents #41136

Closed as not planned

Description

@Doble-K

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

First of all, thank you for OpenCode.

While building an AI orchestration framework on top of OpenCode, I spent some time investigating what I initially believed was a bug in Task model selection.

After tracing the framework implementation, I realized the behavior was actually correct. The confusion came from my own framework routing rather than from OpenCode itself.

Specifically:

The actual problem was that my Director delegated work to a generic worker agent, which was configured to use a Small model (MiMo), while my prompts kept referring to a Medium model (DeepSeek). OpenCode correctly executed the model configured for that delegated agent.

Once I changed my framework to delegate explicitly to worker-medium, everything behaved exactly as expected.

The usability issue

Although the framework is behaving correctly, it took a fairly deep investigation—including tracing the source code—to understand why a delegated task was running on a different model than I expected.

From a user's perspective, there are several different concepts involved:

  • The model mentioned in the prompt.
  • The model configured on the delegated agent.
  • The effective model that will actually execute the task.

At the moment, the last one is not obvious when reading the conversation.

Proposal

When a Task delegation is created, display the resolved execution model.

For example:

Delegating to: worker-medium
Resolved model: opencode-go/deepseek-v4-flash

or

Delegating to: worker
Configured model: opencode-go/mimo-v2.5

If the delegated agent inherits its model instead of defining one explicitly, that could also be indicated.

The goal is simply to make the effective execution path visible.

Why this is different from #17595

This proposal is not requesting runtime model overrides.

Issue #17595 proposed allowing the Task tool to receive a runtime model parameter.

This proposal keeps the current behavior exactly as it is.

The only suggestion is to expose the resolved execution model that OpenCode has already selected internally.

Benefits

  • Makes debugging multi-agent orchestration much easier.
  • Reduces confusion between requested, configured, inherited, and effective models.
  • Helps explain why a delegated task executed on a particular model.
  • Improves transparency without changing any existing behavior.
  • Fully backward compatible.

Closing

After completing the investigation, I concluded that OpenCode was behaving correctly and that my original assumption was incorrect.

However, understanding that required tracing the framework internals.

Making the resolved execution model visible during Task delegation would make this much easier for developers building orchestration frameworks while preserving the current architecture and behavior.

Thank you for considering the idea.

Activity

  1. github-actions commented on Aug 7, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    You may want to reference or build on those discussions.

  2. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions