Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

broomva/persist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

persist

bstack P12 — Persistent Loop Discipline. Fresh-context restart per iteration. State in the filesystem.

Quick start

npx skills add broomva/persist

Then in your agent session:

persist iterate PROMPT.md \
 --max-iterations 50 \
 --max-wall-clock 14400 \
 --success-condition "grep:DONE:STATUS"

Each iteration spawns a fresh agent context; state survives in PROMPT.md + git tree. Loop exits when success_condition fires or budget exhausted.

Why

When the conversation context window rots past ~100K tokens, model coherence degrades silently. METR's Time Horizon 1.1 puts the deployable 80%-reliability horizon at ~1h on Opus 4.6. Above that, in-context loops (ReAct/TAO) fail. persist solves this by restarting the context every iteration while keeping state in the filesystem.

Composes with

  • P5 Parallel Agents — N persist loops per worktree
  • P7 CI Watcher — each iteration's PR uses p9 watch
  • P10 Worktree Hygiene — clean tree before each iteration
  • P11 Empirical Feedback — multi-modal success conditions
  • P6 Bookkeeping — bookkeeping replay between loops

See SKILL.md for the full primitive contract.

License

MIT.

About

bstack P12 — Persistent Loop Discipline. Cross-context restart loop with state in the filesystem. Closes the long-horizon context-rot failure mode. Composes with bstack P5/P6/P7/P10/P11.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /