By Kristofer Jussmann
I'm Kristofer Jussmann, and I built Harneloop, an open-source, public-alpha framework for evolving an AI agent's harness (the instructions, tools, context, and checks around a model) by inspecting real task artifacts and promoting a change only when a test supports it. The model itself does not need to be retrained.
This is a practical introduction if you want to try the CLI, understand what a harness unit is, and see how the published ViperMesh case study measured the loop. Harneloop is a public alpha: the core lifecycle works, but commands and file formats may still change before a stable release.
Harneloop is an open-source public-alpha framework that helps an existing AI agent improve its harness rather than its model weights. The agent inspects artifacts from a real task, traces a likely mistake, proposes a candidate change to instructions, tools, context, or checks, and promotes that change only after evidence supports it.
It is published on PyPI as harneloop version 0.0.2, licensed under Apache License 2.0, and requires Python 3.11 or newer. The source and project home is the OpenRootdev/Harneloop repository.
Harneloop is for people whose agents keep repeating similar mistakes on a task whose output can be inspected, such as code and tests, browser workflows, generated documents, or visual work. It is most useful when the task is repeated and failures can become durable, restorable improvements. It is unnecessary for a one-off task where no learning will be reused.
The first case study I published is Blender scene construction with ViperMesh. Other task families remain opportunities for testing and contribution.
Harneloop gives an existing agent a structured loop: attempt the task and keep the output plus the steps taken; inspect the artifact itself instead of trusting a completion message; trace the problem to a tool call, missing context, instruction, or environment decision; test a proposed improvement; and keep only what the evidence supports, with a version you can restore.
I documented that lifecycle in the README in nine steps, from describing the goal and mapping the real environment, through a baseline run, explicit attempt conclusions, isolated candidates, and risk-proportionate validation, to promotion, export, or packaging. Finished runs are immutable. Evidence is checked when it is attached and again at promotion, so a deleted run or missing artifact cannot support a release.
Each task family lives in a harness unit, a portable workspace you can and continue later.
A harness unit is a portable workspace for improving one task family. It keeps its own target definition, environment map, harness material, experiments, evidence, regression cases, and promoted versions, so work can stop and resume without starting the investigation again.
A new unit starts with a documented layout, including unit.yaml, UNIT_AGENT.md, operational-map.md, plus folders for the target, environment contract, promoted agent-facing material, tools, observers, validators, regression cases, candidates, runtime artifacts, restorable versions, and provenance. Agents can add research, scripts, or new folders. The framework protects only the files and lifecycle rules needed to keep the unit understandable and recoverable.
Reusable harness material belongs in the portable unit. Raw traces, caches, secrets, unpromoted candidates, and every historical render do not. The default thin package contains the promoted knowledge and contracts needed to rebuild or integrate the harness.
Install Harneloop from PyPI in an isolated tool environment with uv, then run the doctor and setup commands. You can also install it with python -m pip install harneloop in a Python 3.11+ environment. The harneloop command is designed for Windows, macOS, and Linux.
uv tool install harneloop
harneloop doctor
harneloop setup
If uv reports that its tool directory is not on PATH, run uv tool update-shell and open a new terminal. For an unreleased source build, use uv tool install git+https://github.com/OpenRootdev/Harneloop.git.
harneloop setup opens the guided human-facing CLI. Running harneloop with no command opens the broader interactive menu. Agents can call the explicit non-interactive commands directly. Useful first commands include:
harneloop onboard
harneloop template list
harneloop units list
harneloop settings show
Units created by harneloop setup or harneloop init-unit are registered automatically. You can register an existing unit once with harneloop units register /path/to/my-unit, then address it by ID or name from any directory.
After install, give a capable agent the repository link and the task you want to improve. The repository README includes a ready-to-use Agent Quick Start prompt. In outline, the agent should install the tool if needed, run harneloop doctor, read onboarding ( harneloop onboard --format json or the onboarding guide), create or continue a provisional unit, inspect the actual environment, run a baseline, inspect artifacts, and conclude the attempt before accepting the current harness or proposing improvements. Do not promote a candidate without evidence.
I built Harneloop around three ideas that I contrast, in the README, with simply enlarging a prompt or collecting an evaluation score. It is artifact-aware: the produced thing (an image, scene, UI, document, repository, trace, or database state) is treated as evidence, not the agent's own textual report. It is harness-building, not only scoring: the operating agent is supposed to diagnose a failure and develop a concrete change to prompts, tools, observers, validators, regression cases, or environment automation. And it is evidence-gated: the active agent cannot freely rewrite the promoted harness. It creates a candidate, tests it, attaches evidence, and promotes it through the framework. Every promoted version can be inspected and restored.
The core is environment-agnostic. It does not depend on Blender, SVGs, Python agents, or a specific model provider. A unit can use terminal commands, MCP servers, browser automation, desktop apps, APIs, manual steps, or a custom tool interface. Reasoning stays open-ended: Harneloop structures the lifecycle without turning the operating agent into a fixed script.
My rationale for Harneloop is harness-first rather than weight-first. The model is only one part of performance; the harness determines context, tools, environment interaction, memory, inspection, and whether mistakes become durable improvements. For many task-specific problems, the README argues this is a high-leverage surface because changes stay inspectable, testable, reversible, and portable, and the model does not need retraining. The documentation cites independent research (including Self-Harness, SWE-agent, Reflexion, Self-Refine, and work comparing retrieval with fine-tuning) as support for improving the system around a model. Those papers are background, not Harneloop benchmarks.
I used Harneloop to develop a custom ViperMesh harness unit for Blender spatial-reasoning and scene-construction tasks. The comparison kept the acting model fixed at GPT-5.5 High and tested the evolved ViperMesh harness against an Anthropic x Blender MCP server baseline, isolating the harness as the main changed system layer.
As I documented in the Harneloop README:
Harneloop did not generate the scenes itself. It structured the evidence and artifact loop that exposed weaknesses, guided tool and harness development, and verified whether those changes improved the benchmark. Read the methodology, limitations, and complete results in the ViperMesh case study and the Harneloop case study. A demonstration video with ViperMesh MCP is linked from the README (YouTube). The public Blender connector is a separate project: OpenRootdev/vipermesh-blender.
These are the case-study results I have published, not a claim that every task family will see the same gains. I am treating the ViperMesh result as the first evidence that the framework can support meaningful harness evolution, not as the final proof of a general law.
Example use cases I have documented include:
I included an illustrative (not mandatory) command sequence in the repository. After a unit exists, the shape looks like this:
harneloop run start my-unit --task "Capture a baseline"
harneloop artifact add my-unit run-0001 ./output.png --kind image
harneloop run finish my-unit run-0001 --status succeeded --summary "Baseline captured"
harneloop candidate create my-unit --summary "Improve artifact construction" --plane target_harness --validation-tier representative
harneloop run start my-unit --task "Test candidate improvement" --candidate-id cand-0001
harneloop artifact add my-unit run-0002 ./improved-output.png --kind image
harneloop run finish my-unit run-0002 --status succeeded --summary "Candidate result captured"
harneloop candidate evidence add my-unit cand-0001 --kind artifact_review --summary "..." --run-id run-0002 --artifact-id artifact-0001 --validation-tier representative
harneloop candidate stage my-unit cand-0001 ready
harneloop promote my-unit cand-0001 --version 0.1.0
harneloop export my-unit --adapter codex
harneloop package my-unit --output ./my-unit-0.1.0.tar.gz
Tool-driven agents may perform many actions between run start and run finish, capture several artifacts, create multiple attempts, or wait for external results. Do not manually edit framework-owned .evolve/, versions/, provenance/, runtime/, or candidate metadata; use the CLI lifecycle commands.
The framework writes YAML and JSON control files atomically, uses harness-local locks for concurrent updates, and treats finished runs as immutable. Candidate overlays cannot modify protected framework state. Evidence references must exist when attached and at promotion time, and must match the candidate's current base version and declared validation tier. Parallel candidates survive another promotion but must rebase and collect fresh evidence before they can be promoted. Promoted versions are restorable snapshots, and rollback is a recorded framework action. Thin packages exclude runtime data, candidates, caches, and common secret files.
In the alpha, preferences are durable defaults and guidance. Not every preference is enforced automatically by every engine command yet. Evidence-required promotion is enforced unless an explicit development override is used. The agent should ask before adding credentials, paid services, external access, security-sensitive tools, or expensive infrastructure.
No. Harneloop is designed so the agent improves the harness around the model (instructions, tools, context, and checks). A proposed change becomes the working version only after a test supports it. The README is explicit that the model itself does not need to be retrained.
No. It is a public alpha (v0.0.2 on PyPI). The core loop works, and broader task validation and contributions are welcome, but commands and managed file formats may still change before a stable release. Treat it as an early framework you can already run, not as a frozen API.
No. The first published case study is Blender scene construction with ViperMesh, but the core does not depend on Blender or a specific model provider. A harness unit can use terminal commands, MCP servers, browser automation, desktop apps, APIs, manual steps, or a custom tool interface.
New-unit onboarding is intentionally short. The README says the agent should collect five pieces of context: what the harness should help an agent become better at; where it will be used; whether you, the agent, or a later baseline should define success; whether validation should prioritize quality, visual evidence, balance, or resource efficiency; and whether a testing environment already exists, partly exists, or needs to be built.
Report a problem or share a use case in the GitHub issues. Documentation, architecture notes, agent onboarding, and contributing guides live in the same repository.
If you try the alpha and something breaks, or you have a use case I have not tested, please open an issue. I would rather hear about the rough edges than guess at them.
I run this project inside OpenRoot, the open-source developer program and GitHub organization I started for useful software built in the open.