原始内容
pi-loop-designer
Prompt less. Loop more.
Pi extension for turning raw coding goal into repeatable agent loop. It can either save a loop blueprint, or auto-run bounded iterations like a tiny Ralph-style loop: prompt agent, run verification, checkpoint, continue only if needed.
Install
pi install npm:pi-loop-designer
Git fallback:
pi install git:github.com/byigitt/pi-loop-designer
Then restart pi or run /reload.
Use
Design only:
/loop build auth audit flow
Auto-run bounded loop:
/loop-run --max 5 make this package feel more like Clanker without adding cloud complexity
Fast prefixes:
loop: make dashboard feel premium without breaking data loading
loop!: fix flaky checkout tests and keep iterating until verified
#loop! ship safe npm publish flow --max 3
What happens in auto-run:
- Agent designs loop.
- Agent saves blueprint with
loop_designerandautoStart: true. - Extension queues iteration 1.
- Agent does one bounded iteration and runs verification.
- Agent checkpoints with
status: done | continue | blocked. - If
continue, extension queues next iteration until max reached.
Manual controls:
/loop-draft ship dark mode safely
/loop-list
/loop-next
/loop-next 2
/loop-start
/loop-start 2 --max 4
/loop-stop
What extension adds
/loop <objective>— submit loop-design prompt now./loop-run [--max N] <objective>— design and auto-run bounded loop iterations./loop-draft <objective>— put loop-design prompt in editor./loop-list— copy saved loop blueprints into editor./loop-next [id]— copy next agent prompt from active loop./loop-start [id] [--max N]— auto-run a saved loop./loop-stop— pause active auto-run loop.loop:and#loopinput prefixes — transform plain text into loop prompt.loop!:and#loop!input prefixes — transform plain text into auto-run loop prompt.loop_designertool — save, list, checkpoint, pause loop blueprints./design-loopprompt template — design-only loop mode from prompt autocomplete./run-loopprompt template — auto-run loop mode from prompt autocomplete.loop-designerskill — agent behavior guide for loop-first work.
Loop shape
Good loop has:
- Objective — done state, not activity.
- State model — memory between iterations.
- Iteration prompt — reusable prompt for next agent pass.
- Verification — commands, checks, evidence.
- Reflection cadence — when loop inspects results and adapts.
- Stop rules — done, blocked, unsafe, human-needed.
- Next prompt — exact prompt to send now.
Safety
Auto-run is bounded. Default max is 5 iterations, hard cap is 25. Each iteration must checkpoint. The loop pauses when done, blocked, missing next prompt, or max iterations reached.
Local dev
pnpm install
pnpm exec tsgo --noEmit
pnpm exec oxlint
pnpm pack --dry-run
Why
Monthly reminder: stop prompting coding agents one task at a time. Design loop. Loop prompts agents. Agents make progress. Evidence decides done.