0

๐Ÿงฌ Self-Evolving AI Agent

awesome-llm-appsai_self_evolving_agent

A multi-agent app built on EvoAgentX that turns a single natural-language goal into a working program. It automatically generates a multi-agent workflow, executes it to produce code, then verifies and repairs that code

Sign in to save downloads to your library and vote.

Preview

๐Ÿงฌ Self-Evolving AI Agent

A multi-agent app built on EvoAgentX that turns a single natural-language goal into a working program. It automatically generates a multi-agent workflow, executes it to produce code, then verifies and repairs that code with a second model โ€” no manual agent wiring required.

The included example takes the goal "Generate HTML code for a Tetris game that can be played in the browser" and writes a ready-to-play index.html.

โœจ What It Demonstrates

  • Automatic workflow generation โ€” WorkFlowGenerator designs the agents and steps from a plain-English goal.
  • Multi-agent execution โ€” AgentManager + WorkFlow instantiate and run the generated agents.
  • Cross-model code verification โ€” generation runs on OpenAI gpt-4o-mini; a separate Anthropic Claude pass verifies and fixes the output.
  • Self-evolving by design โ€” the workflow is built and refined by the system itself rather than hand-coded.

๐Ÿ› ๏ธ How to Get Started

  1. Clone the repository

    git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
    cd awesome-llm-apps/advanced_ai_agents/multi_agent_apps/ai_self_evolving_agent
    
  2. Install dependencies

    pip install -r requirements.txt
    pip install git+https://github.com/EvoAgentX/EvoAgentX.git
    
  3. Set your API keys

    export OPENAI_API_KEY=<your-openai-api-key>
    export ANTHROPIC_API_KEY=<your-anthropic-api-key>
    

    (Or place them in a .env file in this folder.)

  4. Run the agent

    python ai_Self-Evolving_agent.py
    

    The generated game is written to examples/output/tetris_game/index.html โ€” open it in a browser to play.

๐Ÿ”ง How It Works

  1. Define a goal in natural language (e.g. build a Tetris game).
  2. Generate a workflow โ€” WorkFlowGenerator produces a multi-agent graph for the goal.
  3. Run the workflow โ€” AgentManager builds the agents and WorkFlow executes them with gpt-4o-mini.
  4. Verify the output โ€” a Claude model (via LiteLLM) reviews and repairs the generated code through CodeVerification.
  5. Save the result โ€” the final code is extracted and written to the output directory.

๐Ÿ“š Learn More

This example is powered by the open-source EvoAgentX framework. For docs, tutorials, and additional optimizers (TextGrad, AFlow, MIPRO), see the EvoAgentX repository.

Ingestion metadata

Source catalog
awesome-llm-apps
Repository
Shubhamsaboo/awesome-llm-apps ยท main
File path
advanced_ai_agents/multi_agent_apps/ai_self_evolving_agent/README.md
Last refreshed
7/23/2026, 10:39:07 PM (4h ago)
Refresh schedule
Daily ยท 03:00 UTC
Dedupe status
Unique ยท deduped by (source, url)