A 3B support agent that fixes its own mistakes
A 3.35B Tiny Aya support agent that heals itself: one command runs a whole round with no person in the loop for about $4, and it refused to ship itself 11 times until the fix was measured. Its first unattended promotion made its tool calls 7× more reliable (errors 44% → 6%), lifted tickets resolved from 10% to 15%, cut wasted tool calls from 69% to 21%, and serves retail tickets for $0.015 each, 2.5× less than the teacher API it learned from.
Watch the demo (3 minutes)
Why the smallest model. We chose Tiny Aya on purpose: it fits the budget, serves on a $1.50-an-hour A10G, and is the model where self-healing matters most, because it fails most. Its 8,192-token window is the limit our gate kept catching, and Aya Expanse 32B is the first thing we would run with more credit.
Three models
| Role | Model | Tickets solved |
|---|---|---|
| Base | Tiny Aya Global 3.35B, unchanged | 10% |
| Student, what the loop deploys | Tiny Aya + a LoRA adapter (under 1% of the model) | 15% |
| Teacher, never deployed | DeepSeek V4.1 Flash (API) | 32% |
The benchmark is tau2-bench retail: a simulated customer, 16 shop tools, a written policy, and a grader that checks whether the shop database ends up right, not whether the reply sounded right.
The loop
- Run the student on training tasks; every turn's raw output is logged.
- Detect failures with tau2's grader and AgentTune's
FailureDetector. - Classify and route with AgentTune's
FailureClassifier: tool fault → tool fix, model fault → weight fix, environment fault → no fix, never trained on. - Correct: at every turn where the student went wrong, the teacher answers from the student's exact context.
- Train a fresh adapter with AgentTune's
create_distill_trainer. - Gate on 8 checks: AuditKIT pass^1 and pass^k, targeted failures down, no new failure kind, BFCL (no forgetting) and AgentTune's
DeploymentGate. - Promote or keep the old one, recorded in a ledger with rollback.
A gate that can say no
It refused 11 times before it said yes, each time for a reason we could trace: forgetting general tool use, new failure kinds, conversations overflowing the 8K window. AgentTune's own DeploymentGate would have approved ten of the eleven candidates ours refused.
What the student stopped doing
| Per 60 conversations | Base | Self-healed |
|---|---|---|
| Invented an order or item id | 40 | 0 |
| Handed off to a human too early | 11 | 0 |
| Made up an answer | 8 | 0 |
| Tool-call error rate | 44% | 6% |
| BFCL, general tool calling | 45 | 73 |
Round 16's biggest jump: it uses tools like the teacher
Pass rates on 20 tasks are noisy, so we also measure how the agent works. tau2 stores the calls an expert makes for every task; we compare each conversation with that path and count the wasted calls (repeats with nothing changed in between, calls the shop rejected, calls our guards had to block) and the expert's steps the agent also took.
- The base wastes most of what it does: 69% of its tool calls, mostly calls the shop rejects, and it takes only 8% of the expert's steps. It looks frugal only because it gives up early.
- Round 16 behaves like the teacher: rejected calls 6% (teacher 4.5%), exact repeats 0.3% (teacher 0.4%), expert steps taken 47% (teacher 52%). All four changes from the base hold under a task bootstrap.
- AuditKIT agrees: the exact-repeat numbers are its own
RedundantToolCalls, not our code. - Why: round 16 trained on the teacher's fix for exactly the turns where the student went wrong, including every call our guards had blocked.
- Not yet: a fifth of its calls are still wasted (teacher 5%), and its conversations run about twice as long as the teacher's. That is the next target.
Across every round, from the base model to round 16, wasted calls fell from 69% to 21% (the teacher wastes 5%):
For a business
Running the self-healed student instead of the teacher's API costs about $22 instead of $117 per 10,000 conversations, with every conversation on hardware the shop controls. It resolves 15% of tickets end to end against the teacher's 32%, so today it is a first-line agent that never invents an order id and hands the rest to people. Each unattended healing round costs about $4.
Honest limits
- Three more passes in 60 conversations is not significant on its own. Pooled over three gates the round 7 adapter solved 17.2% vs 10% (13 paired wins, 0 losses), and 10% vs 0% on 20 hidden tasks opened once.
- Tasks that need two or more changes stay unsolved; the 8K window is the wall.
- A student that acts more errs more: 13% of its conversations made a wrong change, against 3% for the base, which mostly gives up, and 10% for the teacher.
Links
- Models: the adapter per round;
round-16is the promoted one. - Datasets: training data, and every gate's traces and decision.
- Code on GitHub, with the full write-up in
submission/WRITEUP.md. - Demo video (3 min), also embedded above.