Autoevolve Framework Uses Claude Code for Game AI Development Through Self-Play Evolution

✍️ OpenClawRadar📅 Published: March 25, 2026🔗 Source
Autoevolve Framework Uses Claude Code for Game AI Development Through Self-Play Evolution
Ad

Competition Results and Approach

A developer used Claude Code as their entire development team for the Game AI Cup, a competitive programming contest where participants write bots for a 2D physics-based game. The Claude-generated bot placed 6th out of 83 participants across three rounds.

The approach was inspired by Karpathy's autoresearch concept, where an LLM agent iterates on code overnight. The developer built a small framework called autoevolve that adapts this for self-play domains — instead of optimizing a single metric, versions compete against each other head-to-head.

The Evolution Loop

The workflow followed this loop:

  • Claude Code reads the current bot
  • Analyzes why it lost specific matches
  • Proposes a targeted change
  • The new version gets benchmarked against previous versions
  • Keep or discard the version
  • Repeat the process

The developer ran approximately 130 iterations over several weeks across three competition rounds.

Ad

Key Findings from the Experiment

Structural changes outperformed parameter tweaks: Every breakthrough involved adding new capabilities like model predictive control, a goalkeeper role, or energy-aware planning. Dozens of threshold and weight adjustments were flat or negative. Progress was faster when guiding Claude toward "add a new behavior" instead of "tune this number."

Emergent behaviors were readable in code: After Claude corrected an energy cost function, the optimizer started using wall bounces to reverse direction — bouncing off walls gives a free direction change without spending energy. This behavior was never explicitly programmed but is fully readable in the code, unlike neural network approaches that would create a black box.

Bug fixes compound in isolation: Mixing bug fixes with strategy changes introduced noise. Two correctness fixes alone in one version beat all top contenders, but the same fixes bundled with a strategy change in another version were flat.

The changelog was essential: Each version included Claude's proposal, expected outcome, actual result, and lessons learned. This allowed the developer to tell Claude "this approach failed three times, stop trying it" and avoid repeating failed experiments.

Broader Applications

The developer discovered the awesome-autoresearch list showing similar "LLM iterates on code overnight" patterns applied elsewhere: Shopify's CEO achieved 53% faster template rendering with 93 automated commits, someone scaled CUDA kernels from 18 to 187 TFLOPS, and the Vesuvius Challenge used it for ancient scroll deciphering.

Getting Started with Autoevolve

The autoevolve framework works as a Claude Code skill. Install it with:

npx skills add MrTsepa/autoevolve

Then tell Claude to set up an evolution experiment. The framework handles ratings, matchmaking, Pareto front tracking, and visualization.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Building an Agentic Research System with Claude Code: A Practical Implementation
Use Cases

Building an Agentic Research System with Claude Code: A Practical Implementation

A developer details how they built six specialized agents using Claude Code to create a living map of 250+ real AI implementations, with a human-in-the-loop orchestration pattern.

OpenClawRadar
Cowork automates sprint changelog generation using Claude AI and MCP connections
Use Cases

Cowork automates sprint changelog generation using Claude AI and MCP connections

A project manager automated their end-of-sprint changelog task using Cowork with Claude AI, eliminating an hour of manual work every two weeks. The system connects to Linear via MCP, pulls completed issues, identifies user-facing changes, writes changelog copy, and publishes it automatically.

OpenClawRadar
Claude Mobile Workflow: Brainstorm Features on Phone, Get Autonomous Implementation
Use Cases

Claude Mobile Workflow: Brainstorm Features on Phone, Get Autonomous Implementation

A developer shares a workflow where they brainstorm features and bug fixes with Claude on their phone while mobile, then have a daemon script automatically implement well-defined tasks by creating Linear issues and spinning up Claude Code agents to handle implementation, testing, and deployment to staging.

OpenClawRadar
Reducing AI Agent Costs by 30% Through Behavior Monitoring and Configuration Changes
Use Cases

Reducing AI Agent Costs by 30% Through Behavior Monitoring and Configuration Changes

A developer cut their OpenClaw bot's token usage by 30% after discovering 70 cron jobs were dumping results into the main chat session, causing context bloat and repeated compaction. The fix involved redirecting cron outputs directly to Telegram and building a monitoring skill to identify inefficiencies like redundant searches and oversized file reads.

OpenClawRadar