Manuscript Offprint

arXiv:2610.21755

DeciCAD: Harness-Grounded Learning of Action Policies for CAD Agents

Yufeng Peng, Yixin Zhang, Ziyi Liu, Zhikun Xu, Jiarong Yang, Sijie Wang, Wenjie Feng, Qiyu Kang

Abstract

Large Language Model agents operate through closed-loop action policies whose decision space is defined by an agent harness. We investigate how this operating space shapes agent behavior and policy learning in computer-aided design (CAD), a professional domain characterized by persistent state, geometric constraints, and long-horizon procedures. We instantiate this perspective in DeciCAD, a domain-native harness that exposes semantic CAD actions, decision-oriented observations, environment feedback, and persistent state transitions. Building on this harness, we develop a learning pipeline that extracts causal decision supervision from interaction trajectories and improves the policy through supervised fine-tuning (SFT) and geometry-grounded online reinforcement learning (RL). Across four CAD benchmarks, DeciCAD achieves the best F1 and intersection over union (IoU) while reducing model-output tokens by 45–88% relative to a general-purpose coding harness. Under matched supervision, its SFT policy improves F1 from 0.6883 to 0.7437 and outperforms the coding policy; subsequent online RL further raises geometry availability from 66.5% to 73.5% and F1 to 0.7880. These results demonstrate that the decision space induced by a harness materially affects both agent execution and policy learning in CAD.

1 Introduction

Large Language Models (LLMs) are increasingly being used as agents to operate professional software and complete long-horizon tasks (Achiam et al. 2023; Naveed et al. 2025; Guo et al. 2024). Computer-aided design (CAD) is a particularly demanding setting for such agents (Willis et al. 2020; Wu, Xiao, and Zheng 2021). Unlike one-shot content generation, CAD modeling requires a sequence of state-dependent operations over a persistent design document. An agent must create and modify sketches, constraints, features, and geometric objects; inspect intermediate results; recover from execution failures; and maintain references across long interaction trajectories. In this process, the model outputs are interpreted as actions: each action changes the current CAD state, produces execution feedback, and conditions the next decision (Yao et al. 2023; Schick et al. 2023). The effectiveness of a CAD agent therefore depends not only on the underlying model and its reasoning strategy, but also on how

Figure

Figure 1: Harness-induced CAD decision spaces under controlled model and environment conditions. Given the same LLM policy, CAD task, persistent design state, and geometry evaluator, the coding harness represents decisions through code and shell commands and returns files and console output. DeciCAD instead exposes semantic CAD actions and returns object-level state and execution outcomes. The two interfaces therefore induce different action–observation histories over the same underlying modeling process.

CAD actions, states, and execution outcomes are represented to the model.

Such a model–environment boundary is defined by an agent harness (Yang et al. 2024). In CAD, a harness determines which design operations the model can express, which parts of the evolving design state it can inspect, and how execution outcomes are returned for subsequent decisions. A general-purpose coding harness may expose the CAD system through programs, libraries, and runtime feedback, whereas a domain-native harness may expose structured CAD actions and object-level observations. Consequently, even when the model, task, and CAD backend remain fixed, different harnesses can present the model with substantially different de-

†^{\dagger}Correspondence to: Qiyu Kang qiyukang@ustc.edu.cn.

cision spaces, as illustrated in Figure 1. Existing work has studied CAD code generation, tool-using agents, execution repair, and interactive modeling (Mallis et al. 2024; Guan et al. 2025; Doris et al. 2025; Wang et al. 2025; Barkley, Loghmani, and Barati Farimani 2026; Gong et al. 2026), but the harness itself is typically treated as implementation infrastructure rather than as a variable that shapes both agent execution and policy learning. This raises a central question: How should a CAD agent harness represent actions and states so that it preserves the decisions required for complex modeling while avoiding representation burden that is irrelevant to the task?

This trade-off is important in CAD. A fine-grained coding interface gives the model broad control over the underlying software, but the same CAD operation can often be expressed through many programs, command sequences, variable names, temporary objects, and API combinations. These implementations may produce the same geometric state transition, but they appear as different generation and supervision targets. The model must then spend capacity on implementation choices that do not affect the intended state transition. A semantic interface can remove many of these choices by representing the intended operation directly. However, excessive compression can hide state differences that require different actions or remove operations needed for correct modeling and error recovery. A useful harness must therefore reduce irrelevant representation choices while preserving the actions and observations needed for correct decisions.

To make this trade-off explicit, we formalize the model-facing interface as a Harness-Induced CAD Decision Space: a harness maps model outputs to executable operations, maps internal CAD states to model-visible observations, and returns execution results as feedback, thereby determining which operations the agent can perform, which state differences and failures it can identify, and which policies it can execute and learn. We then introduce the Semantic Decision Bottleneck as a design principle for this space: it compresses behaviorally equivalent implementations and removes state information that does not affect the next decision, while preserving the actions and observations needed to reach the target geometry and recover from errors.

Following this principle, we develop DECICAD, a domain-native harness for closed-loop CAD agents. DECICAD represents task-relevant design transitions as semantic CAD actions, grounds these actions in a persistent CAD document, and returns structured execution feedback together with decision-oriented observations. We further develop a harness-grounded learning pipeline that reconstructs causally conditioned action supervision from successful and recovered interaction trajectories, initializes CAD action policies through supervised fine-tuning (SFT), and supports online reinforcement learning (RL) using policy-generated trajectories and geometry-grounded rewards. Figure 2 summarizes this execution and learning loop.

Across four CAD benchmarks, DECICAD consistently produces more accurate final geometry than competitive CAD agents and a general-purpose coding harness, while reducing model-output tokens by 45–88% relative to the coding harness on text-to-CAD tasks. Observation ablations show that showing more CAD state does not always help: unfiltered state inflates the input context, and coarse feedback strips out what the agent needs in order to recover. With matched training settings, open-weight models trained in the DECICAD decision space learn stronger long-horizon CAD action policies than the same models trained through code-level interaction.

Our contributions are summarized as follows:

• We define the Harness-Induced CAD Decision Space and introduce the Semantic Decision Bottleneck as a design principle for CAD agent interfaces. We design DECICAD, which combines semantic CAD actions, compact observations, structured feedback, and persistent object state.

• We develop a harness-grounded policy-learning pipeline that reconstructs causally conditioned supervision from interaction trajectories, initializes policies through SFT, and supports geometry-grounded online RL.

• Experiments across four benchmarks verify DECICAD improves geometric accuracy, token efficiency, error recovery, and long-horizon policy learnability significantly.

References (41)