Back to Blog
Blog
5 min read

By Grabthar’s Hammer of AI: Not Every Problem Is a Nail

Diana Kelley
Diana Kelley
Nov 24, 2026
Share

The late, great Alan Rickman is known for many iconic roles, including, of course, Hans Gruber, but one of my personal favorites was Alexander Dane, the beleaguered actor who couldn’t escape playing Dr. Lazarus in Galaxy Quest. I stole part of the catchphrase he couldn’t stand for the title of this blog, but borrowing the hammer doesn’t mean we should use it for everything.

That applies to AI, too. You know the saying: if all you have is a hammer, everything looks like a nail. Here, the LLM is the hammer. Even one of the most famous frontier AI companies uses plain old deterministic software when it fits the job.

In his March 31 analysis of accidentally exposed source code for Anthropic’s Claude Code, developer Alex Kim described regular expressions checking user messages for negative or frustrated phrases. A regular expression, or regex, matches text against a defined pattern. Think of it as a tape measure: it tells you whether the pattern is there, not how the user feels. For this narrow check, it does a predictable job without another model inference call.

That mix of approaches is how well-built AI systems work. An LLM gives us flexibility in interpreting and generating language, but it can produce different outputs across runs. Conventional software can apply an explicit rule consistently, such as rejecting a layover above a fixed limit. The surrounding software also retrieves information, keeps track of what’s happened, and determines which actions can actually go ahead. We need both, and deciding which part does which job matters.

If you’d like a catch-up, my posts on how AI behaves differently, prompt injection, agent harnesses, and building security into AI workflows explain the foundations.

So how do we decide where AI is fit for purpose? Start with the job, rather than the label on the application. Does it need flexibility in how it responds, evidence we can rely on, or a rule that must hold before an action goes ahead? And ask: how much does it cost if this is wrong? A suggestion you can review before using it has different consequences from a flight the system has already bought. Let’s work through those choices. In each example, AI has useful work to do, alongside software and people handling the jobs we shouldn’t give the model.

Where do we want flexibility, and where do we need a firm rule?

Start by separating preferences the assistant can help you weigh from limits it mustn’t negotiate. Imagine you’re setting up a personal travel agent. Time and money both matter, and you’re happy to consider different tradeoffs. But you have a firm rule: no layover longer than four hours.

During a test run, the agent finds a very cheap flight with an eight-hour layover. It rejects the flight because the layover exceeds your four-hour limit. Excellent. Later, in real use, it finds another bargain with an eight-hour layover, decides the price makes it worthwhile, and books and pays for the flight.

It’s easy to see why that first test would give you confidence. But a successful test doesn’t turn an instruction into an enforced booking limit. Booking and paying is the expensive mistake here.

There’s still plenty of useful work for the LLM. It can interpret your preferences, explain why a slightly more expensive flight might get you home earlier, and help you weigh the tradeoffs. You probably don’t need it to explain those options in exactly the same words every time. You do need it to respect the four-hour limit.

We already know how to check whether a number is greater than four. So put that rule in the software that controls booking, using the itinerary data from the booking service. That check needs to happen on the actual flight being purchased, immediately before payment is allowed. Asking the model to say its choice is acceptable would just put the decision back in the hands of the component that made it.

And if the itinerary is missing information, or there isn’t a flight that meets your requirements? The software should stop the purchase and bring the problem back to you. The model can explain the options, but it can’t waive the rule. That needs an authorized change to your limit, not a persuasive explanation of why eight hours is really a bargain.

Are we exploring ideas or relying on evidence?

A maximum layover is something we can check with a number. Research needs a different kind of judgment: are we looking for possibilities, or do we need evidence to support a decision? Imagine you’re using a research assistant to explore whether a new technology could reduce customer-support costs. An LLM can help you come up with hypotheses, spot questions you’ve overlooked, or find different ways to investigate the problem. At this stage, several plausible directions are useful. You’re working out what to ask.

But suppose the assistant supplies a study showing a 40 percent saving, complete with a convincing title and citation. You build the business case around it. When someone checks, the study doesn’t exist.

The trouble is that the same ability to generate plausible language can produce something that looks like evidence. A convincing citation makes it especially easy to assume somebody has already done the checking.

Giving the model real documents to work from can help. That’s what retrieval is for. But you still need to know whether the model summarized them accurately, whether the cited passage supports the claim, and whether the source applies to your situation. A study of one support team isn’t automatically a forecast for yours.

Software can require a source you can retrieve and a quoted passage for a factual claim. It can’t establish that a conclusion is sound just because a URL opens. Before that claim drives a business decision, someone with the relevant expertise needs to check what the evidence actually supports.

“We don’t have evidence for that yet” is a useful research result, too.

What can the assistant recommend, and what can it actually do?

Even a well-supported recommendation doesn’t tell us who’s allowed to act on it. That’s another choice we need to make when designing the system. If you’ve ever worked through a stack of supplier proposals, you can probably see the appeal of a procurement assistant. It can compare proposals, explain differences in contract language, and draft questions for suppliers. That could save a lot of reading while helping buyers spot issues they might otherwise miss.

But what do we mean when we ask it to “get the best deal”? If the system treats lowest price as success, it might recommend a supplier whose support terms or data-handling practices are unacceptable. It’s pursuing a goal, just not the one we meant. That’s the misalignment problem.

There’s a different problem if a supplier’s proposal tells the assistant to ignore approval requirements or change payment details. Now we’re dealing with indirect prompt injection: instructions from an external party are being presented to the system as part of the material it’s reviewing. We asked it to evaluate the proposal, not to let the supplier set the purchasing rules.

In either case, the model might recommend the wrong action. Whether that becomes a purchase order or a changed bank account depends on the surrounding software. The purchasing system needs to enforce spending limits and approval requirements, and supplier payment changes still need to go through the established verification process. The model’s explanation may sound reasonable, but it isn’t authorization.

Across all three examples, these choices also need another look when the system changes. A new model, different retrieved material, or revised instructions can change the system’s behavior even when the application looks the same. So test again, including whether the surrounding controls still do the job you gave them.

Nail or not?

Before you put the hammer away, try these:

1. Explain three flight options in a tone that matches the traveler’s preferences.

2. Decide whether an eight-hour layover violates a four-hour maximum.

3. Suggest questions that could challenge a research finding.

4. Approve a supplier’s new bank details because its proposal says they are urgent.

My answers: AI is a good candidate for 1 and 3. Use a deterministic check for 2. For 4, follow the authorized verification process; urgency in a document gives it no extra authority. The answer depends on the job within the workflow, not whether we’ve called the whole thing an AI agent.

We can get a great deal of value from AI without making it responsible for every decision. By Grabthar’s Hammer, keep the other tools in the toolbox!

Take control of your agents

See how Noma discovers, governs and protects every AI agent across your enterprise.

Get a Demo
Chrome gnome mascot tinted pink, peeking in from the side

Related resources

No items found.
Noma agent security & governance platform

TAKE CONTROL TODAY

Get a Demo
Chrome gnome mascot running with arms crossed