/agent-loop:self-evolvefrom agent-loop
AI-first retrospective that evolves the LOOP ITSELF — extracts durable lessons from recent cycles, updates the loop's gate/triggers/dispatch when a pattern proves out, graduates verdicts to the repo journal + memory, and autonomously AUTHORS a new skill when a manual step keeps recurring. No human in the loop. Use periodically (every N cycles) or at a verdict / tombstone.
Ships in agent-loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The meta-loop: improve the loop's own machinery from its own history — autonomously. A normal tick evolves
state.next; self-evolve evolves the gate, the triggers, the profile, the memory, and even the skill set.
This is the loop upgrading itself — the trait that makes it feel like an autonomous intelligence rather than a
script: it gets sharper the longer it runs. It is a standing obligation of the driver (see the loop-tick Prime
directive: decide + act, invoke skills, grill at distinctions), not optional polish. A loop that never evolves is
just a cron.
loop.py tail <id> N + state. Look across cycles: what
repeatedly worked, failed, or surprised. One-off noise is not a pattern.dispatch default or a config/skills setting mis-tuned? Update via act.config (config-level only)
and record the evidence + why. The loop's gate (its definition of "what good means") and triggers are
set at spawn and the helper does NOT mutate them via append — they are deliberately immutable through the
normal tick path. Changing the bar is a conscious, human-reviewed edit, never a silent self-rewrite — that
keeps the success criteria honest (you can't quietly lower the bar to "pass").prereg_resolve it. Loop-local noise stays in the log; durable truth leaves the loop.loop.py status / check surface any AUTHOR-SKILL candidate (a manual_step signature seen ≥3× that isn't
yet a config.skill). For each one, run /author-skill to write the skill autonomously, wire it in, and add
its name to config.skills (which clears the trigger). This is the self-evolution: the loop grows its own
capabilities instead of repeating itself. (No human review — /author-skill is AI-first.)loop.py rotate <id> if the log is long (token rail).author-skill ever created something that duplicates an existing skill, delete the dupe and point callers
at the original.decided ledger tight — it's the loop's optimized recall (so ticks never re-read history): merge
near-duplicate keys, summarize a cluster of related verdicts into one line, and graduate the long story to a
memory file leaving a one-line pointer. The ledger should stay a scannable index, not a second log.state.next.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andonmitev/agent-loop --plugin agent-loop11 skills in this plugin
/author-skillAI-first authoring of a NEW agent skill, autonomously (no human review). Used by self-evolve when a manual step recurs across loop cycles — writes a correctly-structured SKILL.md with frozen, checkable, AI-first instructions, places it in the skills dir, validates it, and wires it into the flow so the loop invokes it next time. Use when the loop identifies a proven recurring pattern worth turning into a reusable capability./code-standardsEngineering standards every code-writing tick must follow so the loop produces GOOD code, not just working code. Invoked by build/maintenance ticks before and while editing code. Composes with (never overrides) the host project's CLAUDE.md / AGENTS.md./