Add worktree load tool#105
Closed
dbpolito wants to merge 3 commits into
Closed
Conversation
- register worktree_load in core and OpenCode tool configuration - update PR workflows to load local branch and HEAD through worktree context - document the new tool and cover registration/template behavior in tests
There was a problem hiding this comment.
★★★★☆
Solid, well-tested addition. The tool is correctly wired across core/OpenCode registration, schema, bundled configs, and generated command artifacts. The only material issues are two docs that describe a comparison feature the tool does not implement — worktree_load takes no args and never compares HEAD to an expected SHA. Fixing those keeps the public docs in sync with the actual surface (per AGENTS.md's source-of-truth rule).
- load worktree context explicitly in PR fix and review commands - avoid detached-head checkout during read-only PR reviews - update generated OpenCode commands, docs, and tests
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.
Ticket
SKIPPED
Description
Adds a dedicated workflow tool for reading local branch and HEAD state so PR-oriented commands can align checkout context without ad hoc git discovery.
Checklist
Worktree Context
worktree_loadtool for local branch and HEAD statePR Workflow Alignment
Documentation And Configuration
Validation
worktree_loadreports branch, HEAD, and detached state correctlyworktree_loadconsistently