The Research Report
Forge Guardrails Push an 8B Model From 53% to 99% on Agentic Tasks
Source: Hacker News and GitHub
For End Users
Antoine Zambelli released Forge, a Python framework that makes small local models reliable at multi-step tasks. The headline result: an 8B model goes from 53% task completion to 86.5%, and 99% on the easier tier, just by adding structured guardrails.
You do not need a frontier model to run agents. You need better error handling. Forge provides that. It is open-source, runs on your own hardware, and works with Ollama, llama.cpp, Llamafile, and Anthropic.
For Engineers and Researchers
Forge is a reliability layer for self-hosted LLM tool-calling. It does not change the model. It changes what happens around the model.
The guardrail stack includes:
- Rescue parsing for malformed tool calls
- Retry nudges that guide the model back on track
- Step enforcement that requires required steps to complete
- Context management with VRAM-aware budgets and tiered compaction
The eval suite has 26 scenarios split into an 18-scenario baseline tier and an 8-scenario advanced tier. The top self-hosted config is Ministral-3 8B Instruct Q8 on llama-server. It scores 86.5% overall and 76% on the hardest tier.
Three integration paths exist:
- WorkflowRunner for building on Forge directly
- Guardrails middleware for plugging into your own loop
- Proxy server as a drop-in OpenAI-compatible proxy that applies guardrails transparently
The proxy is clever. It injects a synthetic respond tool so the model stays in tool-calling mode, then strips that call from the outbound response. The client sees a normal text reply. The model gets the structure it needs.
There is also a published paper with DOI 10.1145/3786335.3813193.
The Skeptical Take
The 53% to 99% jump sounds dramatic. The 99% figure applies to the easier 18-scenario tier, not the full suite. The hard tier is 76%. That is still excellent for an 8B local model, but the headline rounds up.
The guardrails help most when the model is already close to competent. If a model cannot understand the task at all, no amount of retry nudging will save it. The guardrails paper and eval do not show results on models smaller than 8B.
The proxy server adds latency. Every malformed response triggers a rescue parse and retry. That costs extra inference calls. The cost savings versus a frontier model are still large, but the "same price as local inference" framing ignores those retries.
This is a real engineering contribution. It shows that agent reliability is a software problem, not just a scale problem. Just do not expect 99% on everything.
Word count: ~440
Written at: 2026-05-22T01:26:00Z