The short answer
An agent harness is software that lets an AI model use tools and keep track of work. The model is the part that reads input and generates a response. The model requests an action, and software runs it, if allowed, then returns the result for the model's next decision. For a business, that turns a request into steps someone can check.
How does a request turn into action?
An overdue invoice needs more than a well-written reminder. Has the client paid? Someone has to find the bill and check before a message goes out.
A model can write a reminder from facts supplied to it. To look up a bill, the model needs a tool: a defined action that software can run. The tool's description tells the model what the action does and what details to supply, such as an invoice reference.
The model's request to use a tool is called tool calling. Software runs the requested action, then sends the result back to the model for the next step.
For a made-up invoice task, the sequence could look like this:
- The software sends the request and instructions to the model, along with a list of tools. The instructions say to draft reminders without sending them.
- The model requests a search for overdue invoices. The request names the tool and supplies the search details.
- The software runs the search through a connected accounts tool. The tool returns matching records.
- Those records go back to the model. The model can now request payment details for an invoice instead of guessing whether it's unpaid.
- The cycle continues until the model returns the drafts, asks a person for help or reaches a stopping condition, such as a limit on repeated steps.
That cycle is the loop. One task can take several trips through the loop because each result changes what the model needs next.
The tools need clear boundaries. A search tool and a payment tool do different things, even when both belong to the same accounts system. Linking the system shouldn't mean granting every action.
A run needs a stopping rule, too. Stop rules can cap the number of times the loop repeats. A checkpoint can pause work so a person can weigh in.
Ask to see a finished task's steps, with the requests and results side by side. A final message saying the work is done doesn't prove a tool worked.
How does work survive the end of a conversation?
A saved invoice list and what the model reads right now are different things. That current set of text is called context. It holds the instructions and messages, plus tool results sent to the model for its next response.
The context window is how much the model can read at once. Space runs out. As a task grows, the software must choose what stays in context and what to fetch later.
One method, compaction, replaces a long chat with a short account of the work to date. Another saves notes outside the context window and loads them when needed. A saved file can hold the full invoice list while the current context holds the next question.
Those methods solve different problems. A summary cuts what the model must read now. A saved progress note lets a later session pick up where work stopped.
Saved state is a record of a task's status. For invoice reminders, that record should make clear which messages are drafts and which have been sent. Without that record, a later session could find an overdue bill and miss that a reminder had gone out.
Ask what gets saved and how a later run finds it. Keeping files is only useful if the next session can find the right ones.
Where can a run still go wrong?
A search result proves that the accounts tool returned something. It doesn't prove that the model chose the right invoice or read the payment status well.
Errors can feed into later choices as the loop goes on. Gaps can spread, too. A summary that drops a billing dispute can leave the next session unaware that the customer has challenged the bill.
A longer loop doesn't by itself fix those mistakes. In tests of long-running coding systems, researchers saw work left unfinished between sessions and false claims that a task was done. Those findings concern coding, not invoice work. They show why it's worth checking saved progress and testing whether a task is done.
For a business task, define what counts as done in terms you can check. A reminder task could call for a draft for each overdue bill, with disputed bills held aside for review.
An approval step helps control an action before it happens. It doesn't prove the action is right. The person checking the draft still needs the invoice reference and the reason for sending the message.
Start a test with a task where you can inspect the records and check the result against a known answer. Include a case where the system should stop and ask.
What would an invoice run look like?
Imagine a small agency preparing customer reminders. This is a made-up example, not a description of a particular product.
The request is to draft reminders for overdue invoices, excluding accounts with an unresolved billing dispute. Sending is outside the task.
The software supplies that instruction and the search tools. The model requests the overdue list, then checks the returned accounts for disputes. An unclear account goes into a review list. There is no need to guess.
The output is a set of drafts linked to invoice records, plus the exceptions needing a person's decision. Before stopping, the system saves which invoices it checked and which drafts remain unfinished.
At review, the owner can trace a reminder back to the balance used to write it. If the owner later gives the go-ahead to send, the system needs a tool allowed to send, not just more instructions.
How does Viktor use these ideas?
Viktor has built-in skills for common kinds of work alongside his connected tools. Ask for a result, and he picks the approach.
A skill gives him instructions for a task and when those instructions apply. He picks up the relevant skill when a task calls for it. Skills preserve your processes between conversations.
Some actions need approval. He prepares those actions as drafts and posts an approval card. A draft runs only after someone clicks Approve. Tools set to Off never run.
The what Viktor can do documentation describes his built-in capabilities. The Approvals documentation explains which actions wait for a person.
See the Viktor product overview.
FAQ
Is a harness the same as a prompt?
No, a prompt supplies instructions, while the software around the model also runs tools and passes results between steps. A clearer instruction can improve a task. Someone still has to build the tools and connect them to the model.
What is harness engineering?
Harness engineering means designing and improving the software around a model. The work includes defining tools, managing context and testing how a run proceeds. For a business evaluating the result, ask what happens when a tool fails or the task remains unfinished.
Does every task need a repeating loop?
No, a fixed sequence can suit work whose steps are known in advance. A model-directed loop helps when the next step depends on what a search or other action returns. Added complexity should earn its place through better task results.
Related
Read the Skills documentation for how reusable instructions work.