Software engineering has a rich vocabulary for design decisions. We use it when talking with engineers. Now we should also use it when talking with agents.

I stumbled upon Vineer's X post:

"I have been collecting the words that turn AI slop into production code".

And then he gives some simple examples. In this post I've come up with some of my own.

Compare two instructions:

"Make this easier to test."

Better:

"Inject the LLM client and the repositories through the constructor, so we can test the classification logic without network access."

That is the ClassificationService in our Agentic AI course: a test hands it fakes. Same intent, far less room for interpretation.

Or:

"Make the sync reliable."

Better:

"Make the sync idempotent, so retries don't create duplicate records."

One word adds a whole lot of context here, turning a retry into a normal event, not an edge case.

Or:

"Handle the invoice statuses."

Better:

"Model the lifecycle as a state machine and enforce valid transitions between states ..."

In an invoicing solution I built, that became a small dictionary where final is a terminal state, because a final invoice is a tax record. This made valid transitions easier to reason about and enforce.

One more:

"Let me test this without the real time tracker."

Better:

"Put the time tracker behind a gateway interface with an API and a CSV implementation."

In the same invoicing solution, this was another key architectural decision: I run the whole flow locally against CSV files and test the live integration separately.

Each of these terms compresses years of other people's mistakes into a few words. Think of the concepts we encounter in the software engineering classics:

  • Information hiding reminds us that changing a module's internals shouldn't break the code that uses it.
  • Domain invariants remind us that certain business rules must hold no matter how the data is changed.
  • Least privilege reminds us that giving a component more permissions than it needs increases the damage a bug can cause.

It works in the other direction too. When an agent hands you a working implementation, you can ask whether it leaks implementation details, breaks a domain invariant or couples business logic to infrastructure.

Recently I asked an agent whether a GitHub Action was idempotent. It turned out it wasn't, because if the commit went through and opening the issue failed, a rerun would skip the issue for good. A simple "Does it work?" might never have uncovered that failure mode.

Not every problem calls for a design pattern. A pattern that solves a problem in one codebase can introduce unnecessary complexity in another. Sometimes the best instruction is to replace an unnecessary abstraction with a simple function.

Knowing when a pattern earns its place is the actual engineering. It's also the reason why we should keep studying software engineering, even when LLMs give us instant answers.