Architecture
Sage’s RSI loop reuses SAgents execution, context, tools, and Sessions. Hosts bind authorized inputs and resources to the runtime.
RSI workflow · Optimizer contracts
Application and runtime boundaries
flowchart TB
desktop[Desktop] --> runtime[SAgents]
server[Server] --> runtime
custom[Your Python host] --> runtime
runtime --> model[Models and context]
runtime --> tools[Tools and Skills]
runtime --> state[Sessions and execution]
Hosts own authentication, credentials, UI, global conversation indexes, and tool resource bindings. SAgentApplication owns runtime composition and component lifetimes. SessionStore is the authority for Session state and acknowledged events.
Read by topic
- Host development guide: standard SDK integration, plugin identity and application boundaries.
- Plugin architecture: registration, configuration, scopes, and host injection.
- Memory: context projection versus durable history.
- Tools and MCP: capabilities and authorization.
- Sandbox lifecycle: suspension and resource release.
- Agent package management · Server Agent platform.
- Resource management · Single-host concurrency.
- Context budgets · Model pool and persistence.
- Local sandbox constraints.
- Current support boundaries: execution, isolation, recovery, and deployment.
- Remote Skill import: supported sources, previews, and publication.
- Full runtime architecture: dependency rules and contracts.
Deployment boundary
The built-in schedulers and session stores do not make a distributed runtime. SQL persistence, per-user limits, and fencing are separate guarantees. Server supports one worker. Native local process execution is not container isolation; security depends on the selected provider and the guarantees it actually enforces.
Table of contents
- Plugin Architecture
- Sandbox Lifecycle
- Agent Package Management
- Resource Management
- Server Agent Platform
- Context Budgets
- Local Sandbox
- Model Pool and Persistence
- Single-host Concurrency
- Model Observability, Langfuse and Phoenix
- Code Reading Guide
- LLM Error Recovery
- Host Development
- Agent Manifest Reference
- Runtime Reference
- Cube workspace and execution
- Host Sandbox Integration
- Remote Skill Import
- Host Control Interfaces
- Run Tree Recovery
- Support Boundaries
- Tool Result Processing
- Server V2 IM Plugin Design
- RSI Evaluation and Tuning Loop Proposal (Draft)
- Session Attachments and History Summaries
- Skill management and usage