Skip to content

Say when the orchestration skill applies, and prefer the agent's own subagents otherwise - #34704

Closed
Jinwoo-H wants to merge 2 commits into
mainfrom
orchestration-skill-trigger
Closed

Jinwoo-H wants to merge 2 commits into
mainfrom
orchestration-skill-trigger

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​64 $\color{#cf222e}{\Huge{\mathbf{−}}}$​55 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9

ELI5

The orchestration skill's description now says when to use it: when the work needs a different agent (for example, Codex from Claude) or its own Orca workspace, or when the user asks for workers or supervision. Otherwise, agents use their own subagents, including for long or parallel work.

What Changed

  • skill-guides/orchestration.md frontmatter description. This is the text agents see in their skill list before they decide to load the skill. Today's text is mostly a vocabulary list and never says when to use it. The new text:
    • lists when to use it: an explicit ask, a different agent, its own Orca workspace, or being a dispatched worker;
    • says to prefer the agent's own subagents otherwise;
    • keeps the same orca-cli handoff routing.
  • skill-stubs/orchestration.md: the stub body says the same thing.
  • Regenerated skills/orchestration/SKILL.md, src/cli/bundled-skill-guides.ts, and the skill bundle manifest.

The guide body is unchanged. The description is 729 characters.

Why

A Claude agent asked to "have Codex review this" ran codex exec itself. Asked for a change "in its own separate workspace", it created a worktree and edited it itself. Neither result came back through Orca. Long and parallel work should still go to the agent's own subagents, so the trigger is limited to what those cannot do.

Linked Issue

N/A (maintainer change)

Visual Proof

Setup: a hidden dev build (ORCA_BACKGROUND_LAUNCH=1) with its own profile and agent config. A fresh Claude coordinator ran in an Orca terminal in a demo repo for each trial, and no prompt mentioned "/orchestration". Only the installed skill stub differed between runs. One run per cell.

Prompt Before After
"Have Codex review greet.sh for bugs and tell me what it finds." Skill not loaded; ran codex exec --sandbox read-only itself Skill loaded; run-create + worker-start --worktree current --agent codex
"Make the --verbose change to greet.sh in its own separate workspace I can look at later, and tell me when it's done." Skill not loaded; orca worktree create, then edited it itself Skill loaded; run-create + worker-start --worktree new-top-level --name greet-verbose --agent claude
"Use a few parallel subagents to review greet.sh and README.md for bugs and summarize." Skill not loaded; 2 native subagents Skill not loaded; 2 native subagents (unchanged, as intended)
"Fix the typo in README.md." Skill not loaded; fixed it itself Skill not loaded; fixed it itself (unchanged)

Testing

  • I manually tested these changes locally (macOS, hidden dev build, table above)
  • Automated tests added/updated, or explained why not below

pnpm check:changed --maxWorkers=2 passes all 21 checks. The bundled-guide generator, routing, flag, and parity tests pass. No new tests: this changes guide text only.

AI Disclosure

Review

Also: orca-cli's handoff rule now defers to orchestration when the user expects a result back, its status lookup sends to a supervised worker's dispatch:<id> mailbox instead of typing into its terminal, and it no longer lists handoffs among orchestration's uses. These were the places where the two skills gave an agent opposite instructions.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a1b4177-e3a8-4b06-8d79-734b5c0e008a
Commits

Reviewing files that changed from the base of the PR and between 6ef0065 and 9758bfc.

Files selected for processing: 2
  • skill-guides/orca-cli.md
  • src/cli/bundled-skill-guides.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The orchestration guidance now distinguishes Orca worker and supervision requests from work suited to local subagents. It routes terminal, worktree, and specified handoff tasks to orca-cli. The orca-cli guidance updates full-handoff exceptions and supervised-worker mailbox instructions. Bundled guidance reflects these rules, and the package digest records are updated.

Priority: Low

Merge Risk: Moderate · up to 9758b

Requests intended for supervised Orca work may still bypass worker tracking and coordination; correct the role table before merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: defining when the orchestration skill applies and preferring the agent’s own subagents otherwise.
Description check Passed The description is mostly complete. It includes the ELI5 summary, user-facing changes, rationale, maintainer issue note, visual proof, testing results, and related routing changes. Some template secti…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is mostly complete. It includes the ELI5 summary, user-facing changes, rationale, maintainer issue note, visual proof, testing results, and related routing changes. Some template sections, such as Notes and Checklist, are omitted, but the core information is present and specific.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e9ea3a8-368f-485b-8e05-18b9ae5c93cb
Commits

Reviewing files that changed from the base of the PR and between 48f7ce7 and 6ef0065.

Files selected for processing: 7
  • resources/skills/current-manifest.json
  • resources/skills/released-digests.json
  • skill-guides/orchestration.md
  • skill-stubs/orchestration.md
  • skills/orchestration/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/main/skills/bundled-skill-install/bundled-skill-sources.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +5 to +7
the user asks for Orca workers or supervision (monitor, task DAGs, ask/reply,
decision gates), or when the work needs something your own subagents cannot
give: a different agent (such as Codex from Claude) or its own Orca workspace.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Major · Functional Correctness · Quick win

Supported by static analysis

Script executed:

sed -n '1,80p' skill-guides/orchestration.md
git diff 8b64ec281a318d1bd1d041a4525cd5986dca2370 6ef00650e2a62f7065c83b60561d1f3da691621a -- skill-guides/orchestration.md

Repository: stablyai/orca

Length of output: 7526


Script executed:

git show 8b64ec281a318d1bd1d041a4525cd5986dca2370:skill-guides/orchestration.md | sed -n '1,55p'

Repository: stablyai/orca

Length of output: 4218


Align the role table with the new worker triggers.

When the user asks for an Orca worker, a different agent such as Codex, or a dedicated Orca workspace, the table has no matching row. Without explicit supervision, the request can route to orca-cli or an ordinary terminal agent and bypass supervised worker tracking.

Add a coordinator row and keep unsupervised ownership handoffs separate.

Suggested role-table fix
 | The user explicitly asks to supervise, monitor, wait for results, track completion, coordinate a DAG, use a decision gate, or manage ask/reply | Coordinator             | Use the supervised loop below                                                  |
+| The user asks for an Orca worker, or the work needs a different agent or its own Orca workspace                                      | Coordinator             | Use the supervised loop below                                                  |
 | The current prompt contains a live injected preamble with Task and Dispatch IDs                                                                | Dispatched worker       | Follow the preamble and the worker obligations below                           |

@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Superseded by #36137, which combines the orchestration v3 changes into one PR.

@Jinwoo-H Jinwoo-H closed this Oct 29, 2026
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.

1 participant