Show HN: Harness Tuner – eval-driven tuning loop for agent tools, prompts, model...
Show HN @show
Show HN: Harness Tuner – eval-driven tuning loop for agent tools, prompts, model github.com · 3 points · 4 comments · HN thread
TL;DR Harness Tuner is an open-source CLI from Kiln AI that tunes an agent's whole harness (tools, prompts, skills, model settings, RAG and sub-agents) against the user's evals, instead of only the prompt. The README claims a real production agent with over 200 tools ended up with 2.5x fewer failures, 6x lower cost and 2x lower latency on a smaller model, measured on held-out data. It requires the Kiln desktop app, an agent and evals defined in Kiln, and roughly $2 of API calls for the included demo.
- Tunes the surrounding harness rather than just the prompt: rewrites tools into agent-friendly wrappers, cuts prompt contradictions, moves long instructions into on-demand skills, and tunes thinking level, temperature and model choice.
- Enforces train/val/test splits in code: agents see only train, val decides promotions, and test is never read by the tuner so reported numbers are unoptimized.
- Experiments run only the evals they target, and candidates are checked against every eval before promotion to prevent silent regressions.
- Experiments form a graph that can branch from and merge back into earlier versions, and the run returns several winners (best quality, cheapest at good quality, balanced, fastest).
- Runs on existing Claude Code, Codex or OpenCode subscriptions for the tuner's own agents; eval and agent model calls are billed to provider keys stored in Kiln.
- Ships a demo (harness-tuner --demo) that tunes a 624-post forum moderation task; the README says it costs about $2 in OpenRouter calls.
Discussion The thread is small, with two top-level comments and replies from the author, scosman. The mood is friendly and mostly curious. The discussion centers on the project's distinctive claim that it rewrites tools rather than only prompts, and on whether the Kiln dependency is worth adopting.
- Interesting concept, but reluctant to adopt the Kiln ecosystem (some): james_marks says the project looks well done and conceptually strong but is not yet convinced enough to migrate into Kiln. The author replied that a one-command flow pointing at an existing agent is in development to lower that barrier.
- Tool rewriting is the notable difference from prompt optimizers (some): iuliab initially assumed this was another prompt optimizer and then saw that it rewrites tools. The author says tool-layer changes have produced the biggest gains, making agents faster and more accurate.