Skip to content

Inference Economics of Enterprise Coding Agents: A Case Study of Cloud vs. On-Premise LLMs

Jul 2026 · arXiv.org · Vol abs/2607.13080 · 1 citation · 36 references
Computer Science

TL;DR

A single-developer, non-randomized longitudinal case study over two contiguous 28-day periods on a production monorepo shows hybrid routing gateways trade defect rate for infrastructure savings along a cost-quality frontier rather than dominate the pure-API baseline.

Abstract

Autonomous coding agents force engineering organizations to choose between API-based frontier models -- strong reasoning at high token cost -- and on-premise quantized open-weights models, which promise low-marginal-cost scaling and data sovereignty at some loss of reasoning fidelity. We study this trade-off through a single-developer, non-randomized longitudinal case study over two contiguous 28-day periods on a production monorepo: an API-based Claude Opus 4.7/4.8 configuration using Claude Code versus an on-premise GLM-5.1/5.2 configuration using Opencode, quantized to NVFP4, on NVIDIA Blackwell hardware. Analyzing LLM telemetry and Git history, we find that prompt caching (99.3% hit rate) cuts realized API cost by 88.6% to an effective \$0.57 per million tokens -- below even the \$2.83 amortized unit cost of the shared on-premise slice (a utilization-dependent inversion; total realized spend and total cost of ownership (TCO) are the robust quantities). At comparable gross code churn, the local configuration was associated with a far higher defect-repair burden: a Fix Commit Ratio (FCR) of 74.9% versus 45.9%, with the odds of a commit being a repair 2.6 to 4.9 times higher within every difficulty tier (Mantel-Haenszel OR = 3.61). Under Taiwan-market parameters and a symmetric labor model, on-premise deployment nonetheless saves 40.1% of true TCO under shared GPU allocation, whereas dedicated reservation costs 43.8% more than the cached API. Under shared allocation, the genuine penalty is not monetary but a measurable developer-experience burden -- timestamp indicators show more work trapped in debugging spirals and a slower commit cadence -- and an offline replay shows hybrid routing gateways trade defect rate for infrastructure savings along a cost-quality frontier rather than dominate the pure-API baseline.

View source

Similar papers

#small language model Preprint Sep 2026

ANI-Gamut: Benchmarking Agent Reliability across the Gamut of Agent-Network Interface Abstractions

ANI-Gamut is presented, a reproducible, open-source playground that exposes the same task at several levels on a single, densely populated brownfield substrate, where many coexisting services share resources and collateral damage actually arises.

Lorenzo Bracciale, P. Loreti, A. Mayer et al. · 0 citations
Preprint Oct 2026

Engineering Sustainable Agents: A Systematic Comparison of Agentic LLMs for Developer Workflows

Large language models (LLMs) are increasingly used in software engineering, including agentic systems that coordinate multiple agents, but impose higher computational and environmental costs. In this paper, we present a comprehensive empirical study of agentic LLM systems across five software engineering tasks: code ge...

Merve Astekin, Y. N. Tun, Arda Goknil et al. · 0 citations
#artificial intelligence Preprint Sep 2026

CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents

CliffCompaction is developed, an autocompaction technique that reduces cost by up to 50% under a bounded context while maintaining or improving performance on Terminal-Bench and achieving new levels of efficiency for test-time scaling and state-of-the-art results on KernelBench.

Trang Nguyen, Eulrang Cho, Bing-Qing Chen et al. · 0 citations
#natural language process... Preprint Aug 2026

An Empirical Cost Attribution of Context-Compression Gateways in Multi-Turn Coding Agents

This work instrument a production compression gateway between coding agents and frontier LLMs, and decompose the token bill of real sessions into three independent levers: tool-schema filtering, content compression of file reads and tool output, and history summarization, which distill the results into an actionable re...

Lu Chen, Jiayu Shi · 0 citations
#machine learning Preprint Sep 2026

Code-to-Harness: Distilling Black-Box Optimizers from Self-Play

This work studies low-budget black-box optimization, where unaided language models remain well below strong classical optimizers and attains the lowest regret on a sealed YouTube reward-tuning production benchmark.

Yi Wu, Zheng Ren, Zhi-Yu Hu et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Harness or Model? Isolating the Harness Effect in Agentic Coding with a Contamination-Controlled Private Suite

An agentic coding system couples a language model to a harness: the tools, prompts and control flow that turn a chat model into an autonomous software engineer. Vendors ship harnesses tuned to their own models, and practitioners assume the vendor-native pairing solves more tasks. We measure that assumption with paired...

Mohsen Arjmandi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.