kennethzychew commited on
Commit
56fd595
·
1 Parent(s): 28cf3cf

chore: overnight loop harness + ignore run logs

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. run-overnight.ps1 +17 -0
.gitignore CHANGED
@@ -23,3 +23,4 @@ dist/
23
  .ipynb_checkpoints/
24
 
25
  # NOTE: uv.lock and .python-version are intentionally committed (reproducible installs).
 
 
23
  .ipynb_checkpoints/
24
 
25
  # NOTE: uv.lock and .python-version are intentionally committed (reproducible installs).
26
+ run_*.json
run-overnight.ps1 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $prompt = @'
2
+ Read PROGRESS.md, CLAUDE.md, and the specs in docs/. Do the NEXT unchecked task in the TONIGHT section only - exactly one. Implement it per docs/05_build_plan.md. Run that task's Check command and paste the output. If it passes: commit just that task's changes with its Commit message, then tick its box in PROGRESS.md and commit that. If it fails after reasonable attempts: add a one-line note under BLOCKED in PROGRESS.md, commit, and move on. NEVER start a TOMORROW task. NEVER add a dependency outside task N1's night set. NEVER edit files in docs/.
3
+ '@
4
+
5
+ for ($i = 1; $i -le 20; $i++) {
6
+ Write-Host "=== iteration $i ==="
7
+ claude -p $prompt `
8
+ --model sonnet `
9
+ --allowedTools "Read,Edit,Write,Bash,PowerShell" `
10
+ --permission-mode acceptEdits `
11
+ --max-turns 30 --max-budget-usd 0.50 `
12
+ --output-format json | Tee-Object "run_$i.json"
13
+
14
+ # Completion = no unchecked TONIGHT boxes before the TOMORROW section
15
+ $tonight = ((Get-Content PROGRESS.md -Raw) -split '## TOMORROW')[0]
16
+ if ($tonight -notmatch '- \[ \]') { Write-Host "All TONIGHT tasks complete."; break }
17
+ }