Modern software engineering agents solve tasks by interleaving reasoning with API calls that observe and modify their environment. On long-horizon tasks this degrades performance: the context fills with API documentation, authentication flows, and parameter details, forcing the agent to interleave reasoning about the task with discovery of the interface used to solve it, a conflict that compounds into failure.
We introduce SCOPE, an approach that decouples task analysis from implementation by a method of API transpiling. A planner agent first reasons about the task in isolation, defines a focused set of environment interactions it requires, and transpiles the raw APIs into a compact, task-specific toolset, verifying each tool before handoff. A solver agent then operates over this narrowed
interface, free of extraneous API documentation and complicated workflows.
On the AppWorld Benchmark with Minimax-M2, SCOPE reaches 81% accuracy on test_normal, a 5-point gain over a vanilla ReAct baseline under identical conditions, and a 71% accuracy on test_challenge, a 6-point gain over the baseline, while shortening solver trajectories by 48% and collapsing the exposed API surface from 74 endpoints to 4 task-specific tools on average.