You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Say when the orchestration skill applies, and prefer the agent's own subagents otherwise - #34704
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
"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.
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: 5
Check name
Status
Explanation
Title check
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
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
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 |
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
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.
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.mdfrontmatter 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:orca-clihandoff routing.skill-stubs/orchestration.md: the stub body says the same thing.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 execitself. 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.codex exec --sandbox read-onlyitselfrun-create+worker-start --worktree current --agent codexorca worktree create, then edited it itselfrun-create+worker-start --worktree new-top-level --name greet-verbose --agent claudeTesting
pnpm check:changed --maxWorkers=2passes 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'sdispatch:<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.