agent-engineering is the harness for building an agent’s own harness, which its pages call the scaffold: the code around a fixed model that makes it do a job a task runner can score, such as coding tickets, customer conversations, data work or browsing. It ships inside the package and loads by name. Two of its skills name situations of their own, a customer conversation with a simulated user and a model served locally on a serving engine, and each says when it applies.
What it holds is the discipline, not the task: the brief, the evaluator, the model and its endpoint, the task runner and the starting repository are yours. The model stays fixed; a build changes what surrounds it.
Where it came from
The harness was written from published research on agent harnesses and from the practice of the people who build them, then revised after independent reviews. Each skill states a component with the effect a study measured and the conditions it was measured under, as the evidence for trying it and never as the size to expect on another model or task: a component enters a scaffold as a dated hypothesis, recorded with the failure it was added for and the measurement that would retire it. The package’s gate runscheck over each bundled harness at the packaged page budget and scans it for a benchmark’s names. The support agent example is a task set up to run on it.
What it ships
instructions/guardrails.md, the standing rules (the model is fixed; every component is a hypothesis with its measurement; nothing is believed without the task runner; held-out tasks and answer keys never enter a session; rules with no exception live in code), and the module’s own page, one each for setup, ideation, implementation, verification, feedback, deployment and learning. The skills and the delegates are defined once and listed per module:
The skills
The delegates
episode-auditor reads one failed episode, attributes the failure and names the earliest wrong step the permitted evidence supports. scaffold-integrity-auditor audits one attempt’s diff for content that recognises evaluation cases where it should solve them, and for a tampered measurement: a read of material the task declares private, an edit to the evaluator or its settings. Each reports pass, fail or inconclusive with evidence, and neither edits a file.
The scripts
Three scripts ship inside the skills and use the standard library only:passk.py (the summary of a results file, and the paired comparison of two runs on the same tasks and trials), triage.py (the symptom classes of a run’s failed episodes) and probe_endpoint.py (a short probe of a chat endpoint). The first two read results/episodes.jsonl, a small convention the done-check-and-eval skill states; an adapter over your runner’s public output writes it, and when the task ships none the first attempt writes one.
Run a task on it
Harness agent-engineering line and kapso.load_harness("agent-engineering") name it the same way. The campaign then runs as Use a harness describes: the setup session writes the domain statement into the task statement (the task family and how the runner scores it, the model and its endpoint with what is fixed and what the scaffold may change, the development set, the trials, the metric) and sends the endpoint one request; each implementation session builds one component behind a flag and measures it through the task’s runner; each attempt is verified by a session that recomputes the headline from the results file and asks the two delegates, and a void attempt keeps its branch and is never delivered.
What a task on this harness brings: a task runner the scaffold plugs into, a development set the build may read, the fixed conditions (the model, the trials, the runner’s version), and an evaluator that scores a run of the scaffold. Tasks the build must never see stay outside the repository the build reads.
Related pages: Use a harness · Data engineering · Predictive modelling · Write a harness · Harness reference · Deployment targets
Kapso is an open-source engine by Leeroo that runs experiments toward an objective, deploys the best solution and learns from every run. Source code: github.com/Leeroo-AI/kapso · Install: pip install leeroo-kapso · Every page as plain text: llms.txt.