Skip to content

Add per-sub-agent provider routing#3969

Open
heyparth1 wants to merge 1 commit into
Hmbown:mainfrom
heyparth1:brutus/issue-3965
Open

Add per-sub-agent provider routing#3969
heyparth1 wants to merge 1 commit into
Hmbown:mainfrom
heyparth1:brutus/issue-3965

Conversation

@heyparth1

Copy link
Copy Markdown

This PR introduces explicit per-role/type provider routing for sub-agents, allowing different sub-agents to run on different providers (e.g., LM Studio for quick edits, DeepSeek for complex reasoning) within the same session.

Changes:

  • Adds the [subagents.routes.<role>] configuration table to pin a sub-agent role or type to a specific provider and an optional model.
  • Normalizes route keys to lowercase and trims whitespace from provider and model names.
  • Passes the routing configuration to the sub-agent runtime, so matching sub-agents spawn on the assigned provider instead of inheriting the parent session's active provider.
  • Adds unit tests for parsing and normalizing the new configuration.

Closes #3965

@heyparth1 heyparth1 requested a review from Hmbown as a code owner July 3, 2026 12:16
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Thanks @heyparth1 for taking the time to contribute.

This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered.

Please read CONTRIBUTING.md for the expected contribution shape. A maintainer can grant recurring PR access by commenting /lgtm on a pull request.

@heyparth1

Copy link
Copy Markdown
Author

Thanks @JayBeest! Yes, this pins any sub-agent to any configured provider/model (not just local vs cloud); smart/keyword routing is a good follow-up but out of scope here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Per-sub-agent provider assignment (explicit routing) + LM Studio support

1 participant