Skip to content
All flows

flame_chasoid:agent_cleanup_ralph_loop ​

Keep a long run's workspace tidy. ralph_loop, with a cleaner that steps in every few turns: it keeps the work under work_paths, deletes what strayed, writes a short NEXT.md of what is next, and the repository's history becomes one commit of what survived. It fits a run long enough that the tree fills with scratch files and dead ends. The same cleaner between two agents taking turns is flame_chasoid:agent_cleanup_flame_chase.

flowverse v0.1.0

In hmz, open /flow → Flowverses → official and install flame_chasoid, which brings flame_chasoid:fixed_interrupt, flame_chasoid:agent_cleanup_flame_chase, flame_chasoid:parallel, flame_chasoid:parallel_git_pr with it. Or run the release without installing anything:

hmz exec -f 'git+https://github.com/humanfia/flame-chasoid-flows@v0.1.0#flame_chasoid:agent_cleanup_ralph_loop' …
release
v0.1.0 · commit 4bd1434
licence
Apache-2.0

Read from humanfia/flowverse when this site was built.

every role: claude · codex · kimi · pi
flame_chasoid:agent_cleanup_ralph_loopsimulated

The whole run, at rest. Step through it with the buttons, or drag the bar.

Every few turns the cleaner keeps the work under work_paths, deletes what strayed and writes NEXT.md. A cleaning that left too much goes back to the same cleaner; then Humanize checks the result, and the history becomes one commit. An empty or failed turn is taken again.

The run, turn by turn
  1. agent — fixes imports; a session opened for this turn; hands agent in the tree: src/ and scratch
  2. agent — fixes the parser; a session opened for this turn; hands agent in the tree: the tree
  3. agent — fixes fixtures; a session opened for this turn; hands cleaner in the tree: three turns of work
  4. cleaner — distills the tree; a session opened for this turn; hands the epoch in the tree: the distilled tree
  5. the epoch — too much: repair; no turn of a model; hands cleaner as words: NEXT.md over 10 lines
  6. cleaner — trims NEXT.md; another turn of the session it already had; hands the epoch in the tree: the tree, trimmed
  7. the epoch — checks, one commit; no turn of a model; hands agent in the tree: src/ and NEXT.md
  8. agent — starts from NEXT.md; a session opened for this turn

Then round again: an epoch every cleanup_turns turns.

It ends when the budget runs out, or 3 turns in a row come to nothing.

Each cleaning rewrites your git history

The old history is archived, not deleted, but run this on a clone you are willing to have rewritten.