Building software with AI
Using AI agents to write good, maintainable code, not AI slop: reviewing AI-generated code, getting consistent results, and a first Spring AI feature.
Start with
-
How to Review AI-Generated Code, and When to Trust an AI Reviewer
AI code review that works: how to read an AI-generated pull request, what to check, and how to use AI reviewers without chasing false alarms.
-
Many Agents, One Plan: Consistent Quality from Non-Deterministic AI
AI coding agents give a different result every run. Fan the early design work out to several independent agents, adjudicate one plan, then build it inside a box. The result: consistent quality.
AI lets anyone write a lot of code quickly, including a lot of bad code. Generated code that nobody shaped or checked has a name now, AI slop, and it becomes a maintenance problem the first time someone has to change it. I’m after the other outcome: code an agent wrote that a team can still read, trust and change.
Most of that comes down to two things. Review: once an agent writes the code, review is the slow part, so I size each review to the risk and treat every AI reviewer’s finding as a claim to check. Consistency: an agent gives a different result every run, so I let several agents plan independently, pick one plan, and build it once.
The other half of building with AI is code that calls a model, which has its own first steps.
Reviewing what an agent writes Link to heading
How to Review AI-Generated Code, and When to Trust an AI Reviewer is how I do it: decide how much review the pull request needs, read it from the outside in (the request, then the interfaces, then the code, then the tests), and check every AI reviewer’s finding against the code before acting on it.
Getting consistent results Link to heading
Many Agents, One Plan turns that variance into an advantage: several independent agents plan, one plan is picked, and it’s built inside a box. Use the variance while it’s a page, and shut it down before it’s a diff.
Where this is heading Link to heading
- AI Is the New IDE Moment: agents change the developer’s job the way compilers and IDEs did, but the tools to supervise them don’t exist yet.
- Will AI Become a Core Toolchain Layer?: CodeSpeak, an early spec-first project, and what AI would need to become part of the toolchain: repeatability, security and auditability.
Building AI features Link to heading
Your First AI Feature in Kotlin with Spring AI and MCP explains what MCP is and builds a first feature with Spring AI 2.1: tool calling across three MCP servers, session memory, and human-in-the-loop approval.
All posts in this topic
-
Your First AI Feature in Kotlin with Spring AI and MCP
You use AI to write code. Writing code that uses AI is a different step. Here’s why you’d take it, how to start, and a working Kotlin example on Spring AI 2.1: an assistant that reads support emails, looks things up across three systems over MCP, and proposes actions a person approves.
-
Many Agents, One Plan: Consistent Quality from Non-Deterministic AI
Run the same prompt twice and a coding agent gives you two different results. Instead of fighting that, I spend it on planning, where a page is cheap to read, and shut it down for implementation, where every diff costs a review.
-
AI Is the New IDE Moment, and We Haven't Built the Tools Yet
High-level languages and IDEs changed what a developer’s job was. AI agents are doing it again. The tools for supervising them — approving what matters and skipping what doesn’t — don’t exist yet.
-
How to Review AI-Generated Code, and When to Trust an AI Reviewer
AI-generated pull requests are big, plausible and hard to review, and AI reviewers bring problems of their own. Here’s how I review a PR I didn’t write: how much review it needs, the order I read it in, what I check, how I use AI reviewers, why a teammate still reviews, and what to fix now versus later.
-
Will AI Become a Core Toolchain Layer? A CodeSpeak Analysis
CodeSpeak is an early spec-first project. The bigger question is whether AI becomes a core toolchain layer with repeatability, security, and auditability.