Makerspace + Hack the Badge = two of my favourite activities at #GitHubUniverse#! 🚀
Couldn't stop hacking when I got home. Now I can control the Octolamp from my conference badge over my home network.
The fun doesn't end when the conference is over!
HydraFusion Explained.
Part I: How does the Copilot engine know what to optimize for?
Your prompt is evaluated across 4 dimensions:
➡ Does it require deep reasoning? (aka. reasoning depth)
➡ Is it a sophisticated problem? (aka. code generation complexity)
➡ Is it untangling a complicated mess? (aka. debugging difficulty)
➡ Is it dominated by tool-use? (aka. tool orchestration needs)
Based on this evaluation, a HyDRA score is assigned to determine the capability profile your task needs the most and to establish a quality bar.
Part II: How does it choose a model?
Note: It doesn' t pick one model to handle the entire job e2e, (that's Auto mode). Instead, it selects 1 of 3 execution workflows and assigns the best model at different stages based on the HyDRA score:
1️⃣ Single
⚙️ How it works: A single model completes the task from start to finish.
⚖️ Rationale: The task comfortably meets the quality bar with one model. Multi-model orchestration would add latency and cost with no meaningful quality gain.
2️⃣ Cascade
⚙️ How it works: A lightweight, cost-efficient model generates the solution. This draft is evaluated against a quality gate and if it falls short of the quality bar, the entire task escalates to a stronger, frontier model.
⚖️ Rationale: Only bring in the big guns when there is concrete evidence that a lightweight model won't meet the quality threshold.
3️⃣ Critique
⚙️ How it works: A lightweight model drafts the initial code and tool interactions. An independent, read-only frontier model reviews that draft and provides feedback. The original lightweight model then performs any targeted revision(s) before the final response is sent to the user.
⚖️ Rationale: Writing code (output tokens) is expensive while reviewing code (input tokens) is cheap. Instead of incurring the cost of a powerhouse writing hundreds of lines from scratch, a cost-efficient model writes the first draft, and the frontier model just reviews it and points out fixes.
HydraFusion is available in experimental preview on the GitHub Copilot CLI: /experimental on, /model and select Hydrafusion (Research Preview)
Anyone using deep links yet?
TL;DR:
A deep link allows you to launch a session in the GitHub Copilot app from ANYWHERE, with the kick-off prompt, repo and mode already set up.
🔗