Skip to content
M.O.
← All projects

Autonomous coding agent · Team of 3 · 42 Le Havre

Agent Smith

Reason, run, read the error, go again.

The agent loopUntil the tests pass
  1. Reasonthe model picks the action
  2. Writea single block of Python
  3. Runisolated process, restricted builtins
  4. Readoutput or error, then go again
30 s
maximum per run, with 512 MB of memory, by default
9
MCP tools to read, edit, search, test and extract the patch
4
LLM providers behind an OpenAI-compatible client

Problem

Let a language model write and run code on its own, on functions to validate as well as real repository bugs, without ever trusting it.

Solution

The agent writes a block of Python, runs it, reads the output or the error, then goes again until the tests pass. Generated code runs in a separate process with restricted builtins, with MCP tools injected as plain functions.

9 MCP tools
  • read_file
  • edit_file
  • list_files
  • search_code
  • search_function_or_class_definition_in_code
  • find_references
  • run_tests
  • get_patch
  • run_command
Sandbox
Process
separate, restricted builtins
Imports
allowlisted
Timeout
30 s by default
Memory
512 MB by default
Two kinds of task
MBPP
write a function that passes the tests
SWE-bench
fix a real bug inside Docker

Python · MCP · LLM APIs · Docker · SWE-bench