SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.22954 · 2025

Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agents

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.22954.json · badge: /api/ran/2505.22954.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jennyzzt/dgm canonical (classifier label)
classifier basis not recorded on the link
9 ran · 0 no recorded run
FunctionStatusWhere it lives
check_for_tool_use Ran
ran on a synthesized input
jennyzzt/dgm/llm_withtools.py
code served (permissive licence) · get_code("7bae39622b90af33")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import ast
import json
import re
from typing import Optional

# Create a simple mock object for Claude response with tool_use
class ToolUseBlock:
    def __init__(self):
        self.type = 'tool_use'
        self.id = 'tool_123'
        self.name = 'calculator'
        self.input = {'expression': '2 + 2'}

class ClaudeResponse:
    def __init__(self, stop_reason='tool_use'):
        self.stop_reason = stop_reason
        self.content = [ToolUseBlock()]

# Create a simple mock object for O3 response with function_call
class FunctionCall:
    def __init__(self):
        self.type = 'function_call'
        self.call_id = 'call_456'
        self.name = 'search'
        self.arguments = '{"query": "test"}'

class O3Response:
    def __init__(self):
        self.output = [FunctionCall()]

# Test case 1: Claude model with tool_use
claude_response = ClaudeResponse()

# Test case 2: O3 model response
o3_response = O3Response()

# Test case 3: String response with tool_use XML tags
string_response = """
Some text before.
<tool_use>
{'tool_name': 'get_weather', 'tool_input': {'location': 'NYC'}}
</tool_use>
Some text after.
"""

# Test case 4: String response without tool_use
string_response_no_tool = "Just a normal response without any tool use."

ARGS = {
    'response': claude_response,
    'model': 'claude-3-opus'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_evalquantity Ran
ran on a synthesized input
jennyzzt/dgm/analysis/visualize_archive.py
code served (permissive licence) · get_code("573dcd9017600ea2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
node_id = "test_node_1"
node_path = os.path.join(temp_dir, node_id)
os.makedirs(node_path, exist_ok=True)

# Create a metadata.json file with test data
metadata = {
    "overall_performance": {
        "total_submitted_instances": 25
    }
}

metadata_path = os.path.join(node_path, "metadata.json")
with open(metadata_path, 'w') as f:
    json.dump(metadata, f)

# Define ARGS with all required parameters
ARGS = {
    'dgm_dir': temp_dir,
    'node_id': node_id,
    'metadata_name': 'metadata.json',
    'halluc': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_parent_commit Ran
ran on a synthesized input
jennyzzt/dgm/analysis/visualize_archive.py
code served (permissive licence) · get_code("29ce1a1311c2bb87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create a child node directory with metadata
child_node_id = "node_123"
child_node_path = os.path.join(temp_dir, child_node_id)
os.makedirs(child_node_path, exist_ok=True)

# Create a metadata.json file with parent_commit information
metadata = {
    "parent_commit": "abc123def456",
    "timestamp": "2024-01-15",
    "other_field": "some_value"
}

metadata_path = os.path.join(child_node_path, "metadata.json")
with open(metadata_path, 'w') as f:
    json.dump(metadata, f)

# Define ARGS
ARGS = {
    "dgm_dir": temp_dir,
    "child_node_id": child_node_id,
    "metadata_name": "metadata.json"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_results Ran
ran on a synthesized input
jennyzzt/dgm/polyglot/benchmark.py
code served (permissive licence) · get_code("ec8bd9532ec0ac1a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import tempfile
import os

# Create a temporary directory structure with test files
temp_dir = tempfile.mkdtemp()

# Create directory structure: lang/exercises/practice/exercise_name/.aider.results.json
os.makedirs(os.path.join(temp_dir, 'python', 'exercises', 'practice', 'hello_world'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'javascript', 'exercises', 'practice', 'bob'), exist_ok=True)

# Create valid JSON results files
results_data_1 = {
    'exercise': 'hello_world',
    'language': 'python',
    'status': 'passed',
    'tests': 5
}

results_data_2 = {
    'exercise': 'bob',
    'language': 'javascript',
    'status': 'passed',
    'tests': 3
}

results_file_1 = Path(temp_dir) / 'python' / 'exercises' / 'practice' / 'hello_world' / '.aider.results.json'
results_file_2 = Path(temp_dir) / 'javascript' / 'exercises' / 'practice' / 'bob' / '.aider.results.json'

results_file_1.write_text(json.dumps(results_data_1))
results_file_2.write_text(json.dumps(results_data_2))

ARGS = {
    'dirname': temp_dir,
    'stats_languages': 'python, javascript'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_tool_call Ran
ran on a synthesized input
jennyzzt/dgm/llm_withtools.py
code served (permissive licence) · get_code("bb5c46679b9a3538")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Define some example tool functions
def calculator_add(a, b):
    """A simple addition tool"""
    return a + b

def calculator_multiply(a, b):
    """A simple multiplication tool"""
    return a * b

def text_processor(text, upper=False):
    """A simple text processing tool"""
    if upper:
        return text.upper()
    return text.lower()

def model_inference(data):
    """A tool that uses model inference"""
    class SimpleModel(nn.Module):
        def __init__(self):
            super().__init__()
            self.linear = nn.Linear(4, 2)
        
        def forward(self, x):
            return self.linear(x)
    
    model = SimpleModel()
    x = torch.randn(2, 4)
    return model(x).detach().numpy().tolist()

# Construct the tools_dict
tools_dict = {
    'add': {
        'function': calculator_add,
        'description': 'Adds two numbers'
    },
    'multiply': {
        'function': calculator_multiply,
        'description': 'Multiplies two numbers'
    },
    'process_text': {
        'function': text_processor,
        'description': 'Processes text'
    },
    'inference': {
        'function': model_inference,
        'description': 'Runs model inference'
    }
}

# Define ARGS for the process_tool_call function
ARGS = {
    'tools_dict': tools_dict,
    'tool_name': 'add',
    'tool_input': {'a': 5, 'b': 3}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_dirname Ran
ran on a synthesized input
jennyzzt/dgm/polyglot/benchmark.py
code served (permissive licence) · get_code("4fb71754d4f2f683")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import datetime
import os
from pathlib import Path
import tempfile

# Set up a temporary benchmark directory
tmpdir = tempfile.mkdtemp()
os.environ['AIDER_BENCHMARK_DIR'] = tmpdir

# Create the BENCHMARK_DNAME directory
BENCHMARK_DNAME = Path(tmpdir)
BENCHMARK_DNAME.mkdir(parents=True, exist_ok=True)

# Create a test dirname - use a simple name
test_dirname = Path('test_run')

# Set up test arguments
ARGS = {
    'dirname': test_dirname,
    'use_single_prior': False,
    'make_new': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_logger Ran
ran on a synthesized input
jennyzzt/dgm/polyglot/docker_build.py
code served (permissive licence) · get_code("ec3a8a5f64892160")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
from pathlib import Path
import tempfile

# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()
log_file_path = Path(temp_dir) / "test_logs" / "build.log"

ARGS = {
    'instance_id': 'test_instance_001',
    'log_file': log_file_path,
    'mode': 'w'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_logger Ran
ran on a synthesized input
jennyzzt/dgm/coding_agent.py
code served (permissive licence) · get_code("5f2a0fc5653d6738")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
from logging.handlers import RotatingFileHandler
import os
import tempfile

# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()
log_file_path = os.path.join(temp_dir, 'chat_history.md')

ARGS = {
    'log_file': log_file_path,
    'level': logging.INFO
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_eval_quantity_enum Ran
ran on a synthesized input
jennyzzt/dgm/analysis/visualize_archive.py
code served (permissive licence) · get_code("9501494578539ba1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class EvalQuantity:
    SMALL = 'small'
    MED = 'med'
    BIG = 'big'

def to_eval_quantity_enum(eval_quantity, halluc=False):
    if halluc:
        if eval_quantity <= 1.5:
            return EvalQuantity.SMALL
        else:
            return EvalQuantity.BIG
    elif eval_quantity <= 10:
        return EvalQuantity.SMALL
    elif eval_quantity <= 60:
        return EvalQuantity.MED
    else:
        return EvalQuantity.BIG

ARGS = {
    'eval_quantity': 5.0,
    'halluc': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
setup_logger 1 other paper
1 the same month
2505.23671 (2025-05)
GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Today's AI systems have human-designed, fixed architectures and cannot autonomously and continuously improve themselves. The advance of AI could itself be automated. If done safely, that would accelerate AI development and allow us to reap its benefits much sooner. Meta-learning can automate the discovery of novel algorithms, but is limited by first-order improvements and the human design of a suitable search space. The Gödel machine proposed a theoretical alternative: a self-improving AI that repeatedly modifies itself in a provably beneficial manner. Unfortunately, proving that most changes are net beneficial is impossible in practice. We introduce the Darwin Gödel Machine (DGM), a self-improving system that iteratively modifies its own code (thereby also improving its ability to modify its own codebase) and empirically validates each change using coding benchmarks. Inspired by Darwinian evolution and open-endedness research, the DGM maintains an archive of generated coding agents. It grows the archive by sampling an agent from it and using a foundation model to create a new, interesting, version of the sampled agent. This open-ended exploration forms a growing tree of diverse, high-quality agents and allows the parallel exploration of many different paths through the search space. Empirically, the DGM automatically improves its coding capabilities (e.g., better code editing tools, long-context window management, peer-review mechanisms), increasing performance on SWE-bench from 20.0% to 50.0%, and on Polyglot from 14.2% to 30.7%. Furthermore, the DGM significantly outperforms baselines without self-improvement or open-ended exploration. All experiments were done with safety precautions (e.g., sandboxing, human oversight). The DGM is a significant step toward self-improving AI, capable of gathering its own stepping stones along paths that unfold into endless innovation.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.22954")
get_code_for_paper("2505.22954")
have("2505.22954")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.22954.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.22954.svg)](https://syntology.ai/paper/2505.22954)

Connect an agent — have() is free.