3.8 KiB
3.8 KiB
/evolve Examples
Infinite Autonomous Improvement
User says: /evolve
What happens:
- Agent checks kill switch files (none found, continues).
- Agent loads the repo execution profile, reads the ordered startup reads, and caches repo validation commands plus definition_of_done before choosing work.
- Agent first reads
.agents/rpi/next-work.jsonl, claims the highest-value harvested item, and runs/rpion it. - The cycle's
/post-mortemharvests 2 new follow-up items; evolve immediately re-reads the queue instead of trusting the pre-cycle snapshot. - With harvested work drained, evolve checks
bd readyand lands the top unblocked bead. - With beads drained, evolve measures GOALS.yaml, finds a directive gap, and runs
/rpion that goal. - Once goals/directives are healthy, evolve generates testing work from thin coverage and lands the best regression-test improvement.
- Testing producers dry up, so evolve runs validation tightening / bug-hunt and fixes the highest-value finding.
- When remediation layers are empty, evolve mines hotspot/TODO/stale-doc drift and turns any real findings into durable work.
- If all remediation layers stay empty, evolve writes a concrete feature suggestion as durable work and starts the next
/rpi. - Only after repeated empty queue + generator passes does dormancy trigger and teardown begin.
- To stop earlier: create
~/.config/evolve/KILLor.agents/evolve/STOP.
Result: Runs as an always-on compounding loop. Empty queues trigger more work discovery; they do not end the run.
Dry-Run Mode
User says: /evolve --dry-run
What happens:
- Agent measures fitness.
- Agent reports the next harvested/beads/goals item it would work on.
- If those are empty, agent reports the next generator layer it would run (testing, validation, drift, or feature suggestion).
- Agent stops without executing.
Result: Next-action preview without code changes.
Regression with Revert
User says: /evolve --max-cycles=3
What happens:
- Agent claims a harvested queue item in cycle 1 and starts
/rpi. - Post-cycle fitness shows a regression.
- Agent reverts the cycle's changes.
- Agent clears the queue claim and leaves
consumed: false, so the work is available again. - Agent logs the regression and continues.
Result: Fitness regressions are auto-reverted, and claimed work is re-queued instead of being lost.
Worked Overnight Ladder
User says: /evolve --compile
What happens:
- Compile warmup surfaces a stale research note about runtime smoke coverage.
- Evolve loads the repo execution profile first, so the startup reads, tracker wrapper, and validation bundle come from repo policy instead of a giant prompt.
bd readyhas one open docs/runtime parity bead, so evolve runs that first.- That bead's
/post-mortemharvests an implementation follow-up intonext-work.jsonl; evolve re-reads the queue and runs it immediately. - The queue empties, so evolve measures goals and fixes one directive gap via
/rpi. - All goals now pass. Evolve generates testing work from thin coverage and lands a new regression test.
- Testing producers dry up, so evolve runs a bug-hunt / validation sweep and tightens a missing validation gate.
- No bug-hunt findings remain, so evolve mines complexity/TODO/stale-doc drift and queues one cleanup item.
- After that cleanup, the remediation ladder is empty, so evolve writes a concrete feature suggestion bead and starts the next
/rpi. - Only after harvested work, beads, goals, testing, bug hunt, drift mining, and feature suggestions all come up empty across repeated passes does dormancy trigger.
Result: One long-running session compounds across beads -> harvested work -> goals -> testing -> bug hunt -> feature suggestion instead of stopping at the first empty queue.