← Work

Harness Lab

A proof of concept for harness engineering: a small, readable agent harness that makes a free local model do real coding and research work, with evals that compare it to the bare model.

Role
Solo project
Year
2026
Stack
  • Python
  • Harness engineering
  • Ollama
  • Docker
  • Evals
  • pytest

harness-lab puts the ideas of harness engineering into about 2,700 lines of Python you can read in an afternoon. A 3B coding model running locally in Ollama works on real tasks, and the harness around it decides what the model sees, what it may do, how its work is checked and what happens when it goes wrong:

  • A short AGENTS.md map and task specs guide the agent, and longer documentation comes only on request.
  • ruff, mypy, pytest and architecture rules run as checks the agent can't skip, research answers need verified citations, and a reviewer agent grades the work against a rubric.
  • Commands run in a Docker sandbox without network, and file and web tools can't leave the workspace.
  • Only the harness can mark a feature as done. Each one gets its own commit, and a handoff note keeps the work going when the context window fills up.
  • Every run is traced, a task suite with hidden graders compares harness configurations, and repeated failures turn into proposed rules.

Everything is free: local models, Docker and plain Python, with no API keys and no agent framework.