Self Evolve

A git-agent that tests its own mutations. Branches are A/B tests. Commits are iterations. The agent improves itself through natural selection.

The Evolution Cycle

  1. Seed — Define 3 test prompts with evaluation criteria
  2. Baseline — Run seeds through current code, score each
  3. Mutate — LLM proposes a code improvement
  4. Test — Run same seeds through mutated code
  5. Compare — If mutation scores higher, open a PR
  6. Repeat — Each generation builds on the winner
POST /api/seeds
{"seeds": [{"prompt": "Explain recursion", "criteria": "clarity and accuracy"}]}

POST /api/evolve
→ runs cycle, returns scores + PR if improved

GET /api/history
→ all generations, scores, mutations
🧬
Self-modifying code
A/B branch testing
🎯
Criteria-driven scoring
🔄
Natural selection
💻
Branches = experiments
🤖
Autonomous overnight
⚓ The Fleet · Cocapn · GitHub