{"slug": "delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67", "title": "Delegent: Frontier Model Leads While SLM Subagents Cut Coding Cost 67%", "summary": "A Claude Code harness called Delegent cut frontier-model spend by 67% on long-horizon coding and 59% on agentic search by delegating narrow subtasks to a 27B FP8 small language model, according to arXiv paper 2611.33098v1 posted November 24, 2026 by Lingwei Gu and Jimmy Lin. A 2B laptop-class SLM delivered 66% lower coding cost when paired with a short instruction reserving main coding for the frontier model, and the authors report no task-score loss in their tables. The approach keeps the frontier model planning merges and architecture while SLMs investigate code, run tests and search corpora, with no router training required.", "body_md": "**Delegent is a Claude Code harness where a frontier model keeps the keyboard while small language models do the legwork**, according to **[arXiv 2611.33098v1](https://arxiv.org/abs/2611.33098v1?ref=explainx) posted November 24, 2026**. **Lingwei Gu** and **Jimmy Lin** report **67% lower frontier spend** on **long-horizon coding** and **59%** on **agentic search** when a **27B FP8 SLM** handles delegated subtasks—**without** losing task scores in their tables.\n\n## TL;DR\n\n| Item | Detail per abstract | \n|---|---|\n| **Pattern** | Frontier leads; SLM subagents investigate, test, search | \n| **Base harness** | Claude Code | \n| **27B SLM savings** | **−67%** coding cost,**−59%** agentic search | \n| **2B SLM savings** | **−66%** coding cost on laptop-class model | \n| **Router training** | **None** — models are swappable | \n| **Code** | [github.com/castorini/delegent](https://github.com/castorini/delegent?ref=explainx) (not public as of Nov 25, 2026) | \n\n## Why delegation beat routing in this paper\n\nAgent bills in **2026** scale with **context re-reads**: every tool loop sends the **full transcript** back through a **frontier model**. Teams respond with **cascades** (cheap model first), **routers**, and **prompt caching**—see **[Claude platform cost tuning](https://explainx.ai/blog/claude-platform-cost-performance-prompt-caching-effort-2026)** and **[model-selection energy math](https://explainx.ai/blog/model-selection-ai-energy-math-2026)**.\n\n**Delegent** picks a different lever: **keep the frontier model responsible** but **spawn SLM workers** for **narrow subtasks**—** read this module**, **run tests**, **search the monorepo**. The frontier model still **plans merges and architecture**; the SLM **does not own the PR**.\n\nThat matches how **[Cognition SWE 2.1 Lightning](https://explainx.ai/blog/cognition-swe-2-1-lightning-devin-november-2026)** and **[mobile agent testers in GitHub Actions](https://explainx.ai/blog/mobile-agent-testers-claude-code-github-actions-parallel-qa-november-2026)** squeeze **latency and dollars** without declaring **small models** safe for **final commits alone**.\n\n## What the harness actually delegates\n\nThe abstract names subtasks explicitly:\n\n- **Investigating code** — localized reads instead of whole-repo frontier passes.\n- **Running tests** — command execution with summarized output back to the lead model.\n- **Searching a corpus** — IR-style lookups Jimmy Lin's group knows well from**castorini** tooling.\n\nEach subtask returns **focused context**, shrinking the **next frontier call**. Savings **grow with legwork** the frontier used to perform **inline**—exactly the **long-horizon coding** and **agentic search** suites in the paper.\n\nAuthors stress a **short instruction** that **reserves main coding for the frontier model**. That guardrail matters: without it, a **2B SLM** **loses tasks** in their ablations. **Delegation boundaries** are not automatic; they are **prompt design**.\n\n## Reported cost and quality numbers\n\nGreen feather on a low coin stack suggesting lower inference spend\n\n| Setup | Frontier cost change | Performance | \n|---|---|---|\n| **27B FP8 SLM helper** | **−67%** coding,**−59%** search | **No loss** (authors) | \n| **2B laptop SLM** | **−66%** coding | **Held** with instruction tweak | \n\nTreat **\"no loss\"** as **benchmark-specific**. Your **private monorepo** with **custom CI** may diverge. Run an **A/B** on **issue-fix tasks** before changing **seat licenses**.\n\nCompare to **[OpenRouter spend shifts](https://explainx.ai/blog/openrouter-google-spend-topped-openai-weekly-gemini-november-2026)**—routing between **API vendors** is orthogonal to **in-repo SLM helpers**.\n\n## When delegation helps and when it does not\n\nDelegation wins when **subtasks are narrow**, **outputs are summarizable**, and **mistakes are recoverable** by the frontier lead on the **next turn**. It struggles when **every line of code** depends on **global invariants** only visible after **full-file reasoning**—think **cryptographic constant layout** or **distributed consensus** patches.\n\nThe paper's **short instruction** that **reserves hard coding for the frontier** is the operational secret. Teams that **over-delegate** see **2B models lose tasks** in the authors' ablations. Run a **week-long trial** where **only** `git grep`, `pytest -k`, and **log tail** jobs go to the SLM; keep **refactors** on the frontier until **error budgets** stabilize.\n\nLatency can **rise** if **serial handoffs** multiply; the savings target is **dollars**, not **wall clock**. For **CI-heavy repos**, parallel **SLM workers** may still beat **one fat context**—similar spirit to **[parallel mobile agent testers](https://explainx.ai/blog/mobile-agent-testers-claude-code-github-actions-parallel-qa-november-2026)**.\n\n## Delegent vs cascades and vs other November harnesses\n\n| Approach | Who runs the full task | Training needed | \n|---|---|---|\n| **Cascade / router** | One model per task pick | Often router labels | \n| **Delegent** | Frontier always | **No router training** | \n| **[AWS Strands Decider v2](https://explainx.ai/blog/aws-strands-decider-v2-gemma4-november-2026)** | Gemma picks tools in AWS stack | Service-specific | \n| **[Autopilot visual harness](https://explainx.ai/blog/autopilot-visual-agent-harness-afk-bench-november-2026)** | Vision loop for UI tasks | Different domain | \n\nDelegent is closest to **practitioner folklore**: **\"use Opus to think, Haiku to grep.\"** The paper **formalizes** it inside **Claude Code** and **counts dollars**.\n\n## Hardware and SLM choices\n\nSmall rounded engine beside a larger engine, suggesting SLM helpers\n\nThe **27B FP8** point targets **GPUs many shops already own** for **local inference**, echoing **[PrismML ternary coding models](https://explainx.ai/blog/prismml-ternary-bonsai-2-5-27b-agentic-coding-5-9gb-november-2026)** and **[Rockbox LLM port](https://explainx.ai/blog/rockbox-yp3-aliexpress-llm-port-claude-november-2026)** culture—**small, quantize, delegate**.\n\nA **2B** model **fitting on a laptop** is the **accessibility headline**, but authors admit **task loss** without the **short instruction** that keeps **hard coding** on the frontier.\n\n## How to adopt the pattern before code ships\n\n1. **Read [arXiv 2611.33098v1](https://arxiv.org/abs/2611.33098v1?ref=explainx)** for task definitions and tables (11 pages, 5 tables per abstract).\n2. **Watch [castorini/delegent](https://github.com/castorini/delegent?ref=explainx)** —404 on**Nov 25** may mean**embargo lag** .\n3. **Prototype manually** in Claude Code: define**SLM-only** subagents for**search and test logs** with**explicit handoff prompts** .\n4. **Measure tokens** per merged PR, not per chat—savings track**legwork volume** .\n\nPair with **[T3 Code telemetry findings](https://explainx.ai/blog/t3-code-telemetry-claude-codex-auth-files-november-2026)** if you audit **what leaves the machine**.\n\n## Security note for delegated agents\n\nCheaper subagents still **read secrets** if you point them at **production repos**. **[Anthropic Siren honeypot](https://explainx.ai/blog/anthropic-siren-honeypot-agent-sandbox-escape-november-2026)** and **[NCSC agentic offensive frameworks](https://explainx.ai/blog/ncsc-agentic-offensive-frameworks-artex-november-2026)** are reminders to **sandbox SLM tools** with **least privilege**, not to **skip** them because the model is **small**.\n\n## Measuring savings on your repo\n\nExport **token invoices** from **Claude Code** or your **API dashboard** for **two weeks**: label PRs where **search and test loops** dominated wall time. Those PRs are **Delegent-shaped**. Re-run with **manual delegation prompts** before automating.\n\nTrack **false negatives**: an SLM that **misses** a **failing test** costs more when the **frontier model** **ships** a **broken diff**. The paper claims **no performance loss** on **its** suites—you need **your** **regression matrix**.\n\n**Agentic search** savings (**59%** claimed) matter for **legal**, **support**, and **compliance** teams running **RAG** over **tickets**. Pair with **[MemOnce memory](https://explainx.ai/blog/memonce-scalable-llm-memory-architecture-2026)** thinking so **subagents** do not **re-fetch** the **same corpus** every hop.\n\n**Open-source** stacks without **Claude Code** can still copy the **pattern** in **[Autopilot harness](https://explainx.ai/blog/autopilot-visual-agent-harness-afk-bench-november-2026)** or **[Protocolis solid-state web execution](https://explainx.ai/blog/protocolis-solid-state-web-execution-ai-agents-november-2026)**—numbers will differ.\n\n## Jimmy Lin and castorini context\n\n**castorini** built **Anserini**, **Pyserini**, and years of **cheap-first** IR recipes. Delegent extends that ethos to **coding agents**: **retrieve and rank with SLMs**, **decide with frontier**. When **github.com/castorini/delegent** goes live, expect **repro scripts** tied to **academic corpora** first, then **community ports**.\n\n## Enterprise rollout guardrails\n\n1. **Secrets** : SLM subagents get**read-only** tokens by default.\n2. **Branch protection** : frontier model**must** open PRs; SLM never**pushes****main** .\n3. **Audit** : log**which subtask** used which**model ID** .\n4. **Rollback** : one-click**disable delegation** when**incident** response starts.\n\nFinance teams should compare **Delegent** against **seat-based** **Devin** pricing in **[Cognition SWE 2.1](https://explainx.ai/blog/cognition-swe-2-1-lightning-devin-november-2026)**—different products, same **budget line**.\n\n## FAQ for engineering managers\n\n**Will a 2B model work Monday?** Only with **strict** task boundaries; authors report **losses** without the **short instruction**. **Do we need Claude Code?** Paper numbers assume it; patterns port with effort. **What about Codex or Gemini CLI?** Untested in the abstract—re-benchmark. **How do we audit delegated reads?** Log **paths** and **hashes** per subagent turn. **Does this replace caching?** No—combine with **[prompt caching](https://explainx.ai/blog/claude-platform-cost-performance-prompt-caching-effort-2026)** for **compound** savings.\n\n**Platform teams** should publish an **internal delegation policy**: which repos allow SLMs, which require **frontier-only** review, and which **directories** are **never** delegated (**prod configs**, **key material**, **HIPAA** rows).\n\n**Hiring** managers interviewing **agent engineers** can use Delegent as a **discussion prompt**: design **subtask boundaries** for **your** monolith, estimate **token savings**, list **failure modes**.\n\n## Related reading\n\n## Closing note for platform owners\n\n**Delegation is an org policy**, not only a **model trick**. Write **which directories** SLMs may touch, **which CI jobs** they may trigger, and **which customer tiers** still require **frontier-only review**. When **castorini/delegent** ships, diff **their prompts** against **your draft policy** before **enabling** wide rollout.\n\nCost wins compound when **teams stop re-reading** **entire monorepos** each **tool loop**. They evaporate when **SLMs hide** **failing tests**. Measure **both** **dollars** and **escaped defects** every sprint.\n\nShare **delegation configs** in **internal wikis** with **redacted prompts** so **junior engineers** do not reinvent **unsafe shortcuts**. When **Jimmy Lin** publishes **tables**, reproduce **agentic search** and **coding** splits separately—**59%** and **67%** answer **different CFO questions**.\n\n**Procurement** negotiating **Claude Enterprise** should ask whether **vendor-side delegation** arrives before **your internal SLM** rollout—**Delegent** is a **pattern**, not a **billing feature**, until **Anthropic** or **Cursor** ships equivalents. **Staff engineers** can pilot **manual subagents** this week and **quantify** **token delta** before **waiting** for **castorini** code.\n\n**Security questionnaires** from **banks** may soon ask **which model read production SQL**; **delegation logs** become **audit artifacts**, not **debug trivia**. Export those logs to **SIEM** fields your **GRC team** already reviews monthly during **release trains**.\n\n*Cost percentages come from the Delegent arXiv abstract (November 24, 2026). Verify against your harness once the GitHub repository is available.*", "url": "https://wpnews.pro/news/delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67", "canonical_source": "https://explainx.ai/blog/delegent-slm-subagents-claude-code-cost-november-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-25 00:00:00+00:00", "updated_at": "2026-11-25 07:44:20.817012+00:00", "lang": "en", "topics": ["ai-agents", "large-language-models", "ai-research"], "entities": ["Delegent", "Claude Code", "Lingwei Gu", "Jimmy Lin", "castorini", "arXiv 2611.33098v1"], "also_reported_by": [], "takeaway": "Delegating narrow subtasks such as code investigation, test runs and corpus search to a 27B FP8 SLM cut frontier spend 67% on long-horizon coding and 59% on agentic search with no reported score loss, but a 2B SLM only held performance when a short instruction reserved main coding for the frontier m", "recommendation": {"advice": "Keep the frontier model on planning and final code while routing narrow, summarizable subtasks like module reads, test runs and search to a 27B SLM, and add an explicit instruction reserving main coding for the frontier model.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67", "markdown": "https://wpnews.pro/news/delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67.md", "text": "https://wpnews.pro/news/delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67.txt", "jsonld": "https://wpnews.pro/news/delegent-frontier-model-leads-while-slm-subagents-cut-coding-cost-67.jsonld"}}