A few years ago, my days were measured in commits, refactors, and debugging sessions inside an IDE. Today, I can go entire sprints without writing a single line of production code by hand.
Instead, my job happens at the edges of the code:
- Discovery & Alignment: Meeting with Product Owners, Tech Leads, and stakeholders to untangle what problem we are actually solving.
- Specification: Turning ambiguity into sharp user stories and bug tickets.
- Generation: Letting Claude Code implement the ticket, write the tests, and raise the PR.
- Two-Stage Review: Running an automated Claude Code review pass first, followed by my own manual PR review.
On paper, it feels like a superpower. In practice, I have landed on a rule of thumb: Claude Code gets me 97% of the way there remarkably fast—and the remaining 3% is where production incidents live.
It isn't that the code fails to compile or pass basic checks. The danger is that it works on the surface while quietly compromising architecture, database performance, security, business logic, or test integrity.
A note on the AI workflow behind these examples
Before getting into the examples, it's worth making something clear: these aren't necessarily problems caused by poor AI configuration or a lack of engineering standards.
I'm not simply pointing Claude Code at a Jira (in my case Azure DevOps) ticket and hoping for the best.
The workflow has established company conventions, architectural patterns, a maintained CLAUDE.md, existing examples to follow, shared test infrastructure, detailed requirements, automated CI checks and a separate AI-assisted code review before I carry out my own manual PR review.
Claude Code has access to the conventions and context it needs. It generally follows them remarkably well.
And that's precisely why these issues are interesting.
Even with all those guardrails in place, AI can still make assumptions, misinterpret business requirements, overlook existing constraints or produce code that is technically valid but operationally problematic.
The examples below aren't intended to suggest that AI coding agents are inherently bad at writing code. They're intended to highlight the difference between code that looks correct, follows conventions and passes tests, and code that is genuinely correct for the system it is being introduced into.
Good AI workflows reduce the frequency of mistakes. They don't remove the responsibility to catch them.
1. The Missing Architecture: Glue Code Over Design Patterns
Claude Code's strongest instinct is to connect point A to point B as directly as possible. Give it a feature ticket, and it will write clean-looking functions, wire up dependency injection, and make the endpoint return 200 OK.
What it rarely pauses to ask is: Does this belong in our architecture?
In manual PR review, I repeatedly catch structural smells:
-
Procedural sprawl inside handlers/services: Instead of applying established patterns already present in the repo (Strategy, Factory, Chain of Responsibility, or domain events), it appends another
if/elsebranch to an already growing service. - Boundary leaks: Business rules slipping into controllers, repositories, or UI mappers simply because that file was already open in context.
- Ticket-scoped tunnel vision: Code that cleanly satisfies this user story while coupling two modules that were intentionally isolated for future work.
- Unnecessary abstraction: The opposite problem also happens. A straightforward operation gets extra interfaces, factories, generic repositories or layers that add complexity without providing a useful boundary.
Example: Another pricing implementation
Imagine the codebase already has a pricing strategy abstraction, customer-specific pricing policies, a delivery calculator and a centralised discount mechanism.
An AI-generated implementation might still add another collection of conditions to an existing service.
❌ What the AI might generate
public async Task<decimal> CalculatePriceAsync(
Order order,
CancellationToken ct)
{
decimal price = order.Subtotal;
if (order.Customer.Type == CustomerType.Premium)
{
price *= 0.90m;
}
if (order.Customer.Type == CustomerType.Vip)
{
price *= 0.80m;
}
if (order.Customer.Country == "UK")
{
price += 5.00m;
}
if (order.IsExpressDelivery)
{
price += 15.00m;
}
if (order.Customer.Type == CustomerType.Premium &&
order.Subtotal > 500)
{
price -= 25.00m;
}
return price;
}
There's nothing syntactically wrong here. It might even be perfectly acceptable for a small, isolated application.
But if the existing application already has dedicated places for pricing strategies, delivery calculations and discounts, this implementation has bypassed them. It creates another place where pricing rules now live.
✅ What I'd expect to see instead
If those abstractions already exist and are appropriate for the application, the implementation might look more like this:
public async Task<decimal> CalculatePriceAsync(
Order order,
CancellationToken ct)
{
var pricingStrategy = _pricingStrategyFactory
.GetStrategy(order.Customer.Type);
var basePrice = await pricingStrategy
.CalculateAsync(order, ct);
var deliveryCost = await _deliveryCalculator
.CalculateAsync(order, ct);
var discounts = await _discountService
.CalculateDiscountsAsync(order, ct);
return basePrice + deliveryCost - discounts;
}
The second implementation is only better if those abstractions actually exist and are appropriate for the application. The point isn't to maximise the number of design patterns; it's to respect the architecture and complexity the problem actually requires.
The review lesson: Don't just ask whether the generated code works. Ask whether it has introduced a second implementation of something the application already knows how to do.
2. EF Core & SQL: Where Joins and Unions Quietly Tank Performance
Simple lookups and basic tracking rules are easy to train into Claude Code. Once you put the right conventions in place, it follows them consistently.
The real trouble starts when a ticket asks for combined activity feeds, multi-entity search, or aggregated views that translate into joins and unions.
Claude Code can stitch together multiple LINQ queries with .Concat() (which commonly translates to UNION ALL in SQL) or chain joins across several tables and navigation properties. It passes local tests on small datasets, while generating SQL that does far more work than necessary.
There's another issue worth looking for: a query can be valid, execute successfully and still fail to enforce an important data boundary.
❌ What the AI might generate
Imagine an activity feed in a multi-tenant application. The method accepts an accountId, but the generated query never uses it:
public async Task<List<ActivityFeedItemDto>> GetRecentActivityAsync(
Guid accountId,
CancellationToken ct)
{
var orderActivities = _dbContext.Orders
.AsNoTracking()
.Join(_dbContext.Customers,
o => o.CustomerId,
c => c.Id,
(o, c) => new { o, c })
.Join(_dbContext.OrderShipments,
x => x.o.Id,
s => s.OrderId,
(x, s) => new ActivityFeedItemDto(
x.o.Id,
"Shipment",
x.c.Name,
s.UpdatedAt ?? x.o.CreatedAt));
var invoiceActivities = _dbContext.Invoices
.AsNoTracking()
.Join(_dbContext.Customers,
i => i.CustomerId,
c => c.Id,
(i, c) => new { i, c })
.Join(_dbContext.PaymentAllocations,
x => x.i.Id,
p => p.InvoiceId,
(x, p) => new ActivityFeedItemDto(
x.i.Id,
"Payment",
x.c.Name,
p.AllocatedAt ?? x.i.IssuedAt));
return await orderActivities
.Concat(invoiceActivities)
.OrderByDescending(x => x.OccurredAt)
.Take(50)
.ToListAsync(ct);
}
At first glance, this looks reasonable. It uses AsNoTracking(), projects into a DTO, combines two activity types and limits the result.
But there are several things to question:
-
Missing tenant filtering:
accountIdis never used. Unless another enforced mechanism scopes these queries, the result may include activity belonging to other accounts. - Potentially expensive joins: Both branches join related tables before projecting the results.
- Unbounded intermediate results: There's no date or other relevant business filter to reduce the amount of activity being considered.
- Unexamined cardinality: Multiple shipments or payment allocations can produce multiple rows per parent entity. That may be correct for an event feed, but the reviewer needs to understand the intended semantics.
- No verification of generated SQL: The LINQ looks tidy, but that doesn't establish how efficiently the database executes it.
✅ A more deliberate implementation
Assuming Orders and Invoices both contain an AccountId, and the feed is intended to show individual shipment and payment allocation events, we can scope each branch and apply a relevant date boundary:
public async Task<List<ActivityFeedItemDto>> GetRecentActivityAsync(
Guid accountId,
DateTimeOffset since,
CancellationToken ct)
{
var orderActivities = _dbContext.Orders
.AsNoTracking()
.Where(o => o.AccountId == accountId)
.Join(_dbContext.Customers,
o => o.CustomerId,
c => c.Id,
(o, c) => new { o, c })
.Join(_dbContext.OrderShipments,
x => x.o.Id,
s => s.OrderId,
(x, s) => new
{
x.o.Id,
CustomerName = x.c.Name,
OccurredAt = s.UpdatedAt ?? x.o.CreatedAt
})
.Where(x => x.OccurredAt >= since)
.Select(x => new ActivityFeedItemDto(
x.Id,
"Shipment",
x.CustomerName,
x.OccurredAt));
var invoiceActivities = _dbContext.Invoices
.AsNoTracking()
.Where(i => i.AccountId == accountId)
.Join(_dbContext.Customers,
i => i.CustomerId,
c => c.Id,
(i, c) => new { i, c })
.Join(_dbContext.PaymentAllocations,
x => x.i.Id,
p => p.InvoiceId,
(x, p) => new
{
x.i.Id,
CustomerName = x.c.Name,
OccurredAt = p.AllocatedAt ?? x.i.IssuedAt
})
.Where(x => x.OccurredAt >= since)
.Select(x => new ActivityFeedItemDto(
x.Id,
"Payment",
x.CustomerName,
x.OccurredAt));
return await orderActivities
.Concat(invoiceActivities)
.OrderByDescending(x => x.OccurredAt)
.Take(50)
.ToListAsync(ct);
}
This version preserves the intended activity types while adding account scoping and a date boundary. The exact implementation depends on the actual schema and business rules, but the important point is that the data boundary must be explicit.
Also, writing filters earlier in LINQ doesn't guarantee the database physically executes them first. The database optimizer determines the actual plan. That's why inspecting the generated SQL and execution plan remains essential.
Never skip the execution plan
Even after simplifying LINQ, reading the generated SQL isn't enough—you have to check how the database executes it using EXPLAIN ANALYZE (PostgreSQL) or the Actual Execution Plan (SQL Server):
- Scans vs. seeks: Are filters and join keys using suitable indexes, or scanning large tables? A scan isn't automatically bad; it can be the cheapest plan when a query needs a large proportion of a table.
- Estimated vs. actual rows: Big gaps between estimated and actual row counts—especially after joins or unions—can point to stale statistics, correlated columns or skewed keys.
- Join and sort costs: Look at nested loops vs. hash/merge joins and check whether sorting is happening on large intermediate sets or spilling to disk.
- Rows read vs. rows returned: Is the database reading a huge amount of data to return only a small number of records?
- Index suitability: Are indexes aligned with the actual filtering, joining and ordering patterns?
Remember that EXPLAIN ANALYZE executes the query. Use representative data in a safe environment and take care with expensive queries.
The review lesson: AI can generate perfectly valid LINQ that is simultaneously inefficient and functionally unsafe.
3. Auditing the Tests: Reinvented Setups & False Confidence
When Claude Code writes both the implementation and the unit tests in the same pass, a green CI pipeline can give false confidence—the tests can share the same blind spots as the implementation.
One habit I catch constantly in manual review is test-setup reinvention. Even when our test suite already has shared mocks, test data builders, or faker factories, Claude Code can ignore them and hand-roll its own one-off object graphs and setups inside individual tests.
That leads to drift across the test suite. When domain rules or entity invariants evolve, bespoke test setups go stale or miss realistic defaults that our factories enforce.
Alongside reinvented test setups, I watch for several other testing traps:
- Happy-path mirror testing: Tests replay the exact input from the ticket while ignoring empty sets, one-to-many join duplication, null/missing related rows, or boundary timestamps.
- Over-mocking data access: Mocking abstractions so heavily that EF Core's SQL translation, joins, and unions are never tested against a real relational database.
- Weak assertions: Checking only that a list isn't empty or a method was called once, rather than asserting exact ordering, row counts under joins, and failure behaviour.
- Testing the implementation instead of the requirement: Tests are written around what the generated code does, rather than independently checking what the business requirement says it should do.
Example: A test that proves the wrong thing
Consider the order endpoint from the security example.
❌ A superficially useful test
[Fact]
public async Task GetOrder_ReturnsOrder_WhenAuthenticated()
{
var order = new Order
{
Id = Guid.NewGuid(),
AccountId = Guid.NewGuid(),
OrderNumber = "ORD-123"
};
_dbContext.Orders.Add(order);
await _dbContext.SaveChangesAsync();
var response = await _client.GetAsync(
$"/api/orders/{order.Id}");
response.StatusCode.Should()
.Be(HttpStatusCode.OK);
}
This test might pass against the insecure implementation. It establishes that an authenticated caller can retrieve an order, but it doesn't establish that the caller owns that order.
It doesn't even demonstrate that the account associated with the order matches the authenticated user's account.
✅ Test the security boundary
[Fact]
public async Task GetOrder_ReturnsNotFound_WhenOrderBelongsToAnotherAccount()
{
// Arrange
var accountA = await CreateAccountAsync();
var accountB = await CreateAccountAsync();
var order = await CreateOrderAsync(accountB.Id);
// Authenticate as account A
AuthenticateAs(accountA.Id);
// Act
var response = await _client.GetAsync(
$"/api/orders/{order.Id}");
// Assert
response.StatusCode.Should()
.Be(HttpStatusCode.NotFound);
}
The helper methods here are illustrative; the important part is that the test creates an order belonging to one account and authenticates as a different account.
I'd also add tests for the positive case, unauthenticated access and any other relevant authorization policies.
A high test count doesn't necessarily mean high test coverage of the requirements. A test suite can have hundreds of green tests and still fail to validate the behaviour that matters most.
The review lesson: Don't just check whether tests exist or pass. Ask what they actually prove, which scenarios they omit, and whether they independently validate the requirement.
4. Security: Authentication Doesn't Mean Authorization
This is one of the most important areas to scrutinise in AI-generated code.
AI can satisfy the functional requirements perfectly while introducing vulnerabilities that aren't immediately obvious during a normal PR review.
Things I particularly look for:
- Missing authorization checks: An endpoint checks whether someone is authenticated but doesn't check whether they're allowed to access the particular resource.
- IDOR vulnerabilities: A user can change an ID in an API request and access another customer's data.
- Overly permissive endpoints: New endpoints accidentally inherit broad access or don't enforce existing permission policies.
- SQL injection: Particularly where generated code introduces raw SQL or dynamically constructs queries.
- Sensitive information leakage: Logging tokens, personal information, connection strings or internal exception details.
- Unsafe file handling: Unvalidated filenames, upload paths or file types.
- Overly permissive configuration: Convenient development settings accidentally make their way into production.
Example: The endpoint has [Authorize], so is it safe?
❌ What the AI might generate
[Authorize]
[HttpGet("{orderId:guid}")]
public async Task<IActionResult> GetOrder(
Guid orderId,
CancellationToken ct)
{
var order = await _dbContext.Orders
.AsNoTracking()
.FirstOrDefaultAsync(
x => x.Id == orderId, ct);
if (order == null)
return NotFound();
return Ok(order);
}
This is clean, readable and uses familiar ASP.NET Core conventions.
It even has [Authorize].
But it only establishes that the caller is authenticated. It doesn't establish that the caller is allowed to access the requested order.
If this is a multi-tenant application, a user could potentially change the orderId in the URL and retrieve another customer's order.
✅ A more deliberate implementation
[Authorize]
[HttpGet("{orderId:guid}")]
public async Task<IActionResult> GetOrder(
Guid orderId,
CancellationToken ct)
{
var accountId = _currentUser.AccountId;
var order = await _dbContext.Orders
.AsNoTracking()
.Where(x => x.Id == orderId &&
x.AccountId == accountId)
.Select(x => new OrderDto(
x.Id,
x.OrderNumber,
x.Status,
x.Total))
.FirstOrDefaultAsync(ct);
if (order == null)
return NotFound();
return Ok(order);
}
This assumes the account context is securely derived from the authenticated principal and that account membership is the application's intended authorization model. More complex systems may require resource-based authorization policies.
What I'd test:
- User A can retrieve their own order.
- User A cannot retrieve User B's order.
- An unauthenticated user cannot retrieve an order.
- A user with access to multiple accounts can only access accounts they're authorised to use.
The second test is particularly important. A test that simply checks whether an authenticated user can retrieve an order doesn't prove the authorization model is correct.
The review lesson: Don't just check whether the endpoint is protected. Check whether the caller is entitled to the specific data or operation.
5. Business Logic & Data Integrity: The Happy Path Isn't the Whole Requirement
AI can produce technically excellent code that implements the wrong interpretation of a requirement.
It works from the ticket, the surrounding code and whatever context you provide. It doesn't necessarily understand all the unwritten business rules that have accumulated over years of development.
Examples I'd look for:
- Missing business rules: A ticket says a customer can cancel an order, but the implementation doesn't check whether the order has already been dispatched.
-
Incorrect state transitions: An entity moves from
PendingtoCompletedwithout enforcing the intermediate business states. - Boundary conditions: Discounts, tax calculations, financial rounding, date ranges and expiry dates.
- Incorrect assumptions about nulls: Treating a missing value as zero, an empty collection or a default state when those have different business meanings.
- Duplicate processing: An operation that should only happen once can be executed multiple times.
- Race conditions: Two simultaneous requests update the same entity and overwrite each other's changes.
Example: Inventory reservation and concurrency
Imagine two customers attempting to purchase the last item in stock.
❌ What the AI might generate
public async Task<bool> ReserveStockAsync(
Guid productId,
int quantity,
CancellationToken ct)
{
var product = await _dbContext.Products
.FirstOrDefaultAsync(
x => x.Id == productId, ct);
if (product == null || product.Stock < quantity)
return false;
product.Stock -= quantity;
await _dbContext.SaveChangesAsync(ct);
return true;
}
This looks perfectly reasonable:
- It checks whether the product exists.
- It checks whether sufficient stock is available.
- It deducts the requested quantity.
- It saves the changes.
And it will probably pass a straightforward unit test.
But consider two customers attempting to purchase the last available item simultaneously.
Both requests could read Stock = 1.
Both pass the stock check.
Both attempt to deduct one item.
Depending on the database and concurrency configuration, you could end up overselling inventory or losing an update.
✅ A more deliberate implementation
For a simple inventory reservation, a conditional database update can make the stock check and decrement atomic:
public async Task<bool> ReserveStockAsync(
Guid productId,
int quantity,
CancellationToken ct)
{
if (quantity <= 0)
throw new ArgumentOutOfRangeException(nameof(quantity));
var affectedRows = await _dbContext.Products
.Where(x => x.Id == productId &&
x.Stock >= quantity)
.ExecuteUpdateAsync(
setters => setters.SetProperty(
x => x.Stock,
x => x.Stock - quantity),
ct);
return affectedRows == 1;
}
ExecuteUpdateAsync is available in EF Core 7 and later. The database performs the conditional update as one atomic operation. Only one competing request can successfully reserve the final available item.
This is a simplified inventory example. A real reservation workflow may also need transactions, reservation expiry, order creation, and an outbox or another reliable mechanism for publishing events.
What I'd test:
- Reserving available stock succeeds.
- Reserving more stock than available fails.
- Zero and negative quantities are rejected.
- Two simultaneous requests cannot reserve the same final item.
- A failed reservation doesn't leave inventory in an inconsistent state.
Idempotency: What happens when the same request happens twice?
Another example is payment processing:
- A request arrives.
- Payment is processed.
- The application updates the order.
- The client times out before receiving the response.
- The client retries the request.
- The payment gets processed again.
The generated code might pass every unit test because those tests execute requests sequentially.
I'd want to see idempotency considered, appropriate database constraints and transaction handling where required.
The review lesson: AI tends to implement the sequence of operations described in a requirement. Engineers need to consider how those operations behave when the real world doesn't execute them one at a time.
6. Error Handling: Does It Fail Gracefully?
AI often writes the happy path very well. However, generated code can have exception handling that is too broad, too generic or simply missing.
Things to look for:
- Catching
Exceptionand swallowing it. - Returning success responses when an operation has partially failed.
- Losing the original exception when wrapping errors.
- Returning HTTP 200 with an error message in the response body.
- Missing cancellation token propagation.
- Retrying operations that aren't safe to retry.
- Failing to roll back transactions when multiple operations must succeed together.
For example:
try
{
await _orderService.ProcessAsync(orderId, ct);
return Ok();
}
catch (Exception)
{
return Ok("Something went wrong");
}
It compiles. It runs. It might even satisfy a simplistic test.
But it hides the failure from monitoring systems and tells the consumer that the request succeeded.
The review question: If something goes wrong halfway through this operation, does the system fail in a predictable and recoverable way?
7. Observability: Can We Actually Support This Code in Production?
AI-generated code often focuses on implementing functionality rather than considering what happens when that functionality needs to be diagnosed in production.
Look for:
- Missing structured logging.
- Missing correlation IDs across service boundaries.
- Logs that don't provide enough context to diagnose failures.
- Excessive logging that creates noise and cost.
- Missing metrics around expensive operations.
- Background jobs that fail without alerting anyone.
- External API calls without useful timing or failure visibility.
You don't necessarily need logging everywhere. You need the right information at the right points.
The review question: When this breaks at 2 AM, will the person investigating it have enough information to understand what happened?
8. Dependencies, Migrations & Backwards Compatibility
AI-generated code can introduce dependencies that look entirely legitimate but aren't necessarily the right packages for your application.
Things to check:
- Has it introduced a NuGet package when the existing framework already provides the functionality?
- Is the package maintained and trustworthy?
- Is it introducing a dependency with known vulnerabilities?
- Has it unnecessarily upgraded an existing dependency?
- Has it changed package versions or lockfiles without an obvious reason?
- Does it use APIs available in the version of .NET and EF Core the project actually targets?
Database migrations
Given the EF Core examples above, I'd pay particular attention to migrations.
AI can generate migrations that work perfectly on a clean development database but cause problems when applied to an existing production database.
Look for:
- Destructive column changes.
- Unexpected column defaults.
- Large table alterations that could lock production.
- Missing or inappropriate indexes.
- Changes that assume all existing records contain valid data.
- Application deployments that aren't compatible with the previous database schema.
Also consider rolling deployments, where old and new application versions might run simultaneously.
The review question: Can this migration safely run against real production data without breaking existing application instances?
API contracts
AI might make a seemingly harmless change to a DTO, response structure or enum that breaks consumers elsewhere.
Examples include:
- Changing a nullable property to non-nullable.
- Renaming a JSON property.
- Changing enum values.
- Altering HTTP status codes.
- Changing pagination behaviour.
- Returning an empty collection instead of
null, or vice versa.
The review question: Who else consumes this contract, and could this change break them?
9. AI Reviewing AI: The Illusion of Independent Verification
One part of my workflow is to have Claude Code perform an automated review of the generated pull request before I carry out my own manual review.
This is useful. It catches issues, highlights potential improvements and provides another opportunity to challenge the implementation.
However, there's an important distinction between having AI review code and having an independent engineering assessment.
The reviewing agent can have the same blind spots as the coding agent.
It might:
- Accept the same incorrect interpretation of a business requirement.
- Miss an authorization vulnerability because the endpoint already has an
[Authorize]attribute. - Approve tests that validate the implementation rather than the expected behaviour.
- Overlook an architectural decision that conflicts with an undocumented system constraint.
- Focus on naming, formatting and minor code improvements while missing a significant functional problem.
Even when the reviewer is given the original ticket, repository conventions, CLAUDE.md and the relevant codebase context, it doesn't automatically understand every business decision or operational constraint.
I don't see AI review as a replacement for manual review. I see it as another validation layer.
AI can challenge AI, but the engineer remains accountable for the decision to merge.
10. My AI-Generated Code Review Checklist
Rather than simply asking Claude Code to "review this PR", I separate mechanical checks from human engineering judgement.
Here's the checklist I use as a starting point when reviewing AI-generated changes:
| Area | Questions to ask |
|---|---|
| Requirements | Does the implementation actually satisfy the acceptance criteria? |
| Architecture | Does it follow existing patterns and respect module boundaries? |
| Complexity | Has it introduced unnecessary abstractions or procedural sprawl? |
| Security | Are authentication, authorisation and input validation handled correctly? |
| Business logic | Are edge cases, state transitions and business rules respected? |
| Database | Is the generated SQL efficient? Have execution plans been inspected where appropriate? |
| Data integrity | Are transactions, concurrency and duplicate operations handled safely? |
| Testing | Are existing mocks, builders and factories reused? Do tests validate requirements rather than implementation assumptions? |
| Dependencies | Are new packages necessary, trustworthy and compatible? |
| Error handling | Are failures handled properly without hiding exceptions? |
| Observability | Can failures be diagnosed in production? |
| Compatibility | Are API contracts and database migrations backwards compatible? |
| Scope | Does every changed file have a reason to be in this PR? |
| Maintainability | Can another engineer understand and maintain this code? |
I also like to ask one final question before approving a PR:
If I hadn't seen the ticket or the AI conversation, would this code still make sense to me, and could I confidently explain why it is correct?
If I can't answer that, I probably haven't reviewed it thoroughly enough.
Final Thoughts
Stepping away from typing code line by line hasn't made software engineering easier—it has concentrated the job around the hardest parts: understanding stakeholder problems, protecting system architecture, verifying database performance, enforcing security, and demanding honest, meaningful tests.
AI coding agents are getting exceptionally good at producing code that looks like it was written by an experienced developer.
They understand conventions, follow existing patterns, generate tests, use established libraries and can navigate large codebases remarkably well.
But looking like experienced engineering isn't the same as exercising engineering judgement.
Even with detailed instructions, established company standards, repository documentation, automated checks and multiple review stages, there are still decisions that require someone who understands the system, the business and the consequences of getting things wrong.
The danger isn't necessarily that AI generates obviously bad code. It's that it generates code that is convincing enough that we stop questioning it.
That's why I don't think the future of software engineering is simply about getting AI to write more code, faster.
It's about developing the judgement to know when that code is right, when it's wrong, and when something that looks perfectly reasonable is hiding a much bigger problem.
The 97% is impressive. But the 3% is still our responsibility.
Where have AI-generated joins, unions, security oversights, concurrency issues, reinvented test setups, or missing design patterns surprised you most during PR review?
Top comments (0)