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
docs(cli): explain how to keep agent handoffs under their parent - #46349
Agents get a copyable command for putting related work under the current workspace and a separate command for independent work.
What Changed
The Full Handoffs section of the bundled Orca CLI guide now leads with --parent-worktree active. It explains how to select the parent explicitly from another workspace, choose the child project, and verify the saved link. The CLI reference uses the explicit parent flag in its child-worktree example. This updates guidance for existing commands.
Why
Agents choose a launch command in the handoff section. Showing both cases there makes the workspace hierarchy an explicit choice.
ORCA_CODE_QUALITY_BASE=upstream/main pnpm check:changed passed all 22 checks on macOS.
Built the fork's CLI and confirmed orca-dev skills get orca-cli prints the new related and independent recipes. The fork's Electron development renderer started in an isolated profile.
Used an explicit parent to create the two local validation worktrees and confirmed their saved parent IDs with worktree show.
Existing tests cover the runtime paths. The change adds guidance for existing flags.
Performance
None. The change updates static documentation and bundled help.
Risk
Level Low. An inaccurate recipe could give a child the wrong sidebar parent. Reverting the documentation and regenerating the bundle restores the previous help text.
AI Disclosure
OpenAI Codex drafted the changes and ran local validation.
Review
The examples use existing CLI flags and workspace selectors across supported hosts and Git providers. The change affects agent guidance only. It introduces no UI, integration, security, or runtime changes.
Agent skill upstream boundary
This change copies or translates no upstream skill-installer material.
The CLI reference and Orca CLI guides distinguish related child-worktree handoffs from independent top-level handoffs. They document --parent-worktree active, explicit parent selectors, cross-project selection, and parent verification with worktree show. They retain --no-parent for independent work. The guides also state when to omit --base-branch and update the model-and-effort example to use a child worktree.
Severity of issue fixed: Medium
Merge Risk: Low · up to ec306
This change only updates handoff guidance. Two instructions could send readers to commands that miss a parent or child on a paired server. The fixes are small doc edits.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "docs(cli): explain how to keep agent handoffs under their parent" matches the main change. The PR updates the bundled Orca CLI guide and CLI reference so agents use --parent-worktree active…
Description check
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #46348), Visual Proof (N/A with reason), Testing with checked items and platform details, Perf…
Linked Issues check
Issue #46348 has three coding acceptance criteria. (1) Distinct related and independent handoff commands: skill-guides/orca-cli.md at head, under 'Full Handoffs', gives the child-worktree command with…
Out of Scope Changes check
All changed content maps to issue #46348. The reference.mdx diff adds the related and independent parent guidance, the --repo/--project note, worktree show verification, and the worktree ps ad…
Full details: Title check
Explanation
The title "docs(cli): explain how to keep agent handoffs under their parent" matches the main change. The PR updates the bundled Orca CLI guide and CLI reference so agents use --parent-worktree active for related work and --no-parent for independent work. The title is specific, concise, and follows a conventional commit style.
Full details: Description check
Explanation
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #46348), Visual Proof (N/A with reason), Testing with checked items and platform details, Performance ('None, because...'), Risk with level Low and a revert path, AI Disclosure, Review, and the upstream boundary checkbox. Minor gaps: the Testing checklist boxes are not ticked, and the 'Risk' section does not list the boundary crossings the template asks about in detail. Those gaps are non-critical.
Full details: Linked Issues check
Explanation
Issue #46348 has three coding acceptance criteria. (1) Distinct related and independent handoff commands: skill-guides/orca-cli.md at head, under 'Full Handoffs', gives the child-worktree command with --parent-worktree active first, then a separate --no-parent command. The guide explains passing the parent's address.worktree from outside the parent workspace, --parent-environment for another environment, --repo or --project for another project, and verifying with worktree show --worktree <child-selector> --json. It also says to omit --base-branch so the starting ref stays the target project's default Git base, which matches the issue's requirement. (2) CLI reference shows an explicit parent: docs/site/content/docs/cli/reference.mdx at head changes the worktree create --name child-task example to include --parent-worktree active. The reference diff was read directly. (3) Existing create and lineage behavior: the changed files are documentation and bundled guide text only, so no runtime create or lineage logic changed. Limits: the whole-PR base diff for skill-guides/orca-cli.md could not be read, so the head text was not compared line by line with the base. The generated src/cli/skills/bundled-skill-guides.ts was not read; its consistency with the Markdown source rests on the supplied summary. The changes since the previous review were not separately readable as a diff, so the prior conclusion is preserved on the head text that was read.
Full details: Out of Scope Changes check
Explanation
All changed content maps to issue #46348. The reference.mdx diff adds the related and independent parent guidance, the --repo/--project note, worktree show verification, and the worktree ps address guidance for --parent-environment and --parent-worktree. Each item is part of the parent-selection documentation the issue requests. The reference example change (--parent-worktree active) implements the issue's acceptance criterion. The skill guide's Full Handoffs section covers the same recipe. The base-branch note keeps the Git starting ref independent of the workspace hierarchy, as the issue specifies. The model/effort example uses the child-worktree command, which follows from the same recipe change. No runtime, create-logic, or lineage code is changed. Limit: the base diff for the skill guide was not readable, so edits outside the read head text in that file are not confirmed. The supplied summary reports no such edits.
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.
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: 566a2052-d1ff-4258-a6b9-a5b8948ac201
Commits
Reviewing files that changed from the base of the PR and between f388c73 and cdd854b.
Files selected for processing: 3
docs/site/content/docs/cli/reference.mdx
skill-guides/orca-cli.md
src/cli/skills/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.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
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: 63dbf882-93ce-4f4e-9e87-9f652cbbbec6
Commits
Reviewing files that changed from the base of the PR and between cdd854b and ec3060e.
Files selected for processing: 3
docs/site/content/docs/cli/reference.mdx
skill-guides/orca-cli.md
src/cli/skills/bundled-skill-guides.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.
When `worktree create` runs from inside an Orca-managed worktree, Orca records the new worktree as a child when it can infer the relationship. Pass `--parent-worktree active` to be explicit, or `--no-parent` when the new work is independent.
When `worktree create` runs from inside an Orca-managed workspace, Orca records the new worktree as a child when it can infer the relationship. For related work, pass `--parent-worktree active` or the intended parent's exact workspace selector. Pass `--repo` or `--project` when the child belongs to a different project. Use `--no-parent` for independent work and `worktree show --worktree <child-selector> --json` to verify the saved parent.
For a parent in another Orca environment, get its address from `orca worktree ps --json`. Pass its `address.environment` to `--parent-environment` and its `address.worktree` to `--parent-worktree`.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Name --environment when reading a remote parent's address.
Plain orca worktree ps --json lists only this machine and its SSH targets. A parent on a paired server is reported as not covered and is not listed. Following line 126 as written sends readers to a command that cannot return that parent's address. Use the environment flag for the remote server, as the CLI's own hint does.
Suggested fix
--- "a/docs/site/content/docs/cli/reference.mdx"+++ "b/docs/site/content/docs/cli/reference.mdx"@@ -123,7 +123,7 @@
When `worktree create` runs from inside an Orca-managed workspace, Orca records the new worktree as a child when it can infer the relationship. For related work, pass `--parent-worktree active` or the intended parent's exact workspace selector. Pass `--repo` or `--project` when the child belongs to a different project. Use `--no-parent` for independent work and `worktree show --worktree <child-selector> --json` to verify the saved parent.
-For a parent in another Orca environment, get its address from `orca worktree ps --json`. Pass its `address.environment` to `--parent-environment` and its `address.worktree` to `--parent-worktree`.+For a parent in another Orca environment, get its address from `orca worktree ps --environment <name> --json`. Pass its `address.environment` to `--parent-environment` and its `address.worktree` to `--parent-worktree`.
Pass `--branch DAT-111-fix-login` to name the Git branch yourself instead of applying the configured branch prefix. `--name` still sets the workspace name and `--base-branch` the starting ref. If that branch already exists and cannot be reused, or the workspace path is already taken, Orca appends a numeric suffix to both, as it does in the new-workspace composer, so `--name task --branch exact` can produce branch `exact-2` even when `exact` is free.
Committable suggestion
IMPORTANT
Review the replacement and indentation, then test before committing.
Suggested change
For a parent in another Orca environment, get its address from `orca worktree ps --json`. Pass its `address.environment` to `--parent-environment` and its `address.worktree` to `--parent-worktree`.
For a parent in another Orca environment, get its address from `orca worktree ps --environment <name> --json`. Pass its `address.environment` to `--parent-environment` and its `address.worktree` to `--parent-worktree`.
From outside the parent workspace, pass its `address.worktree` from `worktree show` or `worktree ps` to `--parent-worktree`. If the parent is in another environment, also pass its `address.environment` to `--parent-environment`. If the child belongs to another project, pass its `--repo` or `--project`. Verify the saved parent with `worktree show --worktree <child-selector> --json`.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Select the child's environment when verifying its parent.
If the child was created on a paired server, worktree show without --environment can query the local Orca instead. It can fail to find the child or inspect a different workspace. Include the child's environment in the verification command. Regenerate the bundled guide as well.
This branch has not been deployed
No deployments
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
Agents get a copyable command for putting related work under the current workspace and a separate command for independent work.
What Changed
The Full Handoffs section of the bundled Orca CLI guide now leads with
--parent-worktree active. It explains how to select the parent explicitly from another workspace, choose the child project, and verify the saved link. The CLI reference uses the explicit parent flag in its child-worktree example. This updates guidance for existing commands.Why
Agents choose a launch command in the handoff section. Showing both cases there makes the workspace hierarchy an explicit choice.
Linked Issue
Fixes #46348
Visual Proof
N/A. This changes CLI guidance and documentation.
Testing
ORCA_CODE_QUALITY_BASE=upstream/main pnpm check:changedpassed all 22 checks on macOS.orca-dev skills get orca-cliprints the new related and independent recipes. The fork's Electron development renderer started in an isolated profile.worktree show.Performance
None. The change updates static documentation and bundled help.
Risk
Level Low. An inaccurate recipe could give a child the wrong sidebar parent. Reverting the documentation and regenerating the bundle restores the previous help text.
AI Disclosure
OpenAI Codex drafted the changes and ran local validation.
Review
The examples use existing CLI flags and workspace selectors across supported hosts and Git providers. The change affects agent guidance only. It introduces no UI, integration, security, or runtime changes.
Agent skill upstream boundary