Repository navigation
Integrate opt-in Smart Router Orchestrator - #996
Merged
Merged
Conversation
JJ27
marked this pull request as ready for review
October 5, 2026 23:24
JJ27
force-pushed
the
JJ27/ug-model-orchestrator
branch
from
October 6, 2026 21:35
51849aa to
fd69ad4
Compare
JJ27
force-pushed
the
JJ27/ug-model-orchestrator
branch
from
October 6, 2026 23:15
fd69ad4 to
614476b
Compare
JJ27
force-pushed
the
JJ27/ug-model-orchestrator
branch
from
October 6, 2026 23:39
614476b to
cee1e05
Compare
JJ27
added this pull request to stack #1020
October 7, 2026 05:59
JJ27
force-pushed
the
JJ27/ug-model-orchestrator
branch
from
October 7, 2026 14:56
26afe45 to
982e586
Compare
lilly-luo
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What did you change, and why?
Add Smart Router Orchestrator to existing Claude and Codex smart-routing launches behind the default-off
ENABLE_SMART_ROUTER_ORCHESTRATOR=1flag. Opted-in launches installsmart-router-orchestratoralongsidesmart-router, load the bundled Claude roles in the existing temporary plugin, and register hooks before root prompts and after compaction.The hooks use the existing UG session and routing controls to supply the workflow or tell the root that orchestration is off. Turning Smart Router off through its skill stops new automatic delegation; turning it on restores orchestration only in opted-in sessions. Changes made outside the conversation are observed at the next prompt or compaction hook. Explicit user requests for subagents remain supported while routing is off.
Smart Router selects child models; the skill supplies role instructions. Claude roles retain their Sonnet defaults, and Codex delegates without model or reasoning-effort overrides. Codex combines UG's launch hooks with native user/project hook sources and applies project trust. Existing launch eligibility and session setup are reused.
Update the skill instructions and documentation for this behavior. Extend the real Claude/Codex toggle journeys to cover the orchestration flag off/on and verify installed skills, saved controls, actual command results, completed child tasks, and correlated routing decisions.
How do you know it works?
smart-router-orchestratorskill in temporary Claude and Codex homes. Both prompt and compaction hooks returned the full skill withENABLE_SMART_ROUTER_ORCHESTRATOR=1; flag-off behavior and bundled Claude roles passed.The toggle journeys explicitly request children. Automatic delegation and compaction are tested separately in #1036. Native-agent results for this revision are pending CI; the local bundle checks do not establish a live agent pass.