Waterloo's Delegent delegates easy subtasks to a local SLM, cutting agent cost 67%
dair_ai · x · 2026-11-25
A University of Waterloo paper introduces Delegent, a multi-agent harness built on Claude Code: the frontier model always leads the task and makes main code changes, while easy focused subtasks (code reading, test runs, corpus search) are delegated to SLM subagents on local hardware.
Key points:
- Unlike cascades or routers, no router or model is trained — one short instruction accounts for most of the savings, and the SLM is freely swappable.
- With a 27B FP8 SLM: frontier cost on long-horizon coding drops 67% and agentic search 59%, with no loss in task performance; a laptop-fit 2B model still cuts coding cost 66%.
- Insight: agents re-read their entire context every step, making long-horizon work expensive, yet locating code, reproducing bugs, running tests and searching docs don't need a frontier model.
- At API prices the 27B model adds only 3–10 cents per coding task.
- Code: github.com/castorini/delegent
More from coding & agent
- yuBot demo launches: open-source, private-by-default decentralized AI team — richdotca · 2026-11-25
- Deep dive into Vercel's eve and its agent infrastructure primitives — cramforce · 2026-11-25
- Stop selling 'AI agents' — profitable companies search for 'HubSpot data cleanup,' not MCP — aryanXmahajan · 2026-11-25
- Inside Claude Code: a five-layer agent architecture and a prompt cache that cuts cost to ~10% — goyalshaliniuk · 2026-11-25
- Claude generates its own motion design showreel — every frame and sound from code — prasenx · 2026-11-25
- Don't be a meat proxy: relaying raw Claude output adds zero value in code review — ducha_aiki · 2026-11-25