DCAS: Decoupling CLI Agent Scaffolding to Internalize Planning across Scaffolds
Abstract
Decoupling CLI agent scaffolding enables cross-scaffold evaluation and shows that learning planning improves generalization across different agent environments.
CLI-based software-engineering agents have matured rapidly, yet the open ecosystem has converged on a single training environment: trajectory datasets used to fine-tune open models are collected almost exclusively under OpenHands. Models fine-tuned on this data score well under OpenHands but degrade substantially when deployed under any non-training scaffold. Untrained base models do not show this divergence, indicating the gap is fine-tuning-induced and tied to the conventions of the training scaffold. We argue that a load-bearing scaffold-specific behavior is planning structure, in two senses this paper distinguishes: explicit planning, a pre-execution plan produced as a first-class artifact, and implicit planning, the structural conventions that shape execution throughout the agent loop. Under this hypothesis, closing the gap requires moving planning from a fixed scaffold artifact to a learned model capability. We introduce Decoupling CLI Agent Scaffolding (DCAS), a backend-substitution interception layer that routes API traffic between any CLI scaffold and any backend model without modifying the scaffold, enabling cross-scaffold evaluation and planning-aware trajectory collection. Using DCAS, a controlled plan-source intervention confirms planning quality is a high-leverage component, with gains exceeding the cross-scaffold drops we observe. A model fine-tuned on a small set of DCAS-collected planning-aware trajectories under a single scaffold gains consistently across non-training scaffolds, and the two senses of planning are empirically separable in training data.
Community
SWE-Lego, Nebius, CoderForge, SWE-Gym. Every major open trajectory dataset for CLI coding agents is collected primarily under the same scaffold, OpenHands, but practitioners pick their scaffold on cost, licensing, latency and data privacy.
We measured what happens when the training scaffold and the deployment scaffold are not the same. Across four top open models at the 30B to 32B scale on SWE-bench Verified, every fine-tuned model degraded on at least one scaffold it was not trained on, one losing 29 points under mini-swe-agent and another falling to 8.4%. The untrained base models did not show this spread, so the divergence is fine-tuning-induced.
We argue the highest-leverage behavior here is planning structure, both the plan a model produces as a first-class artifact before acting and the structural conventions that shape execution throughout the agent loop. To test that we built DCAS, a backend-substitution interception layer that routes API traffic between any CLI scaffold and any backend model without modifying the scaffold. Changing only who wrote the plan moves Qwen3-Coder-30B-A3B-Instruct from 42.8% to 57.8% Pass@1 with the executor and scaffold held fixed, and full-parameter SFT on just 576 planning-aware trajectories collected through DCAS reaches 55.8% under self-plan, then 57.2% on a Claude Code release published after collection, 49.4% on OpenCode and 42.4% on mini-swe-agent, none of which the model saw during training.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Steer, Don't Solve: Training Small Critic Models for Large Code Agents (2026)
- Embodied Agents Take Control: Minimal-Interface Zero-Shot Agents Rival Industrial-Scale Policies in Vision-and-Language Navigation (2026)
- Nanbeige4.2-3B: Unlocking Agentic Capabilities in a Compact Model (2026)
- RoboBRIDGE: A Modular Framework for Bridging Policies to Robust Real-World Robotic Agents (2026)
- Cost-Effective Agent Harnesses for Abstract Reasoning and Generalization on ARC-AGI-1 (2026)
- CLIFT: Turning Gemini Robotics On-Device into Humanoid Specialists via Non-Invasive Closed-Loop Iterative Fine-Tuning (2026)
- Harness VLA: Steering Frozen VLAs into Reliable Manipulation Primitives via Memory-Guided Agents (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper