· Engineering
UnieAI Harness: letting agents continue from tool results
Through a single code-fixing task, understand how the model, tools, sandbox and working state fit together.

“Fix the code and pass the tests” takes several rounds of reading, editing and checking. UnieAI Harness coordinates the execution loop between the model and tools, letting the agent adjust its approach based on real observations and arrive at a result you can review.
Harness is UnieAI Code's default engine and can also serve as the execution foundation for products. Teams can configure the tools and environments a job needs, then use it through their own web, CLI, desktop or SDK entry points.
Beyond the model, what capabilities does the work need?
The model decides what to do next; tools actually read files, make edits or run commands. The sandbox determines the operating environment and scope; the working state keeps completed steps and new observations so multi-round tasks have something to build on.
In a code fix, for example, test output should include the actual failure location, and later edits should build on the latest files. These details directly affect whether the model can go on to finish the task.
How it works
- Define the goal: state the task, the available data and the completion criteria.
- The model proposes an action: it chooses the tool to call and its inputs.
- Run and observe: the tool returns results, errors or output files.
- Continue the work: update the context and decide whether to continue, correct course or deliver.
How to plan your first workflow
Choose a well-scoped task, such as reading a data file, organizing the results and writing them to a specified output. List the inputs, tools and acceptance method first, then decide which extensions you need.
- Inputs: what the user provides, and which data the tools fetch.
- Tools: each tool's purpose, input format, return values and error messages.
- State: which observations carry into the next round, and which are finished outputs.
- Completion: how success is determined through file contents, tests or user confirmation.
Choose the operating scope for the work
Harness supports three sandbox modes: read-only, workspace write and full access. Data understanding can start read-only; changing code or producing files needs the corresponding write scope.
Linux, macOS and Windows each use their native isolation capabilities. When the required isolation isn't available, that execution path stops. When configuring, confirm tools, environment and approval rules together so tasks run within the expected scope.
Give longer tasks a way to continue
The framework's extension interfaces cover tools, sandboxes, scheduling, sub-agents and workflows. Background execution, scheduling and goal state that survives restarts support work that needs to wait or be deferred.
If a task can be split into independent parts, sub-agents can each handle one and bring their results back to the main work. Whether to split depends on the task itself; steps that share a lot of live state are usually better kept as one continuous run.
Verify the configuration with task records
With the model and tasks fixed, review each round's tool inputs, observations and final result. If a task gets stuck, find the last useful result first: is data missing, is tool feedback incomplete, or are the acceptance criteria unclear?
UnieAI Code's Frontier Harness Eval tracks tool workflow improvements on the same tasks. Teams can also keep their own representative tasks so every configuration change has comparable completion results.
FAQ
What are Harness and the model each responsible for?
The model decides actions based on context; Harness handles tool execution, the environment and returning results, helping the work keep going.
Do I need to connect every extension at once?
Configure the tools and environment the first task needs, then extend for waiting, scheduling or splitting work as needed — that makes each change easier to verify.
Keep exploring

KB Super: cross-document answers you can trace to the source

UnieAI Code Harness update: connecting reading, editing and testing into one complete task
