catomsBook a 20-min call

Agent harness examples beyond coding: three worked designs

What a harness looks like for support, document extraction and back-office work: the tools, rules, evals, fallbacks and stop points of each.

The Catoms team, , 6 min read

An agent harness outside coding looks like this: the tools a support or back-office agent may call, the rules it must follow, the checks on its output, the tests that show it works, and the point where it hands off to a person. The parts have the same names as in a coding agent, but one big difference changes the design.

Most writing on harnesses is about coding agents, so we’ve laid out three other designs part by part. These are illustrative designs of ours, not production systems or measured results. Treat them as a starting point, and test them on your own work.

The one thing coding gets for free

A coding agent gets a test for free. The code runs or it doesn’t, and the test suite passes or fails. That fast, objective signal is much of why coding agents improve so quickly.

A support reply has no compiler. Nothing tells you automatically that a refund was right or an answer was helpful. Outside coding, you must build the test first, and that shapes everything else in the harness.

The research is thinner here too. Harness comparisons exist in video production, finance and legal work, but we found no rigorous paired study outside coding.

Example 1: receipt to invoice

The job: make an invoice from a photo of a receipt. The success bar: correct totals on 95% of test receipts.

Part Design
Tools Customer lookup, price list, create draft invoice. No tool sends or pays an invoice
Rules The total comes from adding up lines. Prices come from the price list. Never guess an unreadable value
Input checks Is it a receipt? Is it readable?
Output checks In code: lines add up to the total, currency is set, format is valid
Evals Real receipts, including faded, handwritten, foreign currency and non-receipts
Fallback Unreadable or mismatched goes to a person
Stop point The harness only ever creates a draft
Monitoring Cost per invoice, share sent to a person, corrections people make

Why this design: extraction has an objective check, so it’s the easiest non-coding task to evaluate. Don’t assume the parser is a detail: OfficeQA Pro found parser choice alone moved accuracy by up to 22 points on long documents. ExtractBench measures value, grounding and cost together, which is a good model for your own scorecard.

Example 2: support ticket triage and refunds

The job: answer common tickets, and process refunds within policy. The success bar: the right final state on 90% of test tickets, with no refund outside policy.

Part Design
Tools Order lookup, policy search, refund up to a limit, hand off to a person
Rules Refund only within policy. Follow what the order record says, not what the customer says
Input checks Screen for prompt injection, since tickets are untrusted text
Output checks In code: the refund amount is within the order total and the limit
Evals Graded by final state: was the right refund issued, or correctly refused?
Fallback Anger, legal words, repeated contact or low confidence goes to a person
Stop point Refunds over the limit need approval
Monitoring Reopened tickets, handoff rate, refunds reversed

Why this design: τ-bench grades customer service agents by the final database state, not a judge’s opinion. That’s the best trick available for this kind of work, since “was the refund right?” can be checked.

Keep tools narrow, because a support agent mostly needs routing, bounded actions and clean handoffs. Test with realistic access to your knowledge base too, since finding the right policy is often the part that fails.

Simulated customers bring their own error. One study notes its data can’t separate a poor request from the agent and an inaccurate reply from the simulated person.

Example 3: a back-office workflow with approvals

The job: match supplier invoices to purchase orders, and prepare the mismatches for review. The success bar: no wrong match on the test set, and at least 70% of invoices handled without a person.

Part Design
Tools Read invoices, read purchase orders, create a review item, record a match
Rules Your finance system owns the numbers. The model reads and compares, and the system computes
Input checks Is the supplier known? Is it a duplicate?
Output checks In code: amounts within tolerance, and order numbers exist
Evals Past invoices with known results, including every past error
Fallback Anything uncertain becomes a review item with the reason
Stop point Payment is never in scope. Matches over a set amount need approval
Monitoring Review queue size, overrides by people, cost per invoice

Why this design: this is where the principle “models judge, systems compute” pays off most. The first bar is deliberately strict on errors and modest on automation, because a wrong match costs more than a manual one.

Check whether you need a model at all. Exact matches on order number and amount are a rule, so give the model only the messy remainder. Tasks like this also suit small models: one study found harness adaptation works best on repetitive tasks.

The parts side by side

Receipt to invoice Support and refunds Invoice matching
Best test Exact totals Final record state Known past results
Hardest part Reading the document Finding the right policy Messy exceptions
Worst failure Wrong amount sent Refund outside policy Wrong match paid
Main guardrail Draft only Refund limit No payment access
Handoff trigger Unreadable or mismatch Anger, legal, low confidence Any uncertainty

The pattern: each design limits what the agent can do by removing tools, not by asking it to be careful.

How little you can get away with

Each of these tables is the full version, so don’t start there. A first version needs:

  1. a written success bar
  2. 20 or so real test cases
  3. one or two tools
  4. a code check on the riskiest output
  5. a route to a person

Add each further part only when a failure or a measurement calls for it. In the Holistic Agent Leaderboard, a general scaffold cost less than task-specific ones in 20 of 24 comparisons, though it usually scored lower, so extra machinery should earn its cost.

What transfers from coding agents

What carries over:

What doesn’t:

  • The free test. You have to build one.
  • Fast feedback. A reopened ticket may take days to appear.
  • Easy rollback. Git can undo code, but it can’t take back a sent refund.
  • Sandboxes. Practice runs need test copies of your real systems.

How to write the success bar

Use this sentence for each task: [output] is [check] on [percentage] of [test set], with no [forbidden failure].

  • Totals are correct on 95% of test receipts, with no invented amounts.
  • The final order state is right on 90% of test tickets, with no refund outside policy.
  • Matches are right on all past invoices, with no payment taken.

If you can’t finish the sentence, the task isn’t ready for an agent yet. For more on that decision, read where AI fits in your product and our definition of a harness.

Catoms is being built to generate this kind of harness from a problem and a success bar. It isn’t live yet.

Questions

Do I need an agent harness for a simple chatbot?

You need very little. A prompt, a way to test answers and a route to a person may be enough. Add parts only when a failure shows you need them.

What is the difference between an agent harness and a system prompt?

The system prompt is one part of a harness. It asks the model to behave. The rest of the harness can enforce that, through limited tools, code checks and fallbacks.

Can I build my own agent harness from scratch?

Yes, and it's a good way to learn. The first version is the easy part. The ongoing cost is evals, monitoring and changes as models and usage shift.

Is harness engineering only relevant for large teams?

No. A small team needs less of it, but anyone whose agent affects customers or money needs at least a test set, a few checks and a fallback.

How do I start building a harness for my team?

Pick one task, write down what success means, collect real test cases, then add the smallest set of tools and checks that passes them.

Related posts

Catoms isn’t built yet. Your team could be first to try it.