[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82102-en":3,"doc-seo-82102-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82102,1374391975076,"Riley","https://ap-avatar.wpscdn.com/avatar/14000253ca4ec9f6853?x-image-process=image/resize,m_fixed,w_180,h_180&k=1783305029341752051",8,"Research & Report","Better Harnesses Smaller Models Building 90% Cheaper Agents via Automated Harness Adaptation","Frontier LLM agents automate business work but face unsustainable inference cost, latency, and privacy pressure for large deployments. Small language models (SLMs) are cheaper and faster, yet underperform when inserted into harnesses built for frontier systems. The work shows routine business tasks can reach LLM-level quality at about 90% lower cost by pairing SLMs with automatically discovered adapted harnesses. It proposes a failure-mode-to-adaptation framework and a harness optimizer, improving 16/21 task-SLM pairs.","Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation  \nChenyang Yang, Xinran Zhao, Tongshuang Wu, and Christian Kästner  \nCarnegie Mellon University  \narXiv :2607 .08938v 1 [ cs . SE] 9 Jul 2026  \nAbstract—Frontier LLM agents are automating many business tasks, but their high inference cost makes large-scale deployment unsustainable. Small language models (SLMs) offer a cheaper alternative, yet they typically fall short when swapped into a harness designed for a frontier LLM. We show that for many routine business tasks, SLM agents can match LLM performance at 90% lower cost, when paired with an adapted harness that can be automatically discovered by a meta agent. The key insight is that much of the task difficulty is shared across instances and can be lifted from the model into the harness via tailored instructions, tools, and orchestration loops. To study this systematically, we create a framework that maps agent failure modes to harness adaptation strategies, and build a harness optimizer that automatically discovers effective adaptations from failure trajectories. Across seven business-oriented agentic tasks and three SLM families, we found optimized harnesses significantly improve performance on 16 of 21 task-SLM pairs, with seven pairs closing the SLM-LLM performance gap and the best SLM agent recovering 89.7% of LLM performance at 4% of the cost.  \n1 Our analysis further shows that adaptation works best for tasks with more repetitive workflows and for SLMs with sufficient base capabilities. Together, these results suggest that harness adaptation can expand the practical deployment range of SLM agents in routine business tasks.  \nIndex Terms—agents; small language models; harness adaptation; cost-efficient AI deployment  \nI. INTRODUCTION  \nLarge language models (LLMs) power many agentic systems that are increasingly deployed in real-world business workflows [1], [2] . While frontier models deliver impressive performance, they incur substantial inference cost, high latency, and data-privacy concerns – businesses have poured billions of dollars into incorporating agents into their workflows [3], and that continuous spending can quickly become unsustainable [4] . Small language models (SLMs)2 have emerged as an alternative for replacing LLMs on agentic tasks, with their lower cost, better latency, and less privacy concerns [8] . While SLMs fall short of LLMs on general-purpose agentic coding tasks [9], many business-relevant tasks do not require open-ended creativity, but only reliable execution of routine workflows within a constrained environment [8] – this makes SLMs an attractive option for replacing LLMs in these contexts. As a concrete example, suppose we want to deploy an agent to collect, review, and communicate various budget requests  \n1Code available at 􀂇 [https://github.com/malusamayo/migration-analysis](https://github.com/malusamayo/migration-analysis).  \n2We use SLMs operationally for cheaper, smaller, open-weight models that can be deployed locally. Our experiments use models with 3B to 8B (8B to 30B) active (total) parameters (e.g., qwen3-30b-a3b [5]) . In comparison, frontier open-sourced models have more than 1T model parameters [6], [7] .  \nin a company, a routine business function that many try to automate. We can deploy an agent with a frontier LLM that will perform very well (97.3% accuracy with gemini-3 . 1-pro on curated evaluation data), but is also expensive ($0.22 per query) to deploy in production. Alternatively, we can deploy the same agent with an SLM. The agent, however, performs worse (75 .0% with gemma-4-26b-a4b) and cannot make a reliable replacement (Figure 1) .  \nIn this paper, we demonstrate that, for many routine agentic tasks in business settings, we can build specialized SLM agents that are 90% cheaper yet with on-par performance with LLM agents. This is achieved by pairing SLMs with well-adapted harnesses that can be discovered automatically ","cbCaibWTJw8N2PAT","https://ap.wps.com/l/cbCaibWTJw8N2PAT","pdf",696336,1,12,"English","en",105,"# Introduction\n## Cost and limitations of frontier LLM agents\n## SLMs as an alternative for routine business workflows\n## Harness adaptation concept and motivation","[{\"question\":\"Why are frontier LLM agents costly for large-scale business deployment?\",\"answer\":\"Their inference cost, latency, and data-privacy concerns make continuous production spending hard to sustain.\"},{\"question\":\"How does automated harness adaptation improve SLM agent performance?\",\"answer\":\"It moves shared task difficulty from the model into a tailored harness using tailored instructions, tools, and orchestration loops, scaffolding the SLM with constraints and plan structure.\"},{\"question\":\"What results show the cost and performance benefits of the proposed approach?\",\"answer\":\"Across seven business-oriented agentic tasks and three SLM families, optimized harnesses improve performance on 16 of 21 task-SLM pairs; seven pairs close the gap, and the best SLM recovers 89.7% of LLM performance at about 4% of the cost.\"}]",1784178219,30,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"better-harnesses-smaller-models-building-90-cheaper-agents-via-automated-harness-adaptation","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/better-harnesses-smaller-models-building-90-cheaper-agents-via-automated-harness-adaptation/82102/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"Why are frontier LLM agents costly for large-scale business deployment?","Question",{"text":75,"@type":76},"Their inference cost, latency, and data-privacy concerns make continuous production spending hard to sustain.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does automated harness adaptation improve SLM agent performance?",{"text":80,"@type":76},"It moves shared task difficulty from the model into a tailored harness using tailored instructions, tools, and orchestration loops, scaffolding the SLM with constraints and plan structure.",{"name":82,"@type":73,"acceptedAnswer":83},"What results show the cost and performance benefits of the proposed approach?",{"text":84,"@type":76},"Across seven business-oriented agentic tasks and three SLM families, optimized harnesses improve performance on 16 of 21 task-SLM pairs; seven pairs close the gap, and the best SLM recovers 89.7% of LLM performance at about 4% of the cost.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":28,"slug":121},"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]