feat: add assign-model feature for subagent model selection#17570
feat: add assign-model feature for subagent model selection#17570VenTheZone wants to merge 1 commit intoanomalyco:devfrom
Conversation
Why: Users need to specify which AI models subagents should use without modifying agent definitions. This enables per-subagent model preferences that persist across sessions and can be scoped globally or per-project. What changed: - Add subagent_model_assignments config field (global + project scoped) - Implement model resolution at runtime for subagent task execution - Add Desktop UI with multi-step dialog (agent→provider→model→scope) - Add TUI dialog with Ctrl+X P keybind (verified no conflicts) - Add /assign-model slash command in both interfaces - Add comprehensive tests for config merging and model resolution - Regenerate SDK types for new config field Project config overrides global for individual agents. Changes take effect immediately by restarting the current session experience.
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, I found related PRs that might be working on similar features for subagent model selection: Potentially Related PRs:
These PRs are potentially addressing overlapping concerns about giving users control over which models subagents use. You may want to review these (especially PR #14961) to ensure there's no duplication of effort or to understand how the current PR differs in approach. |
|
I have something like this here: #11217 |
It shouldnt conflict though. Yours is more direct, mines a list of connected API, a selection like how you would change models for the main agent |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Issue for this PR
Closes #
Type of change
What does this PR do?
Adds the ability to assign specific AI models to subagents via config and UI. This allows users to specify which models subagents should use without modifying agent definitions.
Changes:
How did you verify your code works?
Screenshots / recordings
Screenshot will be uploaded later today.
Checklist