AI agents can implement a feature in minutes. Sometimes, understanding everything theyāve changed takes considerably longer.
And this is becoming one of the most interesting challenges weāre facing as software engineers.
If youāre a Software Engineer or Tech Lead trying to keep AI-assisted development productive without turning code reviews into a bottleneck, this email is for you.
In todayās issue, I want to share an idea Iāve been experimenting with: using HTML animations generated by AI harnesses to help developers understand and review the code changes AI agents produce.
Before you continue, if you enjoy my work and would like to support the newsletter, Iād really appreciate it if you shared it with a fellow engineer:
š On WhatsApp | š On LinkedIn | 𩵠Bluesky
Or simply forward this email to someone who might find it useful.
The code review challenge in the age of AI
AI agents are making us more productive.
We can implement new features, fix bugs and modify existing functionality much faster than before. We can generate significantly more code in less time.
Sounds great, right?
Well, thereās a catch.
The more code AI generates, the more code we need to understand and review.
And this is becoming a real challenge for software development teams.
We still want to follow a Human-in-the-Loop approach, keeping people involved in the code generation process. We donāt want to blindly accept everything an AI agent produces.
But the amount of code being generated makes this increasingly difficult.
šš¼ Weāre becoming faster at producing code, but that doesnāt automatically make us faster at understanding it.
And thatās the problem I want to address.
ADRs help, but they donāt explain everything
One possible solution Iāve discussed in previous issues of this newsletter is using Architecture Decision Records (ADRs).
ADRs help us document the architectural decisions behind our software. They provide context about why something was implemented in a particular way, making it easier for developers to understand the reasoning behind the code.
If you want to know more about ADRs, I wrote this for you:
And you can use this template for ADRs:
However, based on my experience using ADRs over the last couple of years, Iāve realised that this approach has its limitations.
There are two problems worth highlighting:
The number of ADRs: As a software project evolves, we can accumulate a considerable number of decision records. Finding and understanding the relevant ones becomes another challenge.
Their size and complexity: Some ADRs can become quite large. Even when theyāre written in our native language, reading and understanding lengthy technical documents takes time and effort.
But thereās another important distinction here.
ADRs and code explanations serve different purposes.
An ADR helps us understand the architectural decisions behind our software: why we chose a particular approach, which alternatives we considered and what consequences that decision has.
But when reviewing a Pull Request, we often need answers to different questions:
What has actually changed?
How does the new implementation work?
How do the different components interact?
What happens when a particular condition is met?
How does the execution flow change?
šš¼ ADRs explain architectural decisions. We also need a way to understand how those decisions translate into actual code.
Thereās also something else worth considering.
Different representations can make complex information easier to understand. Sometimes reading code or documentation is enough. Other times, a visual representation or an animation can communicate something that would otherwise take several paragraphs to explain.
Think about following a complex execution flow by reading several classes and jumping between different methods. Now imagine watching an animation that shows how that flow progresses, how data changes and what happens at each decision point.
The information is essentially the same, but the way we consume and understand it is different.
And thatās where I think we can do something interesting.
Beyond documentation: Visualizing how the code works
Hereās what Iād like to propose: complement our existing code review process with HTML animations that explain the implementation AI agents have produced.
Iām not talking about generating another document or a static architecture diagram.
Iām talking about asking our AI harness to create an HTML artifact that visually explains how the implemented code works.
Depending on the nature of the change, this could take different forms:
An animated sequence diagram showing how components interact.
A visual flow explaining the execution path of a particular operation.
An animation illustrating how a process or state machine evolves.
An interactive walkthrough explaining the actual logic implemented in the code.
All of these can be useful.
However, from my personal experience, the most valuable animations are those that explain the actual logic and behaviour of the implementation, step by step.
Think about it.
Reading a piece of code requires you to mentally reconstruct what happens during execution. You need to follow conditions, understand how data changes, keep track of different components and build a mental model of the whole process.
An animation can make that process much easier.
Instead of reconstructing everything in your head, you can watch how the implementation behaves and follow its execution visually.
And this brings us to the practical side of the idea.
Letās put it into practice
This is already possible with some of the tools weāre using today.
Tools such as Claude Code and Claude Desktop can generate HTML artifacts that explain concepts and implementations visually. These artifacts can be hosted and shared with other people, making them useful when collaborating with your team.
Iām mentioning these two tools because theyāre the ones Iām currently using, but Iām sure other agent harnesses and skills can provide similar capabilities.
So, hereās my suggestion.
Whenever you implement a reasonably significant feature, ask your AI harness to generate an HTML animation explaining how the implementation works.
The important part is to let the agent choose the most appropriate visual representation for the change.
Letās take a practical example.
Imagine youāre implementing a new feature involving several microservices and asynchronous communication through Kafka.
A conventional code review might require you to jump between several classes, Kafka consumers, event publishers and error-handling mechanisms to understand the complete flow.
An HTML animation could show:
An incoming request reaching the first service.
The service processing the request and publishing an event.
Another service consuming that event and executing its business logic.
The resulting events and state changes.
What happens when an error occurs, or a particular condition isnāt met.
Now imagine the AI agent accidentally implements an incorrect condition or handles one of the failure scenarios incorrectly.
By watching the animation, the reviewer might notice that the execution takes an unexpected path and investigate the corresponding code.
Thatās precisely the kind of situation where I believe these artifacts can provide real value.
For example, you could ask your AI harness:
Create an HTML visual artifact explaining how the functionality youāve just implemented works.
Analyse the code changes and choose the most appropriate visual representation to explain the implementation. This could be an animated sequence diagram, an execution flow or, preferably, an animation that walks through the actual business logic step by step.
Focus on what the code actually does:
Show how the execution progresses.
Explain how data changes throughout the process.
Illustrate interactions between components when relevant.
Highlight important conditions, decisions and alternative execution paths.
Make the animation easy to follow for another developer who needs to review this Pull Request.
Keep it focused on the changes introduced by this feature rather than explaining the entire architecture or codebase.
Of course, adapt the prompt to your needs. The goal isnāt to generate the same type of animation for every change, but to let the AI choose the representation that makes the implementation easiest to understand.
āš¼ One important detail: these artifacts are intended to be disposable.
Their primary purpose is to help reviewers understand a particular change while reviewing its Pull Request. Once the review is complete, thereās generally no need to keep them around.
In some cases, you might find an artifact valuable enough to turn into permanent documentation. Thatās perfectly fine, but itās a separate decision that depends on the team and the needs of the project.
Weāre not proposing another documentation system that developers have to maintain.
Weāre proposing a temporary tool that makes code reviews easier.
Before sharing an artifact, though, remember to check that it doesnāt expose secrets, credentials, customer information or internal implementation details that shouldnāt be accessible to its intended audience. The convenience of sharing an HTML page shouldnāt make us forget our usual security practices.
One more reason to keep humans in the loop
Thereās another interesting aspect of this approach that I donāt want to overlook.
What happens when the AI agent makes a mistake?
Well, the generated animation might reproduce that mistake.
But thatās not necessarily a bad thing.
Think about an agent implementing a business process incorrectly because it misunderstood one of the requirements. It might generate code that follows an unexpected execution path.
When the agent creates an animation explaining that implementation, the mistake might become much easier to spot.
A reviewer who follows the animation could notice that something doesnāt look right, question the behaviour and investigate the corresponding code.
šš¼ The animation doesnāt need to validate the implementation. It needs to make the implementation easier to understand, so reviewers can spot whatās wrong.
Of course, an animation can also be incomplete or misrepresent the code. It isnāt an independent verification mechanism, and it doesnāt replace reviewing the actual implementation, requirements or tests.
But it provides another perspective that can help us understand what the AI agent has produced.
And thatās precisely why I find this approach interesting.
Weāre not trying to remove humans from code reviews. Weāre trying to give them better tools to understand what theyāre reviewing.
Letās wrap up!
⨠Takeaways
AI generates code faster than we can always understand it. Improving our ability to review and understand AI-generated changes is becoming increasingly important.
ADRs and visual artifacts serve different purposes. ADRs explain architectural decisions, while HTML animations help us understand how the implementation actually works.
Use animations as temporary review artifacts. Ask your AI harness to generate an appropriate visual explanation for significant changes and share it with your reviewers.
šš¼ Our goal shouldnāt be just to generate code faster. We also need to make sure that the people responsible for maintaining and reviewing that code can understand it.
Stay optimistic and keep building!
Iād love to hear your thoughts on this. Have you experimented with AI-generated HTML artifacts to explain code changes? Do you see them adding value to your teamās code review process?
Drop a message in the comments or reply to this email, I read and reply to all!
Best,
Marcos.



