An agent harness is software that turns an AI model into a working agent. The model supplies reasoning for each step of a job. The harness uses that reasoning to coordinate steps, provide tools and context, review auditor feedback, and decide when a person steps in. AppZen’s agent harness combines orchestration, an intelligent router, and guardrails to choose the best model or method for each finance task while remaining within your controls.
Key takeaways
- An agent harness gives an AI model the tools, context, workflow controls, and checks it needs to complete a multi-step finance job, such as auditing expenses or processing an invoice.
- Our harness assigns individual tasks to a finance-specialized model, frontier model, business rule, or validation. When a task needs human judgment, the harness hands it to a person.
- For finance teams, the value is better task performance, control over automation, and a record of how decisions were made.
Why a model alone cannot run a finance workflow
Consider an expense report with a hotel bill, a meal receipt, and a possible duplicate charge. A capable model reads all three documents and proposes an answer for each charge. Completing the audit also means finding the applicable policy, comparing transactions, checking the supporting evidence, and deciding which exceptions need an auditor.
Those steps need more than a well-written prompt. The agent needs software that runs the steps in order, passes each result to the next step, connects to the right systems, and blocks any action outside the agent’s limits.
A product that relies on a single model also inherits that model’s weaknesses. The model that scores best on one audit control does not always score best on the next. Using a large, general-purpose model for every step can add expense without improving every decision. Tying the workflow to one provider also makes changes in that provider’s pricing, availability, and model lineup harder to absorb.
A harness solves those problems by choosing the best model or method separately for each task.
What does an agent harness do?
Think of the model as an analyst and the harness as the team lead who directs that analyst. The team lead assigns the analyst’s work, grants access to the records the job requires, decides which work needs a second review, and chooses the next step when the evidence is incomplete.
A harness is software that does the same job. It maintains context and records agent actions as transactions pass through each step of the workflow. The harness also supplies tools to retrieve information, take permitted actions, and optimize the process based on human feedback.
That makes harness design central to an agentic product. The people who build that product must design the harness as carefully as they choose the model. As models continue to improve, each agent still needs a harness to keep work consistent with the customer’s procedures, permissions, and risk tolerance.
How does the AppZen agent harness work?
Our agent harness continuously learns from the people who work with each AppZen AI Agent. For example, when you approve an expense in the workflow, the harness records that decision and uses it to refine how the AI Agent applies your standard operating procedures (SOPs).
The harness coordinates finance work through several connected components. Orchestration runs job steps in order, the intelligent router assigns each step to a model or method, and guardrails set the conditions under which an AppZen Agent may act without a person. Those components draw on finance-specialized models, each customer’s policy settings, and each case’s context.
Orchestration keeps the work moving
Orchestration breaks a job into steps and runs them in order. In an expense audit, for example, orchestration gathers receipt data, applies the relevant controls, checks related transactions, and passes the evidence it finds to the next step.
When an audit touches several systems or pauses for a person’s review, our Agent must know which checks it has finished and which questions remain open. The harness keeps that record, and orchestration checks it to choose the next step.
Context for each finance task
A policy decision depends on more than understanding the words on a receipt. The same client dinner may be an acceptable expense at one company and an exception at another. Each company sets its own expense categories, documentation requirements, spending thresholds, and risk tolerance. Our Agent must apply that company’s settings and recall what it has already found on the same report.
We trained ZenLM Plus, our family of finance-specialized language models, on financial documents, policy decisions, and the outcomes of invoice processing and expense audits. That training teaches the model how users make finance decisions in general. During each task, the harness supplies context, meaning this customer’s policy settings and the transaction evidence for the report or invoice.
The harness records where the workflow stands and everything the AppZen Agent has already seen on the case, including the receipts it read, the transactions it compared, any auditor feedback, and the task history of each check. The Agent uses this context to inform its policy decisions.
The intelligent router chooses a method for each task
The intelligent router assigns the best model to a task based on a balance of accuracy and cost, but the options extend beyond only language models. For example, a business rule may answer a straightforward policy question, such as whether a meal stayed under the per-diem limit. Or the router may hand off work to a person because it needs real human judgment. Our ZenLM Plus models have different strengths than frontier models, and when a frontier model scores better on a task, our router can assign that task to the best-performing model.
Our published expense-audit benchmark illustrates why that flexibility to choose from a range of options matters. An F1 score combines two measures to assess a language model’s accuracy. In finance work, this score indicates both the reliability of flagged violations and how many true violations a system catches. In our tests, ZenLM Plus led six of seven control comparisons on the same finance tasks. On receipt verification, Gemini 3.1 Pro and Sonnet 5 each scored 94.1 F1, slightly better than ZenLM Plus at 93.3. (Note that our results apply to the expense-audit configurations we tested; they do not rank the models in general.)
Guardrails decide when an AppZen AI Agent may act without a person
In finance generally, guardrails are the rules and checks that limit what an agent may do. AppZen Agents operate with guardrails that hold the Agents to the procedures and review requirements your team approved. When evidence is thin or the model’s confidence score is below your set threshold, those guardrails send the task to a person.
For example, an unclear receipt or an ambiguous policy exception may require an auditor’s judgment. Our harness hands that case to an auditor as a planned step. It shows the auditor the evidence the AppZen Agent gathered and the reason it escalated the case.
We also improve our specialized models through a governed feedback loop. We add difficult cases and users’ decisions to our evaluation sets, and we validate every model change against those sets before we deploy it. Each change must also meet enterprise privacy, security, and governance requirements.
See how our finance-specialized models scored against seven frontier models in “Introducing ZenLM Plus.”
Read blog →Why does an agent harness matter for finance teams?
When you evaluate agentic AI, look at how the harness affects four outcomes.
Task performance. Because the router evaluates each task separately, it should assign every task to the option that performs best on it. The router should not hand receipt verification to a model just because that model scored well on policy classification.
Operating economics. Routing controls which model handles each task. Our Agent credits set what you pay for each approved run. The router should weigh cost on every task, and save expensive models for the tasks where higher F1 scores justify the price. We define each of our Agent credits based on a pre-approved Agent run, and you see the credit cost before you deploy the Agent.
Accountability. Our Agent reasoning records the standard operating procedure (SOP) steps each Agent followed, the signals it referenced, and the actions it took. It also records any reviewer override and the reason for each escalation to a person. Your team can review that record to see how an Agent reached each outcome.
Adaptability. Because our harness supports multiple models, we can test each new model against our evaluations and adopt it for the tasks where it performs best. You gain from each model improvement, without rewriting your finance procedures around any provider’s release schedule.
Learn how we set the credit cost of each Agent run before you deploy it. Check out “The new AI cost problem.”
Read blog →What finance leaders should ask about an agent harness
When you evaluate AI agents, look beyond the name of the underlying model. Ask how the system selects a method for each task, what evidence it uses to measure each option’s accuracy, which actions require human review, and what record it leaves behind. Ask how the vendor tests changes before release and how it prices an approved workflow.
The vendor’s answers should demonstrate what its agent does when a receipt or invoice is unclear, a policy is unusual, or there is a change to the best model for a task. A well-built harness turns individual model capabilities into a finance process that your team can govern and trust.
Explore ZenLM Plus and the task-level evaluations behind AppZen’s approach to AI Agents and autonomous finance.