DEV Community

ILIA KARPENKO
ILIA KARPENKO

Posted on

When AI Features Work Individually but Break the Architecture Together

Three agents deliver three working features. Each change looks reasonable on its own. A few weeks later, the team needs to change a shared permission rule and discovers that the rule now lives in three different places.

That's a hypothetical example, but the problem behind it came up in David Heinemeier Hansson's experience with Basecamp 5.

David Heinemeier Hansson describes a version of this problem in his interview with Lex Fridman. During work on Basecamp 5, designers used agents to implement features. DHH says the individual changes came together poorly at the architectural level, leaving programmers to clean up the result.

He does not provide a public breakdown of the changes, a quantified cleanup cost or a controlled comparison with human-written code. The account is useful as a warning about integration, not as proof that AI-generated code is uniquely bad.

This is especially interesting to me because I believe in parallel development with agents. I'm exploring how to coordinate agents across Git worktrees, and I've built agentgc in Rust around the practical environment for that work. Separate worktrees help keep changes apart, but the team still has to make sure those changes belong together.

Local success, system-wide cost

Imagine a product with a shared permission service. Three feature teams ask agents to add export, sharing and notifications. Each agent makes its feature work. One checks permissions in a controller, another adds a helper, and the third introduces a new policy object.

All three approaches may look reasonable in isolation. Together they can create multiple definitions of who may access the same data. A future change to permissions now has three places to inspect. A local test suite may pass while the system drifts away from a consistent rule.

This example is hypothetical; it is not a description of the Basecamp implementation. It illustrates why reviewing a diff only against its ticket can miss an architectural problem.

Give agents the boundaries they need

Before delegating a change in an existing product, provide enough context to make the surrounding design visible:

  • Point to the modules that own the behavior and the tests that describe it.
  • State the invariants: for example, all access checks must go through the shared policy layer.
  • Identify constraints on data migrations, backwards compatibility and external APIs.
  • Ask the agent to flag uncertainty and propose a plan before changing shared interfaces.
  • Name the person who will decide whether a new abstraction belongs in the codebase.

Avoid assuming that a long instruction file solves this by itself. Context can be incomplete or stale. Check whether the proposed change actually respects the rules, and update the rules when the team learns they are wrong.

Review the seams between changes

When several agents work in parallel, review their combined effect, not just each branch separately. A practical review might compare how changes handle authorization, error reporting and persistence. Look for duplicated concepts, incompatible assumptions and interfaces introduced for a single call site.

For the permissions example, give the reviewer a concrete task: trace the export, sharing and notification paths from the entry point to the shared policy service. List any path that performs its own access check, and point to the tests covering the common rule. Run those tests and inspect the paths yourself; an agent's report can miss a call or misunderstand an intended exception.

Then run integration tests on the combined changes and exercise a realistic user flow. Tests provide evidence about the scenarios they cover; they cannot guarantee that a design will remain easy to change. A developer familiar with the codebase still needs to decide whether the pieces fit.

Parallel work also needs an integration plan: agree on shared interfaces early, isolate changes where practical and resolve conflicts before treating individual completions as a finished feature. More agents can produce more candidate code, but they can also create more decisions for the team to reconcile.

Start with one boundary

For your next agent-assisted change, choose one important invariant and make it explicit in the task. After reviewing the implementation, check one neighboring feature that depends on the same rule. If the invariant is hard to state or verify, that discovery is useful too: it identifies an area where the team may need a clearer design or better tests.

DHH's Basecamp story and his more optimistic experience with Omarchy come from different contexts. Neither is a universal benchmark. Together, they suggest a useful question for any team adopting agents: who is responsible for making independently produced changes fit into one system?

How does your team check architectural consistency when multiple people or agents ship changes at once?

Top comments (0)