3 December 2026 · 8 min read · Download as PDF

Which model should your Strands agent use? 28 runs fixing a broken Kubernetes app

Seven models, one Strands harness agent, one broken Kubernetes app. Almost every model fixed it; what set them apart was how many changes they made on the way, a 50-times spread in tokens, and some odd failures. When upgrading the model pays, and when it doesn't.

Part 2 of 2 · Strands Harness

Cover: Which model should your Strands agent use? 28 runs fixing a broken Kubernetes app

In part 1, a Strands harness agent troubleshot a broken Kubernetes app, and three models gave three confident wrong answers before a few words of instruction set it right. That raised the obvious question: should you just use a bigger model? So we ran a bench. Seven models, the same agent, the same broken app, 28 runs, each scored by one test at the end: does the Service answer? Almost every model got there. What separated them was everything else: how many changes each one made to the cluster on the way, how many tokens it spent, how long it took, and the odd ways some of them failed.

TL;DR

  • Once the agent can apply a fix and look at the result, nearly every model fixes it. 25 of 28 runs ended with a working Service. The weakest model got there by trial and error: up to five changes to the cluster, and eight and a half minutes.
  • The measure that matters is "first try": fixed with one kubectl_apply, one change to approve (it can carry both objects). Gemini 3.8 Flash did that 4 times out of 4; DeepSeek V4 Flash and V4 Pro 3 of 4; Amazon Nova 2 Lite never did.
  • The bigger model didn't buy much here. DeepSeek V4 Pro matched V4 Flash: 4 of 4 fixed, 3 of 4 first try.
  • Tokens varied by 50 times between runs that all ended the same way: from 30,000 input tokens to 1.7 million.
  • Part 1's prove-it instruction didn't help once the agent could apply and check: 9 of 14 first-try fixes without it, 5 of 14 with it, a small sample but a clear hint.
  • Odd failures: a run that stopped without changing anything, a 10-minute timeout, and an approval prompt for a harness tool we thought we'd switched off.

The bench

Each run got a new namespace with part 1's broken app: two nginx pods with a readiness probe on the wrong port and a path nginx doesn't serve, behind a Service pointing at the wrong port. Pods Running, 0/1 ready, nothing answering. The agent was part 1's, unchanged:

  • the Strands harness 0.6.0 with its built-in tools, sessions and memory switched off;
  • a read-only kubectl tool, and a kubectl_apply tool behind a human approval gate;
  • the prompt "The shop-api Service isn't answering. Fix it.";
  • two sets of instructions: plain (find every root cause, apply the fix, check the Service has ready endpoints) and prove (the same, plus part 1's recipe for testing a pod's port and path before proposing anything).

The approval gate was answered "yes" by a script that logged every prompt, so each kubectl_apply below is one change a person would have had to approve. After the run, a pod in the namespace asked the Service for its page: 200 means fixed. That test only says the app works; it doesn't score what else a run changed, so we also counted the changes. One kubectl_apply can carry several objects, so a first-try fix here is one approval, not one edited field. Each model ran four times, twice with each instruction, with a 10-minute limit. Three models ran on Amazon Bedrock and four on their makers' own APIs; Claude wasn't available on our account, so it isn't in the table.

The results

Model

Fixed

First try

Changes applied, per run

Input tokens

Output tokens

Time

Amazon Nova 2 Lite (Bedrock)

3/4

0/4

2, 5, 3 (not fixed), 2

35k–54k

111k–185k

6.5–8.5 min

gpt-oss-120b (Bedrock)

3/4

1/4

1, none, 2, 3

48k–89k

2k–3k

22–38 s

MiniMax M2 (Bedrock)

4/4

2/4

1, 1, 3, 6

30k–221k

3k–6k

23–92 s

DeepSeek V4 Flash

4/4

3/4

1, 1, 1, 2

65k–1.15M

4k–29k

32 s–3.9 min

Gemini 3.8 Flash

4/4

4/4

1, 1, 1, 1

168k–689k

5k–14k

1.4–3.9 min

MiniMax M3.1 Flash

3/4

1/4

1, 2, 2, timed out

340k–1.68M

27k–47k

3–8.5 min, one over 10

DeepSeek V4 Pro

4/4

3/4

1, 2, 1, 1

69k–625k

3k–26k

1.1–4.5 min

Four runs per model on one fault is a small sample, so read the table as a picture of how models behave, not a ranking to quote. It still tells a clear story.

What went wrong, and why

Fixing by trial and error

Amazon Nova 2 Lite fixed the app three times, but never with one change. It applied a partial fix, looked, applied another, and in one run made five changes before the Service answered. With an approval gate, that's five times you are asked to approve a change to your cluster, each one a guess. MiniMax M2 did the same in one run, with six. A model that is right in the end is not the same as a model you'd want working on production.

A small model isn't always a fast or cheap one

Nova 2 Lite read few tokens (35,000 to 54,000 a run, the narrowest range in the table), yet took 6.5 to 8.5 minutes a run and wrote 111,000 to 185,000 output tokens, several times more than any other model. That was every run, not a one-off: it is how this model works through a task. Output tokens usually cost more than input tokens, so check what a "lite" model writes, not just what it reads, before choosing it for cost.

Stopping without doing anything

In one run, gpt-oss-120b investigated, explained the fault, and ended without ever calling kubectl_apply. In part 1 it did something similar, writing out the tool call as text instead of making it. Neither harms the cluster, since nothing changes, but an agent that sometimes doesn't act needs a check on its result, and a person who notices.

Reading everything, many times

The runs that cost most weren't wrong, just thorough. MiniMax M3.1 Flash made 114 kubectl calls and read 1.7 million input tokens in one run; in another it was still going after 10 minutes. DeepSeek V4 Flash spent 1.15 million in one run and 65,000 in another, on the same task. Every call sends the whole conversation so far back to the model, so a long investigation costs more with every step. The harness's context management helps (it sets bulky output aside), but it can't stop a model from asking the same question again.

An approval prompt we didn't expect

In one Gemini run, the gate asked to approve manage_background_task. That's the harness's own tool for running work in the background. It's a separate option, background_tasks, on by default, and builtin_tools=[] doesn't turn it off. To get closer to only the tools you gave it, switch that off too (the context manager's retrieve_context stays, and is harmless: it reads back the agent's own earlier output):

Shell
agent = create_harness(    model=model,    tools=[kubectl, kubectl_apply],    builtin_tools=[],    background_tasks=False,   # no background work either    session=False,    memory=False,    interventions=HumanInTheLoop(allowed_tools=["kubectl", "retrieve_context"]),)

The gate did its job: it asked about a tool nobody had allowed, instead of letting it run unseen (our script said yes; a person could have said no). That's the reason to gate by an allow list rather than a block list.

Prove it before, or check it after

Part 1's agent could only read, and telling it to test its theory through the API server's pod proxy turned wrong answers into right ones. With an apply tool, the same instruction didn't help: 9 of 14 first-try fixes without it, 5 of 14 with it. The drop came mostly from the MiniMax models and gpt-oss-120b; DeepSeek V4 Pro did slightly better with it, and Gemini and Nova were the same either way, so read it as a hint, not a law. Once the agent can apply a change and check the pods and endpoints, that check already tells it whether the fix took, and the extra testing beforehand added steps, tokens and, in several runs, extra changes. The lesson isn't that checking is bad. It's that an agent needs a clear way to know it's right, suited to what it's allowed to do:

  • A read-only agent that hands you a fix: make it prove the fix first, because you're the one who applies it.
  • An agent that applies changes: make it check the result against the real goal (our instructions said "ready endpoints"; a request to the Service, as our scoring used, is closer still), and keep a person approving each change.

So, should you upgrade the model?

Upgrade when each mistake is expensive: when a wrong answer goes to a person who'll act on it, or when every extra change is a production change someone has to approve. That's where first-try reliability matters, and where the most reliable model in our table (Gemini 3.8 Flash, 4 of 4 first try) spent 168,000 to 689,000 input tokens a run to get there; whether that's worth it depends on your prices and on what a wrong change costs you. A bigger model in the same family isn't automatically that: DeepSeek V4 Pro did no better than V4 Flash here.

Don't upgrade just to get the task done. With a way to check its work and a gate on changes, even a small model got there in most runs. And whichever model you choose, measure it on your own task, the way we did here: the same agent, a broken copy of the real thing, a test at the end, and a count of changes and tokens. The harness makes that cheap, because the model is one argument.

Common questions

Which model is best for a Strands agent?

There's no single answer, and our bench was one task with four runs per model. On it, Gemini 3.8 Flash fixed the fault with one change every time, DeepSeek V4 Flash and V4 Pro three times out of four, and Amazon Nova 2 Lite never first time. Test the models you can use on a task like yours.

Why isn't Claude in the table?

The Strands harness defaults to Claude Opus 5.5 on Amazon Bedrock, but Claude isn't enabled on the AWS account we used. The bench script takes any model, so you can add it to your own run.

How do I count tokens per run?

Every call returns a result with metrics: result.metrics.get_summary()["accumulated_usage"] gives input and output tokens, and tool_usage how many times each tool ran. Price input and output separately, at your provider's rates per million tokens (cached input is often cheaper).

Is a human approval gate enough to make this safe?

It stops changes you don't approve, but it can't tell you whether a change is right. Pair it with narrow tools, permissions on the cluster that match them, and a check on the result.

Keep going

This is part 2 of the Strands Harness series. Part 1 builds the agent step by step, read-only first, then with the approval gate. The free Amazon Bedrock Deep Dive covers your first Strands agent and models and model access on Bedrock.

More from the blog