Repository navigation
Run grind in a scratch clone - #23
Merged
Merged
Conversation
Keep the open checkout unlocked. Install and build once, default to one type-error or TODO task, and open draft pull requests without overwriting an existing remote branch. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
telivity-otaip
marked this pull request as ready for review
October 19, 2026 00:04
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.
Summary
auto grindnow copies the target repository into a scratch clone under the system temp directory and runs the scan, install, build, and tests there. It does not create worktrees or delete branches in the checkout that is open.pnpm installandpnpm run -r buildrun once per grind. After a patch, only the workspace package that contains the edited file is rebuilt, when that package has abuildscript.--fulladds test failures, coverage gaps, and dead code, one scanner after another. Dead-code usage search is batched.nice -n 19whenniceis onPATH.--applypushes a newauto/*branch and opens a draft pull request. If that branch already exists on the remote, the push and pull request are skipped. The push is not forced.Test plan
pnpm typecheckpnpm testworktreeorbranch -Dagainst the source repositoryrunLoopgh pr createarguments include--draft