cs.AIAug 7, 2026

Mendel Gödel Machine: Recursive Self-Improving Coding Agents via Comparative Evolution

Authors: Changzhi Liu, Yilun Liu, Sikuan Yan, Volker Tresp, Yunpu Ma

Organizations: University of Electronic Science and Technology of China · Ludwig Maximilian University of Munich · Munich Center for Machine Learning

Abstract

Self-improving coding agents that iteratively rewrite their own source code have demonstrated impressive performance on coding tasks. However, existing solutions generally derive self-modification from a single failure trajectory at a time, overlooking rich comparative signals available in the agent's expanding archive of past attempts. According to Mendelian principles of controlled inheritance, we introduce Mendel Gödel Machine (MGM). In addition to the general single-trajectory clonal mutation, MGM includes two new types of self-modification that better utilizes evidences accumulated: the reaction-norm mutation edits an agent based on its trajectories on multiple tasks simultaneously, and the cross-lineage hybridization edits an agent using the trajectory of a reference agent from another lineage on the same task. Under an additive fitness landscape model, we prove theoretically and demonstrate via controlled surrogate simulation that the new strategies facilitate a faster and better convergence over single-trajectory baselines. Experiments on SWE-bench and Polyglot confirm MGM's consistent improvement in performance, efficiency, and generalizability.

Explore similar work

CardsList
  1. Self Improvement via Fast Tree-search

    Sep 17, 2026Xinghong Fu, Aravinth Kulanthaivelu, Yutaro YamadaRecursive Self-ImprovementTree Search