Local-Splitter: A Measurement Study of Seven Tactics for Reducing Cloud LLM Token Usage on Coding-Agent Workloads

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Agyemang, Justice Owusu, Kponyo, Jerry John, Amponsah, Elliot, Boakye, Godfred Manu Addo, Agyekum, Kwame Opuni-Boachie Obour
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917406188765184
author Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
author_facet Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
contents We present a systematic measurement study of seven tactics for reducing cloud LLM token usage when a small local model can act as a triage layer in front of a frontier cloud model. The tactics are: (1) local routing, (2) prompt compression, (3) semantic caching, (4) local drafting with cloud review, (5) minimal-diff edits, (6) structured intent extraction, and (7) batching with vendor prompt caching. We implement all seven in an open-source shim that speaks both MCP and the OpenAI-compatible HTTP surface, supporting any local model via Ollama and any cloud model via an OpenAI-compatible endpoint. We evaluate each tactic individually, in pairs, and in a greedy-additive subset across four coding-agent workload classes (edit-heavy, explanation-heavy, general chat, RAG-heavy). We measure tokens saved, dollar cost, latency, and routing accuracy. Our headline finding is that T1 (local routing) combined with T2 (prompt compression) achieves 45-79% cloud token savings on edit-heavy and explanation-heavy workloads, while on RAG-heavy workloads the full tactic set including T4 (draft-review) achieves 51% savings. We observe that the optimal tactic subset is workload-dependent, which we believe is the most actionable finding for practitioners deploying coding agents today.
format Preprint
id arxiv_https___arxiv_org_abs_2604_12301
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Local-Splitter: A Measurement Study of Seven Tactics for Reducing Cloud LLM Token Usage on Coding-Agent Workloads
Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Software Engineering
We present a systematic measurement study of seven tactics for reducing cloud LLM token usage when a small local model can act as a triage layer in front of a frontier cloud model. The tactics are: (1) local routing, (2) prompt compression, (3) semantic caching, (4) local drafting with cloud review, (5) minimal-diff edits, (6) structured intent extraction, and (7) batching with vendor prompt caching. We implement all seven in an open-source shim that speaks both MCP and the OpenAI-compatible HTTP surface, supporting any local model via Ollama and any cloud model via an OpenAI-compatible endpoint. We evaluate each tactic individually, in pairs, and in a greedy-additive subset across four coding-agent workload classes (edit-heavy, explanation-heavy, general chat, RAG-heavy). We measure tokens saved, dollar cost, latency, and routing accuracy. Our headline finding is that T1 (local routing) combined with T2 (prompt compression) achieves 45-79% cloud token savings on edit-heavy and explanation-heavy workloads, while on RAG-heavy workloads the full tactic set including T4 (draft-review) achieves 51% savings. We observe that the optimal tactic subset is workload-dependent, which we believe is the most actionable finding for practitioners deploying coding agents today.
title Local-Splitter: A Measurement Study of Seven Tactics for Reducing Cloud LLM Token Usage on Coding-Agent Workloads
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2604.12301