Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

The meta-circular bootstrapped coding agent

See Bootstrapping Coding Agents: The Specification Is the Program, In IEEE Software, volume 43, 2026.

@article{bootstrapping-agent,
 title = {Bootstrapping Coding Agents: The Specification Is the Program},
 year = {2026},
 author = {Martin Monperrus},
 url = {http://arxiv.org/pdf/2603.17399},
 journal = {IEEE Software},
 volume = {43},
 issue = {4},
 doi = {10.1109/ms.2026.3687051},
}

Martin Monperrus
March 2026

Concept

Step 1: specification. We write a specification for a coding agent. The resulting spect defines the agent's interface, its expected behavior, and the constraints it must respect.

Step 2: first implementation. Claude Code implements the spec (model Sonnet 4.6). The result is a perfectly working Python program (agent.py).

implement the spec in a single python file

$ python agent.py 
usage: agent.py [-h] [--model MODEL] [--base-url BASE_URL] [--api-key API_KEY] [--max-turns MAX_TURNS] [--cwd CWD] [task]

Step 3: self-implementation. The newly generated agent is given the same specification and asked to implement it again. It succeeds. The agent reimplements itself. Meta-circularity ✓.

$ python agent.py "implement the spec in a single python file"

Changelog

The spec could actually be made simpler, see spec-simpler with tools list_files and search_text removed.

About

meta-circular coding agent http://arxiv.org/pdf/2603.17399

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages