1jehuang / 1jehuang/jcode

Feature request: Per-agent model selection in Swarm

Open
#683 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority: low question triage: needs-decision
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

Currently, Swarm appears to use the session's configured model for all agents. It would be useful if each agent (or role) could use a different model.

Example:

  • "coder" → fast coding model
  • "reviewer" → stronger reasoning/review model

This would enable workflows such as:

  • Fast code generation + high-quality review
  • Lower cost by assigning expensive models only where needed
  • Easier multi-agent orchestration without manually managing separate sessions

A possible configuration could look like:

[swarm.roles.coder]
model = "..."

[swarm.roles.reviewer]
model = "..."

or any equivalent mechanism for assigning a model when spawning an agent.

Is this something you'd consider adding? If not, what is the recommended way to run Swarm with different models for different agent roles?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing how Swarm reads the session's model and how it spawns agents, then compare that path with the proposed per-role configuration. Done means distinct roles can select distinct models, with a documented configuration or spawning mechanism and coverage for the example workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.