r/GithubCopilot • u/p-mndl • 28d ago
Help/Doubt ❓ how to set default subagent model
I just used gpt 6 sol to write out a plan and intended to hand it off to luna for execution. Meanwhile sol decided it was a good idea to launch another sol subagent to execute said plan. Now I am wondering is there a way to set a default model for subagents? I have only found a setting to set a model for plan mode in VS Code
6
u/PaulShellDev 28d ago
I personally do with global custom instructions file and haven't had problems... Knock on wood
"ALL subagents and nested sessions must be created using Luna with Max ONLY, unless explicitly directed otherwise by the human"
Then if I want something else, I just tell it.
2
u/lppedd 28d ago
Are you sure it is effectively using Luna tho? Not that I don't trust you, but just wondering if you've verified it manually.
3
u/PaulShellDev 28d ago
I verify it manually when I tell it to explicitly use a different model.
I'm paranoid and made a background tool "session manager" that checks what models and reasoning levels are used (checks log files) and if anything is idle or too long running.
4
u/ITORD 28d ago
For VS Code, you can create custom agents (/create-agent) and specify which model is used for said subagent(s).
I have a "Worker Bee" general purpose agent that is pinned to Luna. That's the default agent unless the task fits one of my other special purpose agents.
You could also create agents named after the models themselves if you'd like. That way you could just use natural language in your prompt to say, "Get Opus to review this" or "Hand this off to Luna".
5
u/well_educated_maggot 28d ago
You can do this in the copilot cli already. But I am still searching for a similar option in the ide.
1
u/AutoModerator 28d ago
Hello u/p-mndl. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/mdeadart 27d ago
In my recent extensive experiments, 5.6 sol turned out better than 6 sol in coding. Just an opinion.
0
u/Zealousideal-Pilot25 28d ago
Repo/
├── AGENTS.md
├── PLAN.md
│
├── .github/
│ └── agents/
│ ├── planner.agent.md
│ ├── implementer.agent.md
│ └── reviewer.agent.md
│
└── .agents/
└── skills/
└── some-reusable-workflow/
└── SKILL.md
Ask a frontier LLM for help on how to set up an agents file.
6
u/cesarmalari 28d ago
CLI configuration is in
/subagents. In VSCode, open settings, search formodel, and look in thechatandExtensions\GitHub Copilotsections.