auto-evolving-agent: Facilitating Agent Self-Improvement through Evolutionary Principles

Preface

Developers who run Agents frequently encounter two types of problems: first, the task ends upon completion, leaving successful experiences unstructured; second, attempts to modify prompts, workflows, or Skills are often driven by single-session “gut feelings” rather than multi-scheme comparisons and rollback-safe boundaries. auto-evolving-agent (Agent Self-Evolution) integrates population evolution, fitness scoring, and human confirmation into a Skill workflow. This ensures that “self-improvement” is procedural, recorded, and gated, rather than unconstrained file modification or command execution.

What is this

auto-evolving-agent is a SkillHub community Skill, located at @user_dfbdc5ab/auto-evolving-agent. The current version is 1.0.0, categorized as ai-agent, and tagged with requires_api_key=false (an API Key is not mandatory for installation and usage). The page lists the author as silifelab and the publisher ID as user_dfbdc5ab.

One-sentence positioning: A self-evolving Agent design based on a hybrid evolution strategy—combining Darwinian Exploration (divergent generation of multiple candidates) with Lamarckian Optimization (improving existing schemes based on feedback)—while emphasizing Human-in-the-Loop (graded confirmation and human selection pressure).

The Skill documentation explicitly states that the target users are OpenClaw developers. On clients supporting Skills, such as Cursor, Claude Code, and Codex, it can be installed via SkillHub, allowing the Agent to read SKILL.md and execute the evolution workflow.

Official entry points:

  • SkillHub Page: https://www.skillhub.cn/skills/user_dfbdc5ab/auto-evolving-agent
  • API Coordinate Page: https://api.skillhub.cn/user_dfbdc5ab/auto-evolving-agent

(Current SkillHub page stats: Score 100000, Downloads 2191, Installs 20.)

Core Features

The following capabilities are derived solely from the installed SKILL.md / README.md without extrapolation.

Hybrid Evolution Strategy

  • Darwinian Exploration: Divergent reasoning to generate 3–5 distinct candidate schemes, suitable for exploring new methods.
  • Lamarckian Optimization: Optimizing existing schemes based on feedback, suitable for efficiency improvements on known paths.
  • Human-in-the-Loop: Critical operations require user confirmation; user choices constitute “selection pressure.”

Five-Ring Architecture (Also described in docs as an extended implementation of a three-ring concept)

From bottom to top:

  1. Ring 0 Sentinel Layer (Immutable): Git version control, automatic snapshots, audit logs, rollback; designed as pure Python standard library without external package dependencies.
  2. Ring 1 Reflection Layer: Divergent reasoning, convergent verification, self-critique, and self-reflection.
  3. Ring 2 Gene Pool Layer: Tiered memory (Hot → Warm → Cold → Forgotten), elite pattern library, gene pool, and skill crystallization.
  4. Ring 3 Population Layer: Population size N=3–5, crossover and recombination, six-dimensional fitness scoring, arena-style ranking.
  5. User Layer: Confirming schemes, selecting the best, providing feedback, and setting evolution goals.

Population Evolution Main Flow

Upon task or conversation input, the typical pipeline is: Ring 1 mutates a population → (Optional) Ring 3 crossover → Ring 3 multi-objective evaluation and ranking → User Layer confirmation → Ring 0 executes post-confirmation (high-risk operations may require line-by-line confirmation) → Ring 2 updates memory and the gene pool.

Six-Dimensional Fitness Scoring

Dimension Weight
Feasibility 25%
Effectiveness Expectation 25%
Risk Level 20%
Implementation Cost 15%
Innovation 10%
Rollbackability 5%

The documentation provides a weighted formula and classifies risk into Low / Medium / High, corresponding to simple confirmation, detailed confirmation, and line-by-line confirmation.

Gene Pool, Elite Patterns, and Skill Crystallization

  • Gene Pool: Stores Top 100 successful patterns in SQLite for injection into evolution prompts; entry conditions require user selection and successful execution.
  • Elite Pattern Library: Stricter criteria than the Gene Pool (e.g., a pattern successfully selected by the user more than 3 times, ranking in the top 10 for scores).
  • Skill Crystallization: Encapsulates repeatedly verified patterns into independent Skills. Trigger conditions include successful use of the same pattern more than 3 times or explicit user requests to “become a skill.”

Evolution Scope and Safety Principles

Evolution can cover: the Agent’s own SKILL.md and parameters, newly created Skills, workflows and Prompts, optional SOUL.md, memory and gene pool, and the installation/deprecation of capability modules.

Safety principles emphasize transparency, controllability, reversibility (Git snapshots and rollback), gradual iteration, user dominance, and conservative entry into the gene pool.

The package also includes template files for fitness scoring, gene pool, and evolution history under references/, allowing the Agent to output structured reports according to the documentation.

Installation and Activation

Below is the official SkillHub installation path. Before installing, ensure the skillhub CLI is available on your machine; if not, follow the SkillHub installation documentation for a complete installation or CLI-only installation.

command -v skillhub && skillhub --version
# Full installation (CLI + default Skills, recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

# CLI-only installation
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/, which might not be loaded by the client.

skillhub install @user_dfbdc5ab/auto-evolving-agent --dir <your skills directory>

Common client skills directories (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ within the project

The SkillHub page also supports sending prompts to AI: “Please install @user_dfbdc5ab/auto-evolving-agent based on https://skillhub.cn/install/skillhub.md.”

After installation, restart or refresh the corresponding client to index the new Skill.

Typical Usage

This Skill is primarily triggered via natural language; there are no separate CLI subcommands. The trigger methods listed in the documentation are as follows.

User Active Trigger (Chinese examples):

  • “Help me evolve,” “Self-evolve,” “Optimize yourself”
  • “Generate 3 improvement schemes,” “Evolve my capabilities”
  • “Explore new methods,” “Optimize existing schemes”

User Active Trigger (English examples):

  • “Help me evolve”, “Self-evolve”, “Optimize myself”
  • “Generate 3 improvement ideas”, “Evolve my capabilities”
  • “Explore new approaches”, “Optimize existing solutions”

Post-Task Auto-Reflection (Determined by the Agent based on the Skill): e.g., after creating a new Skill, after finishing a complex task, after receiving positive/negative feedback, or after three consecutive similar tasks.

Optional Periodic Evolution: Daily quick reflection, weekly deep evolution, or custom user-defined cycles.

Upon triggering, the Agent should output a “Population + Arena” style preview based on SKILL.md: multiple candidates, a six-dimensional score table, optional crossover schemes, and gene pool injection explanations, while adhering to Git snapshot and confirmation templates before execution. Users can reply to confirm, modify, cancel, or request that a scheme be “crystallized into a skill.”

Scenarios and Notes

More Suitable For:

  • Developers already maintaining multiple Skills in OpenClaw or similar Agent environments who wish to use a fixed workflow for capability review and iteration.
  • Those needing multi-scheme comparison and quantitative scoring references, and who are willing to make the final call on critical steps.
  • Repositories already managed by Git, accepting pre-evolution snapshots and rollbacks as default habits.

Points to Note:

  • The documentation targets OpenClaw developers; behavior in other clients depends on whether the Agent fully complies with SKILL.md and the local Git environment.
  • The Gene Pool relies on SQLite and Top 100 conventions; the Agent must actually implement storage and update logic—it is not a standalone background service bundled with the installation package.
  • Evolution may modify configurations, create Skills, and execute commands; high-risk tiers require line-by-line confirmation, which should not be skipped.
  • The internal metadata name is evolving-agent, which coexists with the SkillHub package name auto-evolving-agent. Refer to the coordinate @user_dfbdc5ab/auto-evolving-agent for search or citation.

Conclusion

auto-evolving-agent translates population mutation, crossover, elite retention, and fitness scoring into an Agent-executable workflow, placing Git snapshots and user confirmation at the underlying layer. If you want your Agent to have structure, ranking, and rollback when “modifying itself,” you can install this Skill from SkillHub and start an evolution cycle using the trigger phrases above.

Official URL: https://www.skillhub.cn/skills/user_dfbdc5ab/auto-evolving-agent

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye