EdgeWise: Bringing Long-Horizon Agents to the Edge via Selective Cloud Delegation A paper introducing EdgeWise, an edge-cloud collaboration framework that runs a small language model on the local device and delegates only critical steps to a cloud LLM, matches or outperforms pure frontier-model execution while cutting inference cost by up to 62% on SWE-Rebench and 34% on Terminal-Bench 2.1, its authors report. EdgeWise uses a step-level reinforcement learning method that jointly optimizes task solving and delegation with fine-grained credit assignment, plus an external judge-based delegation strategy to study when to delegate, how decisions are made, what context is shared, and how often the cloud model is invoked. The authors also deployed EdgeWise on a local workstation and reported comparable cost savings in a practical edge-cloud setting. Complex and long-horizon agent tasks often rely on frontier models deployed in the cloud to achieve strong performance. However, using these models for every step of a long-horizon trajectory incurs substantial inference cost, even though not all steps may require the same level of model capability. In this paper, we find that allocating the LLM to only a small subset of key steps can achieve performance comparable to full LLM execution while significantly reducing inference cost. Motivated by this observation, we propose EdgeWise, an edge-cloud collaboration framework that deploys an SLM on the local device as the primary solver and selectively delegates critical steps to a cloud LLM when stronger model capacity is needed. To enable autonomous delegation without additional models at inference time, we introduce a step-level RL method that jointly optimizes task solving and delegation, with fine-grained credit assignment for individual delegation decisions. We also introduce an external judge-based delegation strategy and use it to systematically investigate key design choices in edge-cloud collaboration, including when to delegate, how delegation decisions should be made, what context should be shared, and how frequently the cloud LLM should be invoked. Experiments show that EdgeWise matches or outperforms pure-LLM execution while reducing inference cost up to 62% on SWE-Rebench and 34% on Terminal-Bench 2.1. We further deploy EdgeWise on a local workstation, demonstrating comparable cost savings in a practical edge-cloud setting.