Coding and Software-Engineering Agents

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 374Coding and Software-Engineering Agents
Reading section 1 of 12 · Coding and Software-Engineering Agents · 2 minSection 1 of 12 · 2 min

Section 1 of 12 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

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.

Coding agent

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy