Loading...
Loading...
Self-Evolving Agent: Given a goal, it autonomously learns and iteratively improves until completion. Integrates superpowers workflow discipline.
npx skill4agent add miles990/self-evolving-agent evolve[Version Check] → North Star Alignment → [Worktree Isolation] → PSB Environment Check → Goal Analysis (🔗 brainstorming) → Automatic Domain Identification → Capability Assessment → Skill Acquisition → PDCA Execution (🔗 TDD + verification) → Diagnosis (🔗 systematic-debugging) → Multi-Strategy Retries → Repo Memory → Regular Health Check → [Worktree Completion] → Until Success
| Module | Purpose | Path |
|---|---|---|
| 00-getting-started | Getting Started & Environment Setup | → |
| 01-core | Core Workflow (PSB + PDCA) | → |
| 02-checkpoints | Mandatory Checkpoints (Guardrails) | → |
| 03-memory | Memory System Operations | → |
| 04-emergence | Emergence Mechanism | → |
| 05-integration | External Tool Integration (including superpowers) | → |
| 06-scaling | Large-Scale Project Optimization | → |
| 99-evolution | Self-Evolution Mechanism | → |
/evolve [Goal Description]
# Examples
/evolve Create a ComfyUI workflow that automatically generates game item images
/evolve Optimize the performance of this code, targeting a 50% reduction in execution time
/evolve Establish full test coverage for this project to reach 80%--explore # Exploration Mode - Allow autonomous direction selection
--emergence # Emergence Mode - Enable cross-domain connection exploration
--autonomous # Autonomous Mode - Fully independent, pursuing systematic innovation
--max-iterations N # Maximum number of iterations (default 10)
--from-spec NAME # Execute from spec-workflow's tasks.md| Traditional Software | AI Collaboration | Purpose |
|---|---|---|
| API | MCP | Capability Boundaries (what can be done) |
| SDK/Library | Tools | Specific Implementation (how to do it) |
| Docs + Practices | Skill | Domain Knowledge (when to use what) |
| Config | CLAUDE.md | Context Constraints (project specifications) |
| Principle | Description |
|---|---|
| Opinionated Design | Reasonable defaults > letting AI choose, required parameters ≤ 2 |
| Deep & Narrow | Focus on 10% high-value tasks, do not pursue functional breadth |
| Expect Failure | 95% of Agents fail in production environments as normal, design graceful degradation |
| Enhanced Feedback | Remind of goals and progress during execution, explain impact scope when failing |
Key Features: Superpowers Integration | LEANN Semantic Search | Worktree Isolation | North Star System | In-Depth InterviewSee details: CHANGELOG | 05-integration | 02-checkpoints
| Layer | Phase | Action |
|---|---|---|
| 1 | Goal Analysis | Determine architecture level (0/1/2) |
| 2 | PDCA Plan | Conduct architecture design based on level |
| 3 | CP1.5 Phase 2 | Verify implementation complies with design |
These checkpoints cannot be skipped, see details in 02-checkpoints
| Checkpoint | Timing | Action |
|---|---|---|
| CP0 🌟 | Before project/task starts | North Star Alignment (create or read) |
| CP0.5 🔒 | After CP0 (conditional trigger) | Worktree isolation environment preparation |
| CP1 | Before task starts | Search .claude/memory/ for relevant experiences |
| CP1.5 | Before writing code | Consistency check (two phases) |
| CP2 | After code changes | Compilation + test verification |
| CP3 | After milestone completion | Confirm goal, direction correction, next steps |
| CP3.5 | After memory document creation | Immediately sync index.md |
| CP4 | After iteration completion | Emergence opportunity check (optional) |
| CP5 | When PDCA Check fails | Post-mortem analysis, generate structured Lesson |
| CP6 🏥 | Every 5 iterations | Project health check (Scope, direction, termination check) |
| CP6.5 🏁 | When task completes (conditional trigger) | Worktree merge/cleanup |
run_in_background: trueSee details in 02-checkpoints/README.md
| Status | Condition |
|---|---|
| ✅ Success | All sub-goals completed + acceptance criteria passed |
| ❌ Failure | Reached maximum iterations or 3 consecutive identical errors |
| ⏸️ Pause | User decision required or risky operation needs confirmation |
✅ GOAL ACHIEVED: [Goal Description]⏸️ NEED HUMAN: [Reason]❌ CANNOT COMPLETE: [Reason]