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

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


Sage documentation for the current repository layout. Source available under the MIT license.

This site uses Just the Docs, a documentation theme for Jekyll.