DCAS: Decoupling CLI Agent Scaffolding to Internalize Planning across Scaffolds

Kishanthan Thangarajah, Boyuan Chen, Ahmed E. Hassan

arXiv:2608.06113 · 2026-08-10 공개 · arXiv · PDF

software-engineering model-finetuning trajectory-collection cli-agents cross-scaffold-evaluation api-interception planning-structure dcas

Abstract

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.

한국어 요약

한 줄 요약

DCAS는 CLI 에이전트의 플래닝 구조를 학습 가능한 모델 기능으로 전환하여 다양한 스크래프에서의 성능 저하를 해결한다.

핵심 기여도

핵심 아이디어

CLI 기반 소프트웨어 엔지니어링 에이전트는 OpenHands 스크래프에서 훈련된 데이터로 미세 조정되었을 때, 동일한 환경에서는 잘 작동하지만, 다른 스크래프에서는 성능이 급격히 저하된다. 이는 훈련 스크래프의 관례에 의존한 플래닝 구조 때문으로, 이는 모델에 내재화되지 않은 고정된 구조이다. 본 연구는 이 문제를 해결하기 위해, 플래닝을 고정된 스크래프 아티팩트에서 학습 가능한 모델 기능으로 전환해야 한다고 주장한다. 이를 위해 DCAS를 제안하여, 스크래프와 백엔드 모델 간의 분리가 가능하도록 설계했다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용

DCAS는 CLI 기반 에이전트가 다양한 개발 환경에서 사용될 수 있도록 지원하며, 특히 DevOps 자동화, 코드 생성, CI/CD 파이프라인 등에서 유용하게 활용될 수 있다.