[Feature Request] Per-Mode Model Configuration for CLI Custom Modes #5341
benzntech
started this conversation in
1. Feature requests
Replies: 2 comments
|
Bump |
0 replies
|
Hello @benzntech , Saw your ask for per-mode model config to keep costs down — that manual per-mode picking is the exact friction I'm building away: a VS Code agent that auto-routes each turn to the right model so you never hand-bind per mode. I'm pulling ~20 people who've actually hit this into a private beta before launch — OK if I DM you the details? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Currently, the Kilocode CLI uses a single global provider/model configuration for all modes. When switching between custom modes (e.g., from
senior-architecttointern), the model remains the same. This limits the effectiveness of the mode hierarchy where:Proposed Solution
Add optional
preferredProviderIdandpreferredModelIdfields to theModeConfigschema, allowing per-mode model configuration incustom_modes.yaml:When switching modes via
/mode <slug>, the CLI would automatically switch to the specified provider/model.Prior Art
Aider implements this pattern with their architect/editor mode configuration:
editor_model_name- specifies a different model for code editingReference: https://aider.chat/docs/config/adv-model-settings.html
Implementation Scope
packages/types/src/mode.ts- AddpreferredProviderIdandpreferredModelIdtomodeConfigSchemacli/src/commands/mode.ts- Switch provider/model when mode changescli/src/config/customModes.ts- Parse new fields from YAMLBenefits
Backward Compatibility
Both fields would be optional. Existing configurations without these fields would continue to work with the global provider/model setting.
All reactions