Linglong Agent Service: A Runtime for Centralized Agent Reasoning and Distributed Execution
Abstract
LLM agents can use remote tools and cloud sandboxes, but integrating reasoning, session state, and heterogeneous execution sites remains a runtime design problem. We present Linglong Agent Service (agentsvc), a self-hosted HTTP service and embeddable Python runtime that treats execution site as a configurable dimension alongside model, tools, and context. A parent service retains inference orchestration, tool descriptions, and conversation history; each inference request selects one child environment for file, shell, terminal, and MCP operations. Direct HTTP and child-initiated WebSocket tunnels carry the same application interfaces, including portable request context and centrally managed updates. The normal core path requires no third-party Python packages, with an optional Windows pseudo-terminal dependency. We further present onlinedebugger as the process-scale special case of execution-site separation: an instrumented program submits exception evidence, executes session-scoped inspection tools inside the incident process, and resumes the same diagnostic session. Its default prompt requires failing-then-passing reproduction evidence for source changes, while runtime patch activation and failed-call recovery remain unimplemented. We explain the design through constrained expected-utility reasoning, compare concrete mechanisms with Hermes Agent, Pi, Codex, and Claude Code, and report implementation and regression-test evidence. The current evidence establishes executable contracts, not performance advantages, repair accuracy, or production recovery. The source code is open source under the MIT license at https://github.com/mz24cn/agents.
Create a lesson
Related papers
ACE-Brain-0.7: Learning Execution-Grounded Reasoning for Embodied Agents
Shared title terminology · Yinhe Wang, Shijun Shi, Feng Pan et al.
Reasoning on Call: Efficient Agentic Robot Control for Long-Horizon Robot Manipulation
Shared title terminology · Zilang Cen, Chao Tang, Fangcheng Liu et al.
Learning and Verifying Progress: Closed-Loop Agentic Planning with Progress-Enhanced Execution for Long-Horizon Vision-Language Navigation
Shared title terminology · Kangjie Zhou, Sukai Wang, Yuhan Xiao et al.
Cooperative Transport of Unknown Objects by Distributed Effort Regulation in Multi-agent Systems
Shared title terminology · Tamzidul Mina, Shyam S. Kannan, Wonse Jo et al.
Seeing Is Not Steering: Where Verifiable Reasoning Can Enter an End-to-End Driving Planner
Shared title terminology · Gautam Kumar Jain, Atharva Mahindrakar, Shubham Phoolari et al.
ROSWORLD: When Digital Task Competence Meets Physical Execution
Shared title terminology · Caoyuan Ma, Wendi Liu, Zhimin Zhang et al.