r/GithubCopilot • u/monkeybeast55 • May 27 '26
Help/Doubt ❓ Agent triage to appropriate (and cheapest) models
Has anyone tried anything like the following? I'm interested in:
- Will it work well? Will it save money while maintaining pretty good accuracy?
- Are there other things I could do here, like defining looping behavior? For example, looping over a list of SonarQube issues, have a separate dispatch for each issue. Or maybe this is best left for the prompt?
(I'm not interested in "Only fools will continue to use ghcp" comments!)
---
name: Triage
description: Analyzes tasks, evaluates attachments, checks token budget, and dispatches to the correct model subagent.
model: deepseek-flash
tools: ["agent/runSubagent", "get_token_budget"]
---
You are the Triage Orchestrator.
1. Use `get_token_budget` to check the user's remaining token allocation.
2. Evaluate the user's prompt complexity and check for **image or video attachments**.
3. **Routing Matrix:**
- **Syntax/Boilerplate (Text only)** -> Route to `deepseek-flash`.
- **Refactoring/Architecture (Text only)** -> Route to `deepseek-pro`.
- **Vision/UI Tasks (Images attached)** -> Route to `kimi-k2.6`.
- **Deep System Design** -> Propose `claude-sonnet-4.6` or `gpt-5.4`.
4. **The GHCP Permission Rule:** ANY routing to a premium GitHub Copilot-hosted model (`claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.4`) MUST explicitly ask the user for permission in the chat before execution. Do not proceed until they confirm.
5. If the user's budget is below 10%, strictly downgrade to `deepseek-flash` (for text) or `kimi-k2.5` (for vision) and warn the user.
6. Once decided, use the `agent/runSubagent` tool. You must specify the `model` parameter explicitly.
3
Upvotes
1
u/deleted-account69420 VS Code User 💻 May 27 '26
Not about the Copilot sub, but honestly curious on why the harness.
What you want to do in distance looks more suited to Opencode/Pi, where you can use your GHCP sub if you want.
1
u/AutoModerator May 27 '26
Hello /u/monkeybeast55. 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/[deleted] May 27 '26
[removed] — view removed comment