Repository navigation
docs(worktree): explain contextual metadata-only listing - #100
Merged
Merged
Conversation
Implements [[tasks/harmony-2613]]
Document inferred worktree names, explicit-name precedence and the outside-worktree error. Refs [[tasks/harmony-2613]]
Document named and inferred selection, list versus status, metadata-only output, and selected errors versus aggregate warnings. Refs [[tasks/harmony-2613]]
Explain protocol cwd selection and error propagation before ordinary scope fallback. Refs [[tasks/harmony-2613]]
This was referenced Oct 23, 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.
Problem and resulting documentation
The existing guide did not explain how a background consumer can select one worktree set and obtain its repositories without collecting Git state that it immediately observes again. It also did not distinguish all-set listing from current-set behavior.
Document
list [NAME], inferred current-set selection and the independent--metadata-onlyoption. The guide now explains list versus detailed status, output fields, failures, and polling expectations.Before and after usage
Before, a topology-only consumer could request detailed status and discard extra Git facts:
After, select only the required observation detail:
Inside
.worktrees/example/or any descendant, omit the name:Plain list retains branch/dirty summaries; metadata-only returns aliases, physical checkout paths and canonical source paths under the existing
worktreesenvelope. Explicit NAME overrides inference. Outside a worktree, omitted NAME retains all-set listing.status NAMEremains the detailed Git-state command.Contracts clarified
Dependencies and validation
Publish with meta_cli #35 and meta_git_cli #29; ATC #554 consumes the API.
Documentation-only changes; formatting/whitespace checks passed. Examples and response fields were checked against the implementation and installed explicit/inferred commands on the actual 14-repository Harmony worktree. This documents the final list API; the earlier unreleased members command has been removed.
Tracked by [[tasks/harmony-2613]].
Summary by CodeRabbit
Review follow-up
The guide now clarifies that membership errors stop CLI dispatch before ordinary configuration fallback and that plugin list selection follows the protocol request directory even when the process starts elsewhere. Companion commits are Meta CLI
9de045fand Meta Git52e1322; CLI integration/protocol tests and Clippy passed.