A ~1,400-line mini agent harness lands third on Terminal-Bench 2.1, beating Claude Code
PawelHuryn · x · 2026-12-01
Pawel Huryn open-sourced a 1,400-line MIT-licensed mini agent harness (phuryn/mini-harness) that ranks third on Terminal-Bench 2.1 with Claude Haiku 5.5, ahead of Claude Code (72.7) and 7 other popular harnesses at $3.28/run; Kilo Code leads at 74.0. The core idea: the model only talks, the harness executes. Six components:
- Loop: send conversation, run requested actions until the model asks for nothing; 50 lines, rest is resilience.
- Tools: fixed menu (read/write/edit/commands/project+web search); errors tell the model what to do next, not just "failed".
- Context: model has no memory between calls; resend everything unchanged to hit prompt caching (20x cheaper cached input on Opus 5.5).
- Sessions & compaction: persist every step; past 150K tokens, replace conversation with a summary.
- Permissions: risky actions (state-changing commands, files outside project, secrets) need approval; editing files then running them counts as running code.
- Goal mode: the agent never grades its own work — objective checks (tests) run first, then a fresh reviewer agrees.
Related event: 1,400-Line Open-Source Mini Agent Harness Ranks Third on Terminal-Bench(2 posts)→
More from coding & agent
- Laravel creator: language specialization is over, AI era favors architecture skills — bendee983 · 2026-12-01
- VoidZero November recap: tsrs type-aware linting up to 98x faster, and VoidZero joins Cloudflare — cnakazawa · 2026-12-01
- Deepshard launches $1,999 Truffle home AI computer that nightly LoRA fine-tunes a local 180B Qwen model on your data — rohanpaul_ai · 2026-12-01
- CairnMark: open-source local chat app wires llama.cpp to ComfyUI via MCP — United_Hour2453 · 2026-12-01
- Open-source desktop pet watches your Claude Code sessions and pings you when needed — Secure-Plenty2186 · 2026-12-01
- NVIDIA launches agent infrastructure for faster execution and tighter organizational control — nvidia · 2026-12-01