中文
← Back to news
FrameworksJun 17, 2026

Tsinghua Team Proposes OpenRath: A Session-Centric Multi-Agent Runtime Framework

The Rath Team from Tsinghua University, Sun Yat-sen University, and The Chinese University of Hong Kong has open-sourced OpenRath, a multi-agent runtime framework that treats Session as a first-class citizen instead of Agent. This design addresses issues like chaotic state management and debugging difficulties in multi-agent systems. Inspired by PyTorch, OpenRath maps Session to Tensor, Agent to Layer, and Sandbox/Memory to Device/Parameter, enabling modular and composable agent clusters. The framework supports Multi-Agent Multi-Session (MAMS) mode, with capabilities for session forking, merging, and reuse, and includes built-in tools for file, shell, and code execution. OpenRath v1.2.1 is available on PyPI under the BSD-3-Clause license.

Background: State Management Challenges in Multi-Agent Systems

As the number of agents increases, traditional agent-centric designs expose serious issues: each agent maintains its own context, task forks become hard to track, and states like tool calls, memory, and sandboxes are scattered. When the system scales to dozens or hundreds of agents, debugging, reproduction, and orchestration become extremely difficult. Existing frameworks like AutoGen, CrewAI, and LangGraph mainly address inter-agent communication but do not deeply handle session state persistence and routing.

Core Design: Session as a First-Class Citizen

OpenRath proposes using Session as the carrier of state and evidence, rather than simple chat history. A Session records the complete execution trace, including tool call parameters and results, file changes, sandbox identity, failure paths, approval signals, etc. Agents are designed as transformation layers on Sessions, following the interface forward(session) -> session, allowing them to be stacked and nested like neural network layers. Workflow corresponds to PyTorch's Module, enabling chaining multiple agents, forking sessions, compressing context, etc.

Key Features: MAMS and Pluggable Backends

  • Multi-Agent Multi-Session (MAMS): Supports a four-quadrant pattern of Agent count × Session count, where the real need for forking, merging, and reusing lies in Session data flows.
  • Pluggable Backends: Sandbox (e.g., sandbox environment) and Memory (e.g., long-term memory) are replaceable backends decoupled from computation logic, similar to PyTorch's device concept.
  • Tool Abstraction: FlowToolCall unifies tool definition and execution, with built-in file, shell, and code execution tools, and supports MCP protocol adaptation.

Comparison with Existing Frameworks

FrameworkCore AbstractionState ManagementUse Case
AutoGenMulti-agent dialogueMessage listChat-style collaboration
LangGraphGraph state + SupervisorGraph stateRouting and control
OpenRathSession + WorkflowPersistent SessionProduction-grade agent clusters

OpenRath emphasizes that agent clusters are not group chats but a runtime control plane built on persistent Session states.

Open Source and Ecosystem

  • Version: v1.2.1 (PyPI)
  • Installation: pip install openrath
  • License: BSD-3-Clause
  • Resources: Website (openrath.com), Docs (docs.openrath.com), Blog (blog.openrath.com), GitHub (github.com/Rath-Team/OpenRath)

Also available in 中文.