@cjvnjde/pi-fresh-loop
v0.1.3
Published
Run one prompt repeatedly in fresh Pi sessions until its stop condition is met.
Downloads
569
Maintainers
Readme
pi-fresh-loop
Minimal fresh-context loop extension for Pi.
Install
pi install npm:@cjvnjde/pi-fresh-loopPackage: pi.dev/packages/@cjvnjde/pi-fresh-loop · npm
Usage
Run one prompt repeatedly:
/loop Read TODO.md. Complete one unfinished task and mark it done. When no unfinished tasks remain, stop the loop.Each iteration:
- Creates a new empty Pi session.
- Re-selects the model active when
/loopstarted. - Sends exact original prompt.
- Waits for agent to finish.
- Starts next iteration immediately.
Previous conversation and tool output never enter next iteration. Project files remain shared, letting iterations coordinate through task files, checklists, Git state, or other durable state.
Include stopping condition in prompt. Agent can stop loop when condition becomes true.
Stop manually
/loop stopStop request takes effect after current iteration finishes. No next iteration starts.
Notes
- One loop can run at a time.
- Model is pinned at loop start, so model changes from other Pi instances do not affect later iterations.
- Starting loop while agent is busy is rejected.
- Esc/abort, provider errors, reload, resume, or manual session switching stop loop.
- Iteration sessions remain available in Pi session history.
