Rath-Team/OpenRath
An open-source, PyTorch-like runtime for dynamic multi-agent and multi-session workflows.
What it solves
OpenRath addresses the complexity of managing large-scale agent clusters where multiple agents must collaborate across various conversation branches. It solves the problem of "prompt spaghetti" and opaque state by treating the agent runtime state as explicit, composable Python objects, enabling better traceability, context reuse, and durable execution in production environments.
How it works
OpenRath uses a "Session-first" architecture, drawing a conceptual parallel to PyTorch. Instead of focusing on the agent loop, it centers on the Session as the primary dataflow object.
- Session: Acts like a tensor, carrying conversation state, lineage, and placement.
- Agent: Acts like a layer (e.g.,
nn.Linear), transforming one session into another using prompts and tools. - Workflow: Acts like a module (
nn.Module), composing agents and tools into larger, nested systems. - Sandbox: Defines the execution environment (local or containerized) where tools actually run.
- Memory: Provides a persistent state plane that agents can recall and commit to across different runs.
- Selector: An LLM-backed router that dynamically chooses the next workflow to execute.
For production, it compiles Python definitions into immutable execution plans with durable runs, checkpoints, and an effect ledger to ensure resilience and idempotency.
Who it’s for
It is designed for developers building complex multi-agent systems that require durable execution, strict provenance (lineage), sandboxed tool execution, and the ability to scale from a single assistant to a massive cluster of collaborating agents.
Highlights
- Multi-Agent Multi-Session Paradigm: Supports complex dataflows where many agents share and evolve many sessions.
- Durable Runtime: Features checkpoints, leases, and interrupts to allow runs to survive process restarts and incorporate human approval.
- Session Lineage: Maintains a graph-shaped provenance layer to track which role or tool produced specific outputs.
- Decoupled Backends: Pluggable support for different sandbox execution environments and memory storage systems.
- Composable Workflows: Allows nesting agents and workflows to manage large-scale orchestration without complex prompting.
Related
- Project
- Project
- Project
- Project
- Project