Internal changelogs for coding agents give AI tools something they lack by default: a memory of why a codebase looks the way it does. Rally, an AI engineering team, argues that this is the missing piece for running autonomous agents on real software.
The reasoning starts with how language models work. They keep no memory between turns, let alone between coding sessions. What looks like memory is the entire recent conversation, say the last 24 turns, passed back in each time, or a compressed summary of earlier sessions.
Where agents go wrong
People tend to treat an agent as a colleague who remembers last month’s failed experiment. It doesn’t. That mismatch has led autonomous agents to build designs the team already knew were bad, or to rebuild a feature that had been removed a month earlier.
Rally’s fix is to have agents write an internal changelog that records what changed, why it changed, and any false starts. The false-starts field was a late addition, prompted by traces the team observed. The team says the practice has cut churn between agent sessions, and reduced the human oversight needed to catch agents wandering down dead ends.
What an entry contains
Each entry is a dated heading with a one-line claim, followed by four fields:
- What changed: behavior in one or two sentences, in the module’s own vocabulary.
- Why: the pressure behind the change, such as a failure, a measurement or a new constraint. “Refactor” or “cleanup” don’t count.
- Considered and rejected: the alternative that didn’t survive, since it’s the idea the next person will likely propose.
- Consequences: what the change limits from now on and what got worse and was accepted.
Entries sit at the end of each module document, newest first, and close with a line naming the pull request. In one example, a production image preview spent about a second on a second authorization call after reading from R2, so reads now authorize once per request.
How it differs from skills and comments
Rally separates the changelog from other agent context. Skills and files like AGENTS.md or CLAUDE.md tell a model how to do something: code style, tool usage, quirks of the environment. Code and comments describe what and sometimes how, but rarely why. Git history shows changes, yet it still misses reasoning, and many models don’t look at it on their own.
Platform-level memory features are also arriving. Rally found those closer to automatic skills than to long-term product memory.
The human parallel
The team compares the approach to what developers have always done informally. Teams carry tribal knowledge, like “talk to Susan, she prototyped that last year,” that never reaches code or documentation. People also remember directions taken, experiments run and lessons learned. Models stay unchanged from run to run, so that memory has to be written down for them.
The rules Rally gives its agents
The write-up includes the agent instructions in full. The target reader is someone changing the module a year later, who can read the code and the diff but can’t recover the failure that ruled out the obvious design. Without that, the instructions warn, they will clean up the odd-looking piece, ship a simplification that was already rejected, and repeat an old outage.
Other rules keep the log honest. Write each entry for a reader who has no access to the ticket or the thread. Update the document body in the same change. If the old motivation isn’t recorded, say so rather than guess, because a guessed reason looks identical to a real one. The team ran one consolidation pass in September 2026, merging split entries and dropping those without a real why.
What to try next
Teams running coding agents can copy the pattern directly: add a changelog section to each module document and require the four fields on every substantial change. The cost is a few lines per change, and the payoff is an agent that reads past decisions before proposing a repeat of them.
Source: Rally