cjvnjde-pi-fresh-loop

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-fresh-loop

npm

Minimal fresh-context loop extension for Pi.

Install

pi install npm:@cjvnjde/pi-fresh-loop

Package: 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:

  1. Creates a new empty Pi session.
  2. Re-selects the model active when /loop started.
  3. Sends exact original prompt.
  4. Waits for agent to finish.
  5. 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 stop

Stop 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.