Sage code map
The public path is SAgentBuilder.register → build(runtime=..., models=...) → load_agent → entrypoint().run_stream(..., agent=agent) → close.
- SDK composition map: bootstrap, immutable revisions, dependency scopes and Run binding.
- Host guide: capability registration, configuration and recovery.
- Desktop:
app/v2/desktop/backend/composition.py,sdk_plugins.py,run_service.py. - Server:
app/v2/server/bootstrap.py,runtime/sdk_plugins.py,runtime/loop.py. - Managed packages:
app/v2/server/packages/builder.pyreturnsApplicationConfiguration. - Native isolation:
sagents/v2/runtime/execution/plugins/local_binding/__init__.pyandsandbox/plugins/local/support/interpreter.py. - Runnable standard host: actual media, MCP, Skill and nested Team validation.
Host capability plugins implement their protocols; the SDK owns Agent loops, official tools, child execution, sandbox leases and recovery. Product identity and authorization come from the real Run context and frozen inputs.