Repository navigation
feat(fix): pick findings and open a fix session on them - #33
Merged
Merged
Conversation
dw-mc fix <pr> shows what the current review run found, takes the findings I pick with whatever I have to say about each, and opens an interactive claude on them in a worktree cut from the tool's own clone. The findings reach the session as the JSON the schema defines, so a file, a line or a note of mine cannot drift in a re-description. The worktree stands on the pull request's own branch and is left behind when the session ends, because the commits in it are mine and an unpushed one lives nowhere else. The tool commits and pushes nothing: re-reviewing the result is a new review run against the new head. Closes #10 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A worktree standing on the pull request's own branch made the next fetch of the tool's clone exit 128, which would have taken review, fix and stamp down with it: git refuses to fetch into a branch a worktree has checked out. The fix worktree now stands on dw-mc/fix/<number>, which nothing fetches, and tracks the pull request's branch so a plain push from inside the session still lands on it. Re-cutting that worktree no longer resets the branch over commits I have not pushed; it stops and says where they are. The stale-head rule moves to the domain, and the header line above a findings list is read from one place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A fix session leaves the code changed and nothing else by default, which is one round trip more than I want on a repository I trust. fix.commits settles it once per repository and --commit for a single session; the prompt says which of the two the session is under. Pushing stays mine either way, and the tool itself still commits and pushes nothing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… out of a run Three things the review run on #33 found, and one it asked for. push.default was written to the clone every run shares, so a review worktree inherited how a fix session pushes. Git keeps it per worktree once extensions.worktreeConfig is on, which on a bare clone also means moving core.bare into the main worktree's own config: verified by running both, with and without the move. A quit on the note prompt read as "no note", so Ctrl-C part way through a list walked me through the rest of it and opened a session anyway. The prompt hands the quit on now and the command ends where I ended it. The review printed a line per tool call, which is a wall that says as little as silence. It keeps one line and rewrites it: spinner, what the run reached for, how long it has been. In a pipe, where there is no screen to measure, the tool lines come back. The findings list is ruled between columns, the picker takes its rows from the same place rather than building them again, and --print hands me the prompt for a session I already have open. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three columns of prose run into one another when two spaces are all that separates them, and the middle one is a commit subject that can end in anything. The rule is the same one the findings list uses, and the rows of every bucket are still measured together, so the columns line up down the whole table. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A fix worktree pruned or removed by hand left its branch behind with the commits still on it, and the next session reset that branch to the pull request's head. The guard asks the branch and runs before anything else touches the directory, so what it holds is held whether or not the worktree that made it is still there. The spinner stops wording its own line: what a count is worth saying belongs to the command doing the counting, which is also where the one spelling of a plural lives. The head is read out loud through `short` everywhere it is read out loud, and `fixWorktree` gets back the documentation that had drifted onto the helper below it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
dw-mc fix <pr>shows what the current review run found, takes the findings I pick with whatever I have to say about each, and opens an interactive agent session on them in a worktree cut from the tool's own clone. The findings reach the session as the JSON the schema defines, so a file, a line or a note of mine cannot drift in a re-description.The worktree stands on
dw-mc/fix/<number>rather than the pull request's branch: git refuses to fetch into a branch a worktree has checked out, and this clone fetches every branch on every run. It tracks the pull request's branch, so a plaingit pushfrom inside the session lands on the pull request, and it is left standing when the session ends, because an unpushed commit lives nowhere else.The tool commits and pushes nothing. Whether the session may commit inside that worktree is
fix.commits, or--commitfor one session; pushing stays mine either way. Re-reviewing the result is a new review run against the new head.Closes #10
🤖 Generated with Claude Code