When AI writes the code, what should a software repository keep?

A compiler can rebuild a program from its source code. A maintainer reading that same code may not be able to tell what a user originally asked for, why a coding agent chose one design over another, or what evidence supported the choice. In a December 3, 2026 essay, Amarasinghe proposes making that information part of the project’s source of truth: the record from which the software is built and which settles questions about what it should do.

When AI writes the code, what should a software repository keep? (1)

Python and C have practical advantages for coding agents, Amarasinghe notes. Models can learn from large collections of existing code, and projects can reuse familiar libraries and frameworks. But both languages were designed for people to read and write. When an agent writes the program and a compiler reads it, Amarasinghe argues, there is no fundamental reason their shared format must still be a human-oriented language.

When AI writes the code, what should a software repository keep? (2)
When AI writes the code, what should a software repository keep? (3)

One record instead of two

Keeping the English specification alongside the generated code may seem like a straightforward way to preserve intent. The difficulty, in Amarasinghe’s account, comes when the two disagree: which one should the team change? Treating both as authoritative leaves that question open. Relying on English alone poses a different problem because an agent may not interpret it the same way every time. Keeping only assembly makes the program difficult to explain or modify.

When AI writes the code, what should a software repository keep? (4)

Amarasinghe proposes retaining the compiler but changing its input. A person would set the requirements and approve the agent’s explanation of the resulting record. The agent would make decisions the compiler cannot work out, while the compiler would handle the rest, including generating an efficient binary for each target machine. A separate checker would test the result against the record without having to trust either the agent or the compiler.

When AI writes the code, what should a software repository keep? (5)
When AI writes the code, what should a software repository keep? (6)

For a future maintainer, the useful addition would be more than the original request. The record could preserve rejected alternatives, reasons for design decisions, and evidence of correctness, including a proof that would be costly to reconstruct. Those details would then be available to the next agent working on the system rather than left in a design discussion or message thread.

When AI writes the code, what should a software repository keep? (7)

The essay outlines 12 desired characteristics across four areas: what people contribute, what agents contribute, the format of the record, and its interfaces. It does not specify a finished format. One open constraint is whether an agent could use a new notation reliably: models would need to encounter it during training or be able to learn it from documentation and feedback from the checker.