Architecture
How Sypnia Agent is built, where each part runs, and why the safety rules live outside the model.
- You or another agent start a task.
- The orchestrator reads your profile, memory, map and plan, and keeps the budget.
- The model proposes the next step; the orchestrator checks it against the rules.
- The sandbox supervisor runs commands, behind an egress proxy.
- Products are used through MCP, with your permissions.
- Approvals reach you; nothing on the ask list happens without one.
| Part | What it does | Language | Open source |
|---|---|---|---|
| CLI | your terminal: start tasks, answer, approve, read logs | TypeScript | yes |
| Orchestrator | plans steps, calls the model, enforces the tiers and the budget, keeps state | TypeScript | yes (the local one) |
Sandbox supervisor (sypnia-sandbox) | starts the sandbox, enforces file and network policy, limits, logs every command | Rust | yes |
| Sandboxes | where commands run | — | local: yes; hosted: Cloud |
| Model gateway | Sypnia AI, or your endpoint | — | — |
| Memory and profile | your level, preferences, project notes | Sypnia Data (Cloud), files (local) | — |
Why the rules live outside the model
A model can be wrong, or be tricked by text in a file. So the model only proposes steps; the orchestrator checks every step against the rules before running it, and the supervisor enforces the sandbox no matter what the step says. Rust is used where a mistake would be a security hole: the sandbox and the egress proxy.
- A task, a step, an approval.
- Tasks, steps, approvals, memory.
- The reference implementation.
- What happens when something breaks.
- Where everything lives.