ComAct: Reframing Professional Software Manipulation via COM-as-Action Paradigm

Jiaxin Ai, Tao Hu, Xuemeng Yang, Shu Zou, Hairong Zhang, Daocheng Fu, Yu Yang, Hongbin Zhou, Nianchen Deng, Pinlong Cai, Zhongyuan Wang, Botian Shi, Kaipeng Zhang, Licheng WenarXiv 2026

TL;DR

The ComAct framework shifts the paradigm of computer-use agents from fragile GUI clicking to deterministic program synthesis by leveraging Windows' native Component Object Model (COM). By treating software manipulation as code generation rather than sequential visual control, the proposed ComActor agent achieves state-of-the-art performance and remarkable resilience on complex, long-horizon industrial CAD tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly deployed as "computer-use agents" to automate digital tasks. Currently, these agents rely on two main paradigms: graphical user interface (GUI)-based interaction (clicking and typing based on screenshots) or API-based tool invocation.

However, both approaches fail when applied to professional, heavy-duty software like Computer-Aided Design (CAD) tools. GUI agents struggle with dense, visually cluttered interfaces and accumulate errors over long-horizon workflows, leading to catastrophic failures. Meanwhile, API approaches are bottlenecked by fragmented, application-specific protocols, and the fact that commercial software giants rarely expose their full internal APIs. This paper addresses this tool deficit and visual fragility by introducing a unified programmatic action space.

Methods

The authors propose COM-as-Action (ComAct), a paradigm that reframes software interaction as deterministic program synthesis. Instead of clicking buttons, the agent generates Python scripts that interact directly with the software's underlying Component Object Model (COM)—a native Windows framework that exposes deep application internals for software like Microsoft Office, Adobe Creative Suite, and major CAD packages.

Figure 1: Comparison of existing computer-use paradigms and our proposed ComAct paradigm. GUI-based agents rely on fragile visual grounding and suffer from long-horizon error accumulation, while API-based agents are constrained by fragmented and limited interfaces. In contrast, we leverage the COM as a unified semantic programmatic interface, enabling executable program synthesis and cross-application workflows.

To operationalize this paradigm, the authors developed:

  1. ComForge: A highly parallelized infrastructure hosting thousands of concurrent, Dockerized Windows virtual machines running real CAD software to execute scripts and provide real-time feedback.
  2. ComActor: A self-correcting agent trained via a progressive three-stage framework:
  3. Stage 1 (Instruction-to-Code SFT): Bootstraps the model to learn basic COM API syntax.
  4. Stage 2 (Agentic Refinement): Multi-turn training where the model learns to interpret terminal errors and screenshots to debug its own code.
  5. Stage 3 (Task-Level Optimization via GRPO): Reinforcement learning using Group Relative Policy Optimization guided by a continuous geometric reward (measuring the Chamfer Distance between the generated model and the ground truth) to ensure the code is geometrically accurate.
Figure 2: Overview of our ComAct framework, consisting of three components: a data construction pipeline that synthesizes verified instruction–code pairs; a three-stage progressive training framework (text-to-code SFT, agentic SFT, and GRPO with continuous geometric reward); and a scalable infrastructure supporting 1000+ parallel real Windows environments for training and evaluation.

Datasets

  • ComCADBench (New): The first benchmark designed for evaluating agents on real industrial CAD software (SolidWorks, Inventor, AutoCAD). It contains 1,000 tasks split into Single-Task (400 samples for basic operations) and Multi-Task (600 samples for long-horizon pipelines like assembly followed by interference detection).
  • Text2CAD & CADPrompt: External public CAD generation datasets used to evaluate the model's out-of-domain generalization capabilities.
Figure 3: ComCADBench covers 3 CAD platforms, 7 engineering activities, and supports long-horizon cross- application tasks, evaluated by comparing generated artifacts against ground truth.

Key Insights and Ideas

  • The GUI Collapse: Frontier models like GPT-5 and Qwen3.5 completely fail (0% success rate) when forced to use traditional GUI actions on professional CAD software. The visual density of micro-icons and 3D viewports makes pixel-level grounding nearly impossible over long sequences.
  • The Syntax-Geometry Gap: A script can compile and run perfectly without throwing any terminal errors, yet produce a 3D model that completely violates engineering constraints. This highlights why standard code-generation metrics are insufficient and why geometric reinforcement learning (Stage 3) is vital.
  • RAG Can Hurt: Counter-intuitively, Retrieval-Augmented Generation (RAG) degraded performance on several tasks. The retrieved API patterns often introduced idiomatic inconsistencies and crowded out critical task context from the model's limited context window.

Key Results

  • ComCADBench SOTA: The 9B ComActor model established a new state-of-the-art across all categories, consistently maintaining an end-to-end success rate above 80% on multi-task pipelines where proprietary giants like GPT-5 and Claude-3.7-Sonnet collapsed.
  • Robust Self-Correction: Thanks to its multi-stage training, ComActor successfully uses terminal tracebacks and visual feedback to fix its own code mid-trajectory before errors can cascade downstream.
Figure 4: An execution trajectory of our agent completing a multi-task pipeline (modeling and engineering drawing).
  • Excellent Generalization: On the Text2CAD benchmark, ComActor achieved the best geometric precision metrics (Mean Chamfer Distance of 1.20 with the Inventor backend), outperforming specialized domain models like CAD-Coder. On the out-of-domain CADPrompt dataset, it outperformed competitors by an order of magnitude in geometric fidelity.

Limitations and Future Work

  • Licensing and Activation: Due to commercial licensing constraints, the Windows environments in ComForge run on non-activated software versions, meaning evaluation must currently be conducted through a centralized submission platform.
  • OS Lock-in: The framework is currently limited to the Windows ecosystem because COM is a native Windows technology, though the concept could theoretically extend to other operating systems.
  • Context Window Constraints: ComActor currently relies on a relatively limited historical context during iterative code refinement. Future work will explore stronger long-horizon memory and structured execution histories to handle even more complex engineering workflows.

Summary updated

BibTeX
@misc{ai2026comact,
  author = {Jiaxin Ai and Tao Hu and Xuemeng Yang and Shu Zou and Hairong Zhang and Daocheng Fu and Yu Yang and Hongbin Zhou and Nianchen Deng and Pinlong Cai and Zhongyuan Wang and Botian Shi and Kaipeng Zhang and Licheng Wen},
  title = {{ComAct: Reframing Professional Software Manipulation via COM-as-Action Paradigm}},
  year = {2026},
  eprint = {2606.13239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13239},
}
Figure