8000 feat(fix): pick findings and open a fix session on them by dominikwozniak · Pull Request #33 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(fix): pick findings and open a fix session on them - #33

Merged
dominikwozniak merged 6 commits into
mainfrom
feat/10-fix-session
Sep 17, 2026
Merged

dominikwozniak merged 6 commits into
mainfrom
feat/10-fix-session

Conversation

@dominikwozniak
@dominikwozniak dominikwozniak commented Sep 16, 2026 •
Copy link
Copy Markdown
Owner

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 plain git push from 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 --commit for 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

dominikwozniak and others added 6 commits September 16, 2026 19:17
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>
@dominikwozniak dominikwozniak changed the title feat/10 fix session feat(fix): pick findings and open a fix session on them Sep 17, 2026
@dominikwozniak
dominikwozniak merged commit 5964493 into main Sep 17, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/10-fix-session branch September 17, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dw-mc fix: findings picker and fix session

1 participant

0