← Latest papers
💻 computer science

Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generation

This paper introduces SelfEvolve, an agentic architecture that enables software systems to autonomously generate and integrate new functionalities at runtime, demonstrating a 92.7% success rate and significantly outperforming existing code generation baselines to pave the way for self-evolving software.

Original authors: Md Asif Iqbal Fahim, Oluwadamilola Adebayo, Alessio Ferrari

Published 2026-04-21
📖 4 min read☕ Coffee break read

Original authors: Md Asif Iqbal Fahim, Oluwadamilola Adebayo, Alessio Ferrari

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, but slightly rigid, personal assistant. Today, if you ask them to "calculate the best route for my road trip," they can do it instantly because that's a skill they were taught before you hired them. But if you suddenly ask, "Can you also predict how much my car will cost to maintain based on local weather patterns?" they will likely say, "I don't know how to do that. I need to call my boss (the developer) to teach me."

In the world of software, this is the norm. To add a new feature, a human developer has to write code, test it, and update the app. This takes days or weeks.

SelfEvolve is a new kind of software architecture that changes the rules. It's like giving that personal assistant a magic toolbox and the ability to teach themselves new skills while they are working with you, without ever needing to call their boss or stop the conversation.

Here is how it works, broken down into simple concepts:

1. The "Self-Teaching" Assistant

Think of SelfEvolve not as a static program, but as a team of specialized robots working together in a factory.

  • The Dispatcher: This is the receptionist. When you ask for something new (e.g., "Show me what my neighbors are watching"), the receptionist checks the library. If the skill exists, they do it. If not, they say, "We need to build a new tool for this."
  • The Architect (Code Generator): This robot takes your request and starts building the new tool.
  • The Safety Inspector (Test Generator): Before the tool is even finished, this robot writes a checklist of rules to make sure the tool works correctly.
  • The Judge (Adjudicator): This robot runs the new tool against the checklist. If it fails, the Judge doesn't just throw it away; they send it back to the Architect with a note saying, "You forgot to handle this specific error. Try again."

2. The "Test-First" Safety Net

The secret sauce of SelfEvolve is something called Test-Driven Development (TDD).
Imagine you are baking a cake.

  • Old Way: You bake the cake, taste it, realize it's too salty, throw it away, and start over.
  • SelfEvolve Way: Before you even mix the flour, you write down exactly what the cake should taste like (not too salty, sweet enough, fluffy). Then, you bake the cake and immediately check it against your list. If it fails the "not salty" test, you fix the recipe before you serve it to the customer.

In SelfEvolve, the system writes the "taste test" (the code tests) before it writes the final code. This ensures that when the new feature is added, it actually works.

3. The "Hot-Plug" Upgrade

Usually, when you update a phone app, you have to close it, download the update, and restart it.
SelfEvolve uses a trick called hot reloading. Imagine a car that can swap its engine while driving down the highway without the driver ever feeling a bump.

  • The system builds the new feature in a safe, isolated "sandbox" (like a test kitchen).
  • Once the new feature passes all the safety tests, it is instantly "plugged in" to the main system.
  • You, the user, get the result immediately. The system has evolved in real-time.

4. Why This Matters (The Results)

The researchers tested this system on 11 different tasks, ranging from analyzing medical data to calculating complex math.

  • The Competition: Other AI coding tools (like AutoGen or MetaGPT) are great at helping humans write code, but they struggle to build and install new features on their own while the system is running. They got the new features right only about 30% of the time.
  • SelfEvolve: It succeeded 92.7% of the time. It was able to learn, build, test, and install new skills autonomously, outperforming the best existing tools by a huge margin.

The Big Picture

Currently, software is like a frozen statue. To change it, you have to chip away at it with a hammer (human developers).
SelfEvolve turns software into a living organism. It can sense a need, grow a new limb (feature) to meet that need, and keep moving forward, all without stopping.

The Future Vision:
Imagine a Netflix that doesn't just recommend movies, but if you ask, "I want to see a movie where the main character is a time-traveling baker," it instantly writes the code to build that specific recommendation engine for you, tests it, and shows you the results. It's the beginning of software that truly evolves to fit your unique needs, instantly.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →