What problem does it solve?
Building and operating agent-driven applications on the Tangle Sandbox SDK involves many moving parts: configuring provider backends, managing sessions, streaming event data, handling CLI OAuth materialization, and collecting telemetry. This Skill consolidates best practices, primitives, and operational patterns to reduce integration friction and runtime errors when developing against the sandbox stack.
Core Features & Use Cases
- Backend configuration & connection: Guidance for server-based and CLI-based provider integrations, profile usage, and cache keys.
- Session lifecycle management: Create, fork, execute, stream, persist, and shutdown agent sessions with workspace and auth resolution.
- SSE streaming & parsing: Use provided SSEChunkParser and parsing primitives to reliably stream and convert events into trace and signal formats.
- Auth materialization & security: Materialize CLI OAuth/auth files into sandbox HOME with safe path validation and permission handling.
- Telemetry & observability: Integrate trace sinks, signals, and usage tracking for Langfuse, OTEL, HTTP, or console sinks.
- Provider adapter development: Implement SdkProviderAdapter or extend the CLI base class to add new provider adapters and MCP integrations.
Quick Start
Use the sandbox-sdk to create a new agent session that connects to an OpenCode backend, stream SSE output to the client, and collect telemetry for the execution.