Skip to content

Support for configurable models for internal sub-tasks (Example: Subagents(Explore, Task, etc) and Compaction) #2032

@viraj-s15

Description

@viraj-s15

Describe the feature or problem you'd like to solve

Currently, the Copilot CLI uses the primary chat model to handle auxiliary tasks like context compaction. I propose decoupled model configuration. This would allow users to map specific sub tasks, such as summarization/compaction and task agent execution to different models based on the difficulty of the required task. For example: I would like to use a lightweight model for compaction but a more knowledgable model for task execution/exploring.

Proposed solution

Introduce a configuration section (in config.json) that allows mapping tasks/default subagents types to specific models.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:context-memoryContext window, memory, compaction, checkpoints, and instruction loadingarea:modelsModel selection, availability, switching, rate limits, and model-specific behavior
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions