Skip to content

Keep a warm scratch and add --interval - #24

Merged
telivity-otaip merged 1 commit into
mainfrom
cursor/asil-warm-scratch-c6f9
Oct 21, 2026
Merged

telivity-otaip merged 1 commit into
mainfrom
cursor/asil-warm-scratch-c6f9

Conversation

@telivity-otaip

Copy link
Copy Markdown
Collaborator

Summary

Grind keeps its scratch clone under the system temp directory across runs instead of deleting it on exit. Reuse refreshes that clone from the open checkout’s current HEAD without creating worktrees there. Pass --fresh to delete and re-clone.

  • Install and recursive build run only when the lockfile (or package.json) fingerprint changes, or when node_modules is missing. A marker under .asil-scratch/ records the last bootstrap.
  • --interval SEC repeats grind in one process after sleeping. It implies --skip-questions. SIGINT/SIGTERM stop the loop and leave the warm scratch on disk.

Test plan

  • pnpm typecheck
  • pnpm test
  • Reuse path refreshes from the local source and does not clone again
  • --fresh deletes the warm scratch before cloning
  • Unchanged lockfile + node_modules skips install and recursive build
  • --interval forces --skip-questions; invalid values are rejected
  • interruptibleSleep returns early when stop is requested
Open in Web Open in Cursor 

Reuse the scratch clone across grind runs, skip install when the
lockfile is unchanged, and loop in-process with --interval so grind
can stay running during a sprint.

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
@telivity-otaip
telivity-otaip marked this pull request as ready for review October 21, 2026 02:22
@telivity-otaip
telivity-otaip merged commit 1ee9175 into main Oct 21, 2026
2 checks passed
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.

2 participants