Skip to content

Support role-based selection of configured OpenCode agents #58

Open

Description

@esafak

Problem

Ensemble's modelsByAgent selects models by OpenCode agent ID, while team roles are teammate names. The recommended roles reuse agent IDs (scout/reviewer use explore; builder/QA use build), so model configuration cannot distinguish those roles.

I want to select my existing OpenCode agent profiles by team role and keep each model configured only in OpenCode—not duplicate model IDs in Ensemble config. Those profiles already define their own models and behavior.

The README could be better organized; it mixes role guidance, model selection, configuration, and operational instructions.

Desired behavior

Allow a role-to-agent mapping, for example:

{
  "agentsByRole": {
    "scout": "explore",
    "api": "build",
    "qa": "review",
    "reviewer": "review"
  }
}

When spawning a teammate, Ensemble should use the mapped OpenCode agent and let that agent's configured model/settings apply. An explicit team_spawn.model should still override the agent's model. Ensemble should not require repeating model IDs in its own config.

Activity

  1. changed the title [-]Support role-based model defaults for Ensemble teammates[/-] [+]Support role-based selection of configured OpenCode agents[/+] on Nov 16, 2026
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