Skip to content

cjboy007/revolution-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Revolution β€” Multi-Agent Auto-Evolution

Let your AI agents build things while you sleep.

Revolution uses a coordinator agent to drive an autonomous review β†’ execute β†’ audit loop. Define a goal, break it into subtasks, and the system iterates through them β€” spawning specialized sub-agents for each role, with dual quality gates (pre-execution review + post-execution audit).

How It Works

Your coordinator agent (on a heartbeat timer)
    ↓
Finds a task needing work
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Phase 1: Spawn Reviewer                     β”‚
β”‚ - Audits the plan                           β”‚
β”‚ - Generates detailed instructions           β”‚
β”‚ - Decides: approve / revise                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Phase 2: Spawn Executor                     β”‚
β”‚ - Implements one subtask                    β”‚
β”‚ - Runs verification tests                   β”‚
β”‚ - Outputs results                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Phase 3: Spawn Auditor                      β”‚
β”‚ - Verifies instructions were followed       β”‚
β”‚ - Checks acceptance criteria                β”‚
β”‚ - Decides: pass / fail (retry)              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    ↓
All subtasks done β†’ completed β†’ auto-packaged βœ…

Why 3 sub-agent roles?

  • Reviewer ensures the plan is sound (before work)
  • Executor does the actual work (follows instructions)
  • Auditor verifies the result matches the plan (after work)

Use strong models for Reviewer and Auditor (judgment roles). Use cost-effective models for Executor (labor role).

Requirements

  • OpenClaw with heartbeat or cron support
  • At least 1 configured agent (the coordinator)
  • A model that supports sessions_spawn for sub-agents

Quick Start

1. Install

clawhub install auto-evolution

Or clone:

git clone https://github.com/cjboy007/revolution-skill.git
cp -r revolution-skill ~/.openclaw/workspace/skills/auto-evolution

2. Initialize

cd ~/.openclaw/workspace
mkdir -p evolution/tasks evolution/archive

3. Create a Task

cp skills/auto-evolution/references/task-example.json evolution/tasks/task-001.json
# Edit with your goal and subtasks

4. Configure Your Coordinator

Option A: Heartbeat (add to your agent's HEARTBEAT.md)

## Evolution Loop
1. Run `node skills/auto-evolution/scripts/heartbeat-coordinator.js`
2. Parse output:
   - phase=review β†’ spawn Reviewer sub-agent β†’ apply-review
   - phase=execute β†’ spawn Executor sub-agent β†’ apply-exec
   - phase=audit β†’ spawn Auditor sub-agent β†’ apply-audit
3. Done for this tick

Option B: Cron

openclaw cron add --agent <your-agent> \
  --name "evolution-coordinator" --every 5m \
  --session isolated --timeout-seconds 300 \
  --message "Evolution heartbeat: scan and process tasks."

5. Watch It Run

Tasks auto-progress through the loop. Check status:

node skills/auto-evolution/scripts/monitor.js

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Coordinator    β”‚  ← Your agent, on a timer
β”‚  (any model)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚ spawns
    β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β–Ό         β–Ό          β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚Reviewerβ”‚ β”‚Executorβ”‚ β”‚Auditor β”‚  ← Sub-agents, spawned on demand
β”‚(strong)β”‚ β”‚(cheap) β”‚ β”‚(strong)β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Roles are filled by sub-agents, not specific agents. You configure which model to use when spawning. The system doesn't care about agent names.

State Machine

pending β†’ reviewed β†’ executing β†’ pending (next subtask)
                            β†’ completed (all done)
                            β†’ packaged βœ…
  • One subtask per heartbeat tick
  • Monitor auto-resets stuck tasks (>10 min)
  • Failed audit triggers retry (up to max_iterations)

File Structure

auto-evolution/              ← This skill
β”œβ”€β”€ SKILL.md
β”œβ”€β”€ README.md
β”œβ”€β”€ config/
β”‚   └── task-schema.json
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ heartbeat-coordinator.js   (the loop driver)
β”‚   β”œβ”€β”€ monitor.js                 (stuck detection)
β”‚   └── pack-skill.js              (auto-packaging)
└── references/
    └── task-example.json

evolution/                   ← Runtime data (your workspace)
β”œβ”€β”€ tasks/
β”‚   └── task-001.json
β”œβ”€β”€ archive/
└── test-results/

Environment Variables

Variable Default Description
OPENCLAW_WORKSPACE ~/.openclaw/agents/main/workspace Workspace root
EVOLUTION_TASKS_DIR {workspace}/evolution/tasks Active tasks
EVOLUTION_SKILLS_DIR {workspace}/skills Output skills
EVOLUTION_ARCHIVE_DIR {workspace}/evolution/archive Completed tasks

Design Principles

  • 4-role architecture β€” Coordinator drives, 3 sub-agents specialize
  • Dual quality gates β€” Review before, audit after β€” never skip either
  • Model-agnostic β€” swap any model for any role
  • One subtask per tick β€” predictable, reviewable, won't timeout
  • Self-healing β€” monitor detects and fixes stuck states
  • Cost-efficient β€” strong models only where judgment matters

License

MIT


Built with OpenClaw 🐾

About

πŸš€ Multi-Agent Auto-Evolution System for OpenClaw β€” orchestrate review, execute, audit loops across AI agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors