Skip to content

Integrate opt-in Smart Router Orchestrator - #996

Merged
lilly-luo merged 27 commits into
mainfrom
JJ27/ug-model-orchestrator
Oct 8, 2026
Merged

lilly-luo merged 27 commits into
mainfrom
JJ27/ug-model-orchestrator

Conversation

@JJ27

@JJ27 JJ27 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

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=1 flag. Opted-in launches install smart-router-orchestrator alongside smart-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?

  • 176 local tests passed across skill installation, Smart Router controls, Claude/Codex launches, integration contracts, and evidence readers.
  • Built the wheel offline and checked the packaged smart-router-orchestrator skill in temporary Claude and Codex homes. Both prompt and compaction hooks returned the full skill with ENABLE_SMART_ROUTER_ORCHESTRATOR=1; flag-off behavior and bundled Claude roles passed.
  • Repository Ruff lint, formatting, type checks, and diff checks 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.

@JJ27
JJ27 marked this pull request as ready for review October 5, 2026 23:24
Copilot AI balanced review requested due to automatic review settings October 5, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 5, 2026 23:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JJ27 JJ27 changed the title Bundle model orchestration with smart-routed sessions Integrate orchestrator skill with smart routing Oct 6, 2026
@JJ27
JJ27 force-pushed the JJ27/ug-model-orchestrator branch from 51849aa to fd69ad4 Compare October 6, 2026 21:35
Copilot AI balanced review requested due to automatic review settings October 6, 2026 21:35
@JJ27
JJ27 changed the base branch from main to JJ27/ug-orchestrator-skill October 6, 2026 21:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JJ27
JJ27 force-pushed the JJ27/ug-model-orchestrator branch from fd69ad4 to 614476b Compare October 6, 2026 23:15
@JJ27
JJ27 force-pushed the JJ27/ug-model-orchestrator branch from 614476b to cee1e05 Compare October 6, 2026 23:39
@JJ27
JJ27 added this pull request to stack #1020 October 7, 2026 05:59
Copilot AI balanced review requested due to automatic review settings October 7, 2026 06:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 06:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Base automatically changed from JJ27/ug-orchestrator-skill to main October 7, 2026 14:51
@JJ27
JJ27 force-pushed the JJ27/ug-model-orchestrator branch from 26afe45 to 982e586 Compare October 7, 2026 14:56
Copilot AI balanced review requested due to automatic review settings October 7, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 17:00
Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@lilly-luo
lilly-luo added this pull request to the merge queue Oct 8, 2026
Merged via the queue into main with commit 2ff1d8a Oct 8, 2026
27 checks passed
@lilly-luo
lilly-luo deleted the JJ27/ug-model-orchestrator branch October 8, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants