Coding and Software-Engineering Agents
Language AI HandbookAll chapters A request to fix a date parser may arrive with one line of expected behavior and no file name. A coding agent must find the implementation and its callers, establish what fails, make the change, and show what happened to the tests that already passed. The test suite gives feedback about the cases it exercises. A reviewer still needs the patch and evidence about the behavior outside those cases.
We will trace a small repair in a local repository. The example separates repository search, the visible test suite, independent checks, and review of the complete diff. It uses a predetermined patch and Python’s standard library, so you can run the exercise without a model or a package download.
The model proposes actions and edits. The environment supplies the repository, interpreter and tests. The harness connects them by setting the available tools, writable paths, test feedback and stopping rules. A stronger model can propose a better edit. The harness determines what that edit can touch and what evidence reaches the reviewer.
A system that uses a large language model in a loop to observe a software repository, decide on an action (search, read, edit, run a command), execute that action against a real or sandboxed environment, and repeat until a stopping condition such as "the target tests pass" is met. The essential properties are (a) repository-level context rather than a single file, (b) verifiable feedback from execution, and (c) changes materialized as inspectable patches rather than opaque prose.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!