Local Changes, read with git and kept here
Red Pen reviews a branch in a clone on this Mac before it's a pull request: the whole branch, as it would be proposed, which is its commits since it left the default branch and whatever isn't committed yet, untracked files included. It's for reviewing your own work, or an agent's, without opening a pull request to do it.
The changes are read by running the git program in the clone (redpen_core::local), not with a library. Whatever
git the clone's owner uses already reads it, with that clone's own settings, so there's nothing new to depend on or
to disagree with it. The options that change how a diff is spelled (diff.noprefix and the like) are overridden on
the command line, so the diff the app parses is the same everywhere.
Notes on Local Changes are kept with the others, under a key of their own (local:<clone>#<branch>), and never go to
a Forge: there's no review to post them in, and no pull request to propose a House note through.
Feedback goes to the agent writing the branch in Rounds, which the agent fetches: redpen poll, run in the
background in the clone, waits for the next Round in the database and exits with it. Red Pen runs nothing of yours to
deliver one, since programs run on a signal (Hooks) are the part that has broken most often; and a Round written out
when it's sent needs nothing from the app to be read, so poll works with Red Pen closed. The redpen skill, which
redpen skill install writes, tells an agent how to take part.
Consequences #
- Each worktree and each branch has its own notes. Notes follow their code, as on a pull request, so they keep their place while the branch is changed under them, and say so when their code has gone.
- Notes don't move to the pull request the branch becomes; that would be a step of its own.
- Reading takes no lock on the index (
GIT_OPTIONAL_LOCKS=0), so an agent committing in the same clone never finds it held. - Untracked files over a megabyte are left out, as more likely build output nobody ignored than code to review.
Phin Tech docs
Red Pen in the store →