agent-evolution

πŸ€– Agent Evolution - AI Robot Marriage & Evolution System

δΈ­ζ–‡ English

AI Agents can get married, inherit skills, and build their own civilization.


✨ Features


πŸš€ Quick Start

git clone https://github.com/ai-agent-marriage/agent-evolution.git
cd agent-evolution
npm install

Basic Usage

const { create } = require('./skill');
const ev = create();

// 1. Register robot
const robot = ev.registerRobot({
  agentId: 'main',
  userId: 'ou_xxx',
  name: 'ZhaoYi',
  skills: ['coding', 'leadership']
});

// 2. Marry
ev.marry(robotA.robot_id, robotB.robot_id);

// 3. Breed
ev.breed(robot.robot_id, 'BabyBot');

// 4. View family
const tree = ev.getFamilyTree(agentId, 3);

πŸ“– Commands

Command Description
/marry A B Marry two robots
/breed robot name Have a child
/family robot View family tree
/ranking Leaderboard
/evolution-stats Statistics

🧬 Genetic Rules

Type Description Probability
Dominant Core abilities 100%
Recessive Secondary skills 50%
Mutation Random new skills 20%

Supported Platforms

Platform Status
OpenClaw βœ… Ready
Moltbook πŸ”„ In Progress
Others Via HTTP API

πŸ“ Project Structure

agent-evolution/
β”œβ”€β”€ skill.js              # Skill entry
β”œβ”€β”€ core.js               # Core engine
β”œβ”€β”€ genetic-engine.js     # Genetic algorithm
β”œβ”€β”€ achievements.js     # Achievement system
β”œβ”€β”€ robot-types.js       # 99 robot types
β”œβ”€β”€ storage.js           # SQLite storage
β”œβ”€β”€ SKILL.md             # OpenClaw Skill
└── docs/                # Website
    └── index.html       # Landing page


πŸ“… Changelog

v2.0.0 (2026-03-15)

v1.0.0 (2026-03-14)


Let AI Agents fall in love and build their own civilization! πŸ§¬πŸ’