cs.SEMar 16, 2026

Loosely-Structured Software: Engineering Context, Structure, and Evolution Entropy in Runtime-Rewired Multi-Agent Systems

Authors: Weihao Zhang, Yitong Zhou, Huanyu Qu, Hongyi Li

Organizations: The Hong Kong University of Science and Technology, Hong Kong SAR, China · AI Chip Center for Emerging Smart Systems, Hong Kong SAR, China · University of Macau, Macau SAR, China · Tsinghua University, China

Abstract

As LLM-based multi-agent systems (MAS) become more autonomous, their free-form interactions increasingly dominate system behavior. However, scaling the number of agents often amplifies context pressure, coordination errors, and system drift. It is well known that building robust MAS requires more than prompt tuning or increased model intelligence. It necessitates engineering discipline focused on architecture to manage complexity under uncertainty. We characterize agentic software by a core property: runtime generation and evolution under uncertainty. Drawing upon and extending software engineering experience, especially object-oriented programming, this paper introduces Loosely-Structured Software (LSS), a new class of software systems that shifts the engineering focus from constructing deterministic logic to managing the runtime entropy generated by View-constructed programming, semantic-driven self-organization, and endogenous evolution. To make this entropy governable, we introduce design principles under a three-layer engineering framework: View/Context Engineering to manage the execution environment and maintain task-relevant Views, Structure Engineering to organize dynamic binding over artifacts and agents, and Evolution Engineering to govern the lifecycle of self-rewriting artifacts. Building on this framework, we develop LSS design patterns as semantic control blocks that stabilize fluid, inference-mediated interactions while preserving agent adaptability. Together, these abstractions improve the designability, scalability, and evolvability of agentic infrastructure. We provide basic experimental validation of key mechanisms, demonstrating the effectiveness of LSS.

Figures & tables

Explore similar work

CardsList
  1. Scaling LLM-Driven Multi-Agent Systems: Design Principles and Architectural Scalability Analysis

    Jul 30, 2026Linus Sander, Fengjunjie Pan, Vahid Zolfaghari +3Multi-Agent LLM SystemsMulti-Agent System Optimization

  2. MAS-Lab: A Specification-Driven Validation Framework for Reliable Multi-Agent Systems

    Jun 29, 2026Jordan Augé, Giovanna Carofiglio, Giulio Grassi +1Multi-Agent LLM SystemsAutomated Software Testing

  3. AgentSoV: Virtual Sensing for LLM Multi-Agent Systems via Stream of Variation

    Oct 17, 2026Congjing Zhang, Siyuan Xu, Yunfei Bai +3Multi-Agent LLM SystemsMulti-Agent Systems