# Sypnia Agent documentation > Sypnia Agent is a coding agent that builds your app one use case at a time, and talks to you at your level: in plain words if you do not program, in code if you do. It follows your design guide, your landing page and plan, and your map; it asks before anything that cannot be undone; and every task has a budget you set, paid with credits. Every page of the documentation follows, in reading order. Each one starts with its title and its address. --- ## Start here > What Sypnia Agent is, how it works, your level, what is open source and what is Sypnia Cloud, and the quickstarts. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/ For agents: Section index for Sypnia Agent: Sypnia's coding agent. It works one use case at a time (Cases), adapts how it talks to the person's level (a short knowledge test kept in the Sypnia account), follows three pillars (design guide, landing+plan contract, Sypnia skills), runs commands in a sandbox, asks before irreversible actions, and spends from a per-task budget in credits. Open-source CLI and local runner; Sypnia Cloud adds hosted sandboxes, synced memory, team approvals and Sypnia AI. Sypnia Agent writes software with you, one use case at a time. You tell it what you want in your words; it reads your map, says what is new, builds it, tests it, and asks before anything that cannot be undone. > **Note: Sypnia uses it too** > > Sypnia is built with Sypnia Agent: each change to the suite is made one case at a time, with its tests, and waits for a person where it matters. - **\[Engine]** **The agent in your terminal** is open source: the `agent` command and the runner that executes its work in a sandbox on your machine, with your own model key. - **\[Cloud]** **Sypnia Cloud** runs the same agent in hosted sandboxes, keeps your level and memory in your Sypnia account, adds approvals from your phone and your team, and pays models with credits through Sypnia AI. --- ## What Sypnia Agent is > Sypnia's coding agent, who it is for, and what it is not. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/what-it-is/ For agents: Sypnia Agent: a coding agent comparable to Claude Code, built around Sypnia's paradigm. Unit of work = a use case (or a map proposal). Talks at the person's level. Follows the three pillars. Uses Data, Cases, Git, Run and Telemetry through MCP. Sandboxed execution, explicit approvals, per-task credit budgets. Not an autopilot that deploys without asking; not tied to Sypnia's other products. Sypnia Agent is a coding agent in the family of Claude Code, built around how Sypnia works: **use cases** as the unit of work, a **contract** that says what is in scope, and **products** it can use on your behalf. ### What it does | | What it means for you | Read more | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | **Talks at your level** | If you do not program, it explains in plain words and shows you screens and use cases; if you do, it shows code and diffs | [Your level](https://agent.docs.sypnia.com/start/your-level) | | **Works one use case at a time** | Every task is tied to a case on your map; what is not on the map becomes a proposal first | [Tasks and use cases](https://agent.docs.sypnia.com/work/tasks-and-cases) | | **Follows the three pillars** | A design guide of its own for your project, your landing page and plan as the contract, and Sypnia skills | [The three pillars](https://agent.docs.sypnia.com/pillars) | | **Uses your products** | Data, Cases, Git, Run and Telemetry through MCP: it creates tables, opens pull requests, reads production errors | [Products it uses](https://agent.docs.sypnia.com/work/products) | | **Runs commands in a sandbox** | Tests, builds and scripts run isolated, never with your passwords or production access | [The sandbox](https://agent.docs.sypnia.com/safety/sandbox) | | **Asks before what cannot be undone** | Deploys, production data, messages to real people, deleting: always your decision | [What it does without asking](https://agent.docs.sypnia.com/safety/permissions) | | **Spends from a budget you set** | Every task has a budget in credits and stops before it | [Budgets](https://agent.docs.sypnia.com/safety/budgets) | ### Who it is for - **People who do not program** and want an app built to their landing page and plan, explained in their words. - **Programmers** who want an agent that keeps scope, tests and design honest, and that they can leave working. - **Other agents**: Claude Code or Cursor can delegate a use case to it through MCP. ### What it is not - **Not an autopilot.** It never deploys, migrates production data or contacts real people without your approval. - **Not a model.** It uses models through Sypnia AI or your own key; you can change the model. - **Not tied to the rest of Sypnia.** In your terminal it works on any repository; the Sypnia products make it better, not possible. --- ## How it works > A task, from your sentence to a reviewed change. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/how-it-works/ For agents: Task lifecycle: request → read profile (level), project memory, map, design guide, plan → classify against the map (existing case / new case → proposal / out of plan) → plan of steps shown at the person's level → work in the sandbox (edit, run tests) within the budget → questions and approvals when needed → result: a branch and a pull request linked to the case, with a summary at the person's level and the cost. **Figure**: Sypnia Agent. The agent plans with a model, works in a sandbox, uses the products through MCP, and stops for you at every approval. 1. You ask, in the terminal, the web, your phone, or through another agent. 2. The agent reads what it knows: your level, the project's memory, the map, the design guide, the plan. 3. The model plans and writes; the agent turns that into steps. 4. Commands run in a sandbox, never on your machine directly. 5. Products are used through MCP: Data, Cases, Git, Run, Telemetry. 6. Anything risky waits for your approval. #### 1. You ask in your words _«Customers can cancel an order until 10 am.»_ From the terminal, the web, your phone, or another agent. #### 2. It reads before it writes Your level, the project's memory, the map, the design guide and the plan. It checks the request against the map: an existing case, a new one, or something the plan does not include. #### 3. What is new becomes a proposal «Cancel an order» is not on the map, so the agent proposes the case first (actor, steps, failures such as _TooLate_, data) and waits for it to be approved ([Cases](https://cases.docs.sypnia.com/contract/versions-and-reviews)). #### 4. It tells you the plan, at your level For someone who does not program: _«I'll add a Cancel button to your orders until 10 am, and a message if it's later.»_ For a programmer: the files, the migration and the tests. #### 5. It works in a sandbox, within budget Edits, runs the tests and fixes what fails, inside a sandbox, spending from the task's budget. You can watch every step. #### 6. It stops where you decide A migration on production data, a deploy, a message to customers: it asks, and waits. #### 7. You get a reviewed change A branch and a pull request tied to the case (`Case: cancel-order`), a summary at your level, the tests that ran, and what the task cost. --- ## Your level > The short knowledge test, what it changes, and how to change it. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/your-level/ For agents: Knowledge test: ~10 questions, about 5 minutes, adaptive (stops early), covering reading code, web basics, data, tooling, deployment. Result: a profile {level: starter|builder|developer|senior, explain: plain|mixed|technical, shows: screens|cases|code|diffs, language} stored in the Sypnia account (Cloud) or ~/.config/sypnia/profile.json (local). Used by Agent, Cases (reading level), Learn. Editable anytime; the agent proposes updates as the person grows, never silently. The first time you use Sypnia, a short test (about ten questions, five minutes) finds out how much you already know. It stops early when it is sure. ### What it changes | Level | How the agent talks | What it shows you | | ------------- | ---------------------------------------------- | --------------------------------------------------- | | **Starter** | plain words, no jargon, one decision at a time | screens, use cases, what changes for your customers | | **Builder** | plain words with the names of things | use cases, data, a short summary of the code | | **Developer** | technical, concise | code, diffs, tests, commands | | **Senior** | terse; assumes context | diffs, trade-offs, only what needs a decision | The level never limits **what** the agent can do for you, only **how** it explains it and **how many** decisions it asks you to make at once. ### Where it lives - In **Sypnia Cloud**, in your Sypnia account: Agent, Cases (reading level) and Learn read the same profile, on every device. - In **your terminal** without an account, in `~/.config/sypnia/profile.json`. ### Changing it Say it («explain it more simply», «just show me the diff») and the agent adjusts for that task. To change your level for good, choose **Account → Level**, or retake the test. When the agent notices you have grown (you started reading the diffs), it proposes a new level; it never changes it silently. --- ## Open source and Sypnia Cloud > Exactly what is open in Sypnia Agent, and what the cloud adds. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/open-source-and-cloud/ For agents: Open source: the `agent` CLI, the local runner, the sandbox supervisor (Rust), the safety policy format, the Sypnia skills. Sypnia Cloud: hosted sandboxes (tasks run while you are away), Sypnia AI (models paid in credits), level and memory in the Sypnia account, approvals on web and phone, team approvals, task history. Licenses: the orchestrator and the sandbox supervisor AGPL-3.0; the CLI client and the skills MIT. | | Open source | Sypnia Cloud | | ------------------------------------------------ | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | The `agent` command and its prompts | yes | the same | | The runner and the sandbox supervisor | yes, on your machine | hosted sandboxes | | The safety rules (what it may do without asking) | yes, the same file format | the same, plus team rules | | Models | your own key (OpenRouter, Anthropic or any OpenAI-compatible endpoint) | Sypnia AI, paid with credits; or your own provider key, which Sypnia does not charge for | | Your level and memory | files on your machine | your Sypnia account, every device | | Approvals | in the terminal | terminal, web, phone, and teammates | | Tasks while you are away | — | yes | | Sypnia skills | yes | the same | | Billing | your model provider | credits, prepaid ([Plans](https://agent.docs.sypnia.com/cloud)) | > **Note: Licenses** > > The orchestrator and the sandbox supervisor are under AGPL-3.0; the `agent` CLI client and Sypnia's skills are under MIT. --- ## Quickstart: your terminal > Sign in, take the level test, and run a first task in a repository. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/quickstart-terminal/ For agents: Terminal quickstart: `npx @sypnia/agent login` (device flow; or `--key` for your own model key without an account), the level test on first run, then `npx @sypnia/agent ""` in a repository; approvals inline; result is a branch + summary. #### 1. Sign in ```bash npx @sypnia/agent login ``` It shows a code; approve it in the browser with your Sypnia account. Without an account, use your own model key: `npx @sypnia/agent login --key` (the key is kept in your system's keychain, never in a file you might commit). #### 2. Take the level test The first run asks about ten questions. You can skip it and pick a level yourself. #### 3. Ask for something ```bash cd my-app npx @sypnia/agent "customers can cancel an order until 10 am" ``` The agent shows its plan at your level and starts. Commands run in a local sandbox. #### 4. Answer when it asks It stops at anything in the **ask** list ([What it does without asking](https://agent.docs.sypnia.com/safety/permissions)), with the choices in plain words. **You should see:** A new branch with the change and its tests, a summary at your level, and the cost of the task. --- ## Quickstart: Sypnia Cloud > Start a task that keeps running in a hosted sandbox while you are away. Applies to: Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/start/quickstart-cloud/ For agents: Cloud quickstart: agent.app.sypnia.com with the Sypnia account → choose a repository (Sypnia Git or GitHub) and a map → describe the task → set a budget → follow it live; approvals arrive on web and phone; the result is a pull request. #### 1. Open Agent Go to [agent.app.sypnia.com](https://agent.app.sypnia.com) with your Sypnia account. #### 2. Choose the project A repository (Sypnia Git or GitHub) and, if you have one, its map in Cases. #### 3. Describe the task and set a budget The agent estimates the cost before it starts. You set the budget; it never spends more. #### 4. Close the laptop The task runs in a hosted sandbox. Questions and approvals reach you on the web and on your phone. **You should see:** A pull request tied to its use case, with the tests that ran, a summary at your level, and the credits it used. --- ## The three pillars > A design guide of its own for every project, the landing page and plan as the contract, and Sypnia skills. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/pillars/ For agents: The agent's three pillars: (1) a project design guide (.md + PDF: logo, palette, typography, icons, components) made before any screen, so no two Sypnia apps look alike; (2) the landing page and plan.md as the hard contract, checked with Cases; (3) Sypnia skills, the agent's know-how, open and versioned. Every project the agent builds rests on three things. They are why an app built with Sypnia looks like its own brand, does what it promised, and is built the same careful way every time. --- ## The design guide > A brand of its own for every project, written before any screen, as Markdown and PDF. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/pillars/design-guide/ For agents: Before the first screen the agent writes design/guide.md and design/guide.pdf: name and voice, logo (SVG, construction), palette with tokens (light/dark), typography pairing, icon style, spacing and radius, components, imagery rules, do/don't. Tokens exported as CSS variables (design/tokens.css). Rule: no generic cards or stock icon sets; every UI change must use the guide's tokens; the guide is changed on purpose, never drifted from. The guide lives in Sypnia Design (design.docs.sypnia.com), with its tokens in design/tokens.json and the project's own components generated from it into the repository. Before it draws a single screen, the agent writes a **design guide** for your project, the same way Sypnia has one for itself. No two apps built with Sypnia should look alike. ### What the guide contains | Part | What it says | | ------------------- | ------------------------------------------------------ | | **Voice** | how the app talks to people: words to use and avoid | | **Logo** | the mark as SVG, how it is built, its sizes | | **Palette** | colours as tokens, for light and dark | | **Typography** | a pairing for headings and text, sizes and weights | | **Icons** | one style, drawn for the project, not a stock set | | **Space and shape** | spacing scale, corner radius, shadows | | **Components** | buttons, fields, cards, states (empty, loading, error) | | **Do and don't** | examples of what keeps the brand and what breaks it | It is written as `design/guide.md` and exported as `design/guide.pdf`, with the tokens in `design/tokens.css`. ### How the agent uses it - **Every screen uses the guide's tokens.** A colour or a size outside the guide is a finding, like a scope error. - **The guide changes on purpose.** When a new screen needs something the guide lacks, the agent proposes a change to the guide first. - **No generic look.** No default card grids, no stock icon sets, no template landing pages. The guide, its tokens, icons, gallery and the screens of each case live in [Sypnia Design](https://design.docs.sypnia.com/), which the agent uses through its skills and MCP server. --- ## The contract > The landing page and the plan say what is built; the agent keeps to them. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/pillars/contract/ For agents: Contract for the agent: the approved landing page (promises) and plan (milestones) plus the map (Cases). The agent: builds the landing page and plan first and gets them approved; works milestone by milestone; never builds what the contract does not include (it proposes a change instead); reports progress against promises. Enforced with `cases check --contract`. The landing page and the plan are the **hard rules** of a project: what the landing page promises is what gets built, in the order the plan says. - **First, the landing page and the plan.** For a new project, the agent writes them with you and they are approved before any feature work. - **Milestone by milestone.** It builds the cases of the current milestone; it says when one is done, in terms of the promises it keeps. - **Nothing outside the contract.** A request that the landing page and the plan do not include becomes a proposal to change them, never code ([scope errors](https://cases.docs.sypnia.com/contract/scope-errors)). - **Checked, not trusted.** `cases check --contract` runs on every task: promises without cases and milestones without code are reported. --- ## Skills > The agent's know-how, open and versioned, and how projects add their own. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/pillars/skills/ For agents: Skills: folders with a SKILL.md (when to use, steps, checks) plus files, in the same format as Claude Code skills. Sypnia ships its own under the publisher sypnia: sypnia-start, sypnia-contract, sypnia-cases, sypnia-data, sypnia-design-guide/-icons/-screens/-build/-check, sypnia-modern-web, sypnia-publish, sypnia-setup, sypnia-fix. A skill may declare MCP servers in skill.yaml (touches.mcp, label «Adds MCP servers»); official skills add none themselves, the sypnia plugin declares the products' servers (e.g. https://mcp.data.sypnia.com); the agent shows a declared server and asks once before connecting it. Projects add skills in .sypnia/skills/; the Skills product (skills.sypnia.com) hosts a marketplace. The agent loads only the skills a task needs. A **skill** is know-how the agent loads when a task needs it: when to use it, the steps, and the checks that prove it was done right. Skills use the same folder format as Claude Code's (`SKILL.md` plus files), so they work in both. ### Sypnia's skills Sypnia publishes its skills under the verified publisher `sypnia` ([Official skills](https://skills.docs.sypnia.com/skills/official-skills/)): | Skill | What it covers | | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `sypnia-start` | the knowledge test, the project, the first map | | `sypnia-contract` | landing page, plan, map, and keeping them in agreement | | `sypnia-cases` | use cases first: starts, places, outcomes and failures, Sypnorm and the map | | `sypnia-data` | tables, policies, migrations, auth, machines | | `sypnia-design-guide`, `-icons`, `-screens`, `-build`, `-check` | the project's design guide, its icons, the screens of each case, building them, checking them | | `sypnia-modern-web` | accessible, fast, responsive pages; first screen without scrolling | | `sypnia-publish` | Run, domains, previews and rollbacks | | `sypnia-setup`, `sypnia-fix` | instrumenting a project with Telemetry, and fixing a production problem with a test | ### Skills and MCP servers A skill may need tools from an MCP server. It says so in its manifest, `skill.yaml`, under `touches.mcp`, with the server's name and address, and the registry shows it with the label «Adds MCP servers» ([What a skill may touch](https://skills.docs.sypnia.com/skills/what-a-skill-may-touch/)). Sypnia's own skills add no servers themselves: the `sypnia` plugin for Claude Code and Cursor declares the MCP servers of the Sypnia products its skills use, such as `https://mcp.data.sypnia.com`, and shows them before you install it. The agent never connects a server you did not see. When a task loads a skill that declares a server not yet connected, it shows the server and asks once; then the server signs in with your Sypnia account and works with your permissions, like the [products it uses](https://agent.docs.sypnia.com/work/products). ### Your own A project can add skills in `.sypnia/skills/`. Published skills (yours or others') live in [Sypnia Skills](https://skills.docs.sypnia.com/), with versions, review and a lock file. The agent loads only what a task needs, so a long list of skills does not slow it down. --- ## How it works with you > Tasks, use cases, questions, memory, and the products it uses. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/ For agents: Working with the agent: tasks are tied to use cases; it asks questions at the person's level; it remembers per person and per project (visible and editable); it uses Data, Cases, Git, Run and Telemetry through MCP with the person's permissions; teach mode (teach while building, used by Sypnia Learn). --- ## Tasks and use cases > The unit of work is a use case; what is not on the map becomes a proposal first. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/tasks-and-cases/ For agents: A task = a request + the case(s) it works on + a budget. Before working it reads the case: starts, place and path (navigation map; answers «where do I edit X?»), declared outcomes and failures (every run ends in one), listeners in the event graph (new version instead of breaking them); new starts/outcomes/listeners are map proposals. States: planning, waiting (question/approval/proposal), working, done, stopped (budget/time/cancel), failed. Request classification: existing case(s) → work; new case → propose to the map and wait; outside the plan → propose a contract change. Output: a branch, a pull request with `Case:` trailers, tests, a summary, the cost. Without a map (plain repository), the agent writes the case it is about to build into the task summary. A **task** is your request, the use case (or cases) it works on, and a budget. ### What happens with your request | The request is… | What the agent does | | ------------------------------------------ | ------------------------------------------------------------- | | an existing case («fix pick-up codes») | works on it | | a new case («cancel an order») | proposes the case to the map and waits for approval | | outside the plan («add a loyalty program») | proposes a change to the plan and the landing page, and waits | | unclear | asks, at your level, before spending anything | ### Reading the case before working Before it writes code, the agent reads the case at the technical level, from [Sypnia Cases](https://cases.docs.sypnia.com/map/): - **How it starts and where it lives.** Its `starts`, and for a case in the app its place and path, «Shop › Order for tomorrow», so it knows which screen to touch. «Where do I edit the price of a product?» is answered from the [navigation map](https://cases.docs.sypnia.com/map/navigation/), with the place, its route and its files. - **How it ends.** Every declared outcome and failure. It writes the code so each run ends in one of them, never in silence. - **Who listens.** The [event graph](https://cases.docs.sypnia.com/map/outcomes-and-events/#the-event-graph): before changing an outcome it checks which cases listen to it, and proposes a new version instead of breaking them. When the work needs a new start, a new outcome or a new listener, that is a change to the map: the agent proposes it first, like a new case. ### The states of a task `planning` → `working` → `done`, with `waiting` whenever it needs you (a question, an approval, a proposal), and `stopped` when it reaches the budget or you cancel it. ### What you get - **A branch and a pull request**, every commit marked `Case: `. - **The tests it ran**, and their results. - **A summary at your level**: what changed for your customers, or the diff and its trade-offs. - **The cost**, step by step. Without a map (a plain repository), the agent still writes down the case it is about to build, so you can check it before it starts. --- ## Questions > When the agent asks you something, and how it asks. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/questions/ For agents: The agent asks: when the request is ambiguous, when a choice changes what customers see, when the plan or map would change, and for every approval. One question at a time for starters; batched for developers. Each question offers concrete choices plus 'something else'; unanswered questions pause the task (no spending) and notify on web/phone. The agent asks when: - the request can mean two different things; - a choice changes what your customers see or pay; - the map, the plan or the design guide would change; - an action is on the **ask** list ([What it does without asking](https://agent.docs.sypnia.com/safety/permissions)). How it asks depends on [your level](https://agent.docs.sypnia.com/start/your-level): one question at a time with clear choices for a starter, a short batch for a developer. Every question offers concrete options and «something else». While it waits, it spends nothing. In Sypnia Cloud the question reaches you on the web and on your phone. --- ## Memory > What the agent remembers, where it keeps it, and how you change or delete it. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/memory/ For agents: Memory = short facts, each with why and when. Two scopes: person (preferences, level, how you like to work) and project (decisions, conventions, gotchas). Stored as files (.sypnia/memory/ in the project; ~/.config/sypnia/memory/ for the person) or in the Sypnia account (Cloud). Visible, editable, deletable; the agent cites the memory it used; nothing secret is ever stored (secrets are refused). The agent keeps short notes so you do not repeat yourself. Each note is one fact, with why it matters and when it was written. | Memory of… | Examples | Where | | --------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------- | | **You** | your level, «answer in Spanish», «I review every migration» | your Sypnia account (Cloud), or `~/.config/sypnia/memory/` | | **The project** | «prices include tax», «pick-up closes at 18:00», a decision and its reason | `.sypnia/memory/` in the repository, or the project in Sypnia Cloud | - **You can see all of it**, change it or delete it, in **Account → Memory** or in the files. - **The agent says which notes it used** for a decision. - **Secrets are never remembered.** A note that looks like a password or a key is refused. --- ## Products it uses > Data, Cases, Git, Run and Telemetry, through MCP, with your permissions. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/products/ For agents: The agent uses Sypnia products through their MCP servers (mcp.data.sypnia.com, mcp.cases.sypnia.com, mcp.git.sypnia.com, mcp.run.sypnia.com, mcp.telemetry...) with the person's account and scopes: Data (schema, migrations on non-production, queries under RLS), Cases (read map, propose), Git (branches, PRs), Run (previews; production deploys need approval), Telemetry (read problems and traces). Any other MCP server can be added. Each tool call is shown in the task and counted in its log. The agent uses the other Sypnia products through their MCP servers, signed in as you and with your permissions there. It can also use any other MCP server you add. | Product | What the agent does with it | Needs your approval | | ------------- | --------------------------------------------------------------------- | ---------------------------------------- | | **Data** | reads the schema, writes migrations, queries under row-level security | migrations on production data | | **Cases** | reads the map, opens proposals | approving the proposal (always a person) | | **Git** | creates branches, commits, opens pull requests | merging to protected branches | | **Run** | creates previews, reads logs | deploying to production | | **Telemetry** | reads problems, traces and how each case behaves | — | Every tool call appears in the task, with its input and result, and counts in the task's log. --- ## Teach mode > The agent teaches while it builds, at your level, for Sypnia Learn and for anyone who asks. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/work/teach-mode/ For agents: Teach mode: a session setting, on for that session only. Turn on: say «teach me while you build», the Teach switch in the session header in Sypnia App, `npx @sypnia/agent --teach ""`, or the API session setting learn.teach=true. The agent explains the plan in the case's words and what you will learn; explains each step first at your level; leaves «your turn» steps sized by level (starter: choose between options, name a failure; builder: write a case's steps, add a field; developer: write a function or a test that it reviews; senior: decide the design while it argues the other side); links the Sypnia Learn lessons that cover what just happened; at the end summarizes what you learned and offers to save it as memory notes. Slower and uses more of the model, so the budget estimate is larger and said before starting. Safety rules unchanged. Learn's own teaching (lessons, exercises, checks) lives in Sypnia Learn. Normally the agent builds and tells you what it did. In **teach mode** it teaches as it goes: it says what it is about to do and why, at your level, and leaves some steps for you. It is the mode [Sypnia Learn](https://learn.docs.sypnia.com/in-app/teach-me-while-you-build/) uses when you learn inside App, and anyone can turn it on. ### Turning it on - Say «teach me while you build» in the chat, or turn on **Teach** in the session's header in [Sypnia App](https://app.docs.sypnia.com/). - In the terminal: ```bash npx @sypnia/agent --teach "customers can cancel until 10 am" ``` - Through the API, the session setting `learn.teach: true`. It stays on for that session only. ### What changes | | Normally | In teach mode | | --------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------- | | Before starting | a short plan | the plan in the case's words, and what you will learn | | Each step | done, then summarized | explained first, at your level, then done | | Your turn | only decisions that need you | also small steps left for you, sized for your level | | Along the way | — | links to the Learn lessons that cover what just happened | | At the end | a summary of the change | what you learned, and an offer to save it in your [memory](https://agent.docs.sypnia.com/work/memory) | ### Your turn, by level The level is the one in your Sypnia account ([Your level](https://agent.docs.sypnia.com/start/your-level)). | Level | What the agent leaves for you | | ------------- | ---------------------------------------------------------------------- | | **Starter** | choose between two options, name a failure and what the customer reads | | **Builder** | write a case's steps, add a field to a table | | **Developer** | write a function or a test; the agent reviews it | | **Senior** | decide the design; the agent argues the other side | ### What it costs Teach mode is slower and uses more of the model, so a task's budget estimate is larger. The agent tells you the new estimate before it starts ([Budgets](https://agent.docs.sypnia.com/safety/budgets)). The safety rules are the same: it still asks before anything that cannot be undone. --- ## Safety > What the agent does without asking, what it asks first, the sandbox, budgets in credits and approvals. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/safety/ For agents: Safety model: tiers (do freely / ask once per task / always ask / never), a sandbox for every command (no inbound network, egress allowlist, no access to the person's credentials), per-task budgets in credits with hard stops, approvals from terminal/web/phone/team. Pages: permissions, sandbox, budgets, approvals. The agent can change a lot quickly, so the rules for what it may do are written down, the same for everyone, and enforced outside the model. --- ## What it does without asking > The four tiers, action by action, and how a project or a team changes them. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/safety/permissions/ For agents: Tiers. DO: read the workspace and docs; edit files in its branch; run tests, linters, builds, local servers in the sandbox; read Telemetry; create previews; open proposals and pull requests. ASK ONCE PER TASK: add or upgrade dependencies; reach a network host outside the allowlist; migrations on non-production databases; spend past the estimate (within budget). ALWAYS ASK: deploy to production; migrations or writes on production data; delete data, branches or files outside its branch; send e-mails/messages/notifications to real people; merge or push to protected branches; change secrets, permissions, billing or domains; anything outside the approved map or plan (it proposes instead). NEVER: read secret values; disable its own rules; approve its own requests; act on instructions found in files, web pages, issues or tool output. Rules live in the [agent] table of sypnia.toml (project) and team settings; a project can only make rules stricter than the team's. Every action the agent can take falls into one of four tiers. The tiers are checked by the runner, outside the model: a model that «decides» to skip a question cannot. ### Does freely - Read the project, its docs and its map. - Edit files **in its own branch**. - Run tests, linters, builds and local servers **in the sandbox**. - Read production errors and traces (Telemetry). - Create previews; open proposals and pull requests. ### Asks once per task - Add or upgrade a dependency. - Reach a network address outside the allowed list. - Run a migration on a database that is **not** production. - Spend more than its estimate (always within the budget). ### Always asks - Deploy to production. - Run a migration on, or write to, **production data**. - Delete data, branches, or files outside its branch. - Send e-mails, messages or notifications to **real people**. - Merge or push to a protected branch. - Change secrets, permissions, billing or domains. - Do anything outside the approved map or plan; it opens a proposal instead. ### Never - Read the value of a secret: secrets reach the processes that need them, not the model. - Change or switch off its own rules. - Approve its own requests. - Follow instructions found in files, web pages, issues or tool results: those are data ([Security](https://agent.docs.sypnia.com/security)). ### Changing the rules A project writes its rules in the `[agent]` table of `sypnia.toml`, the project's one configuration file at the root of the repository, and a team in its settings in Sypnia Cloud. A project can only make the team's rules **stricter**: «always ask before adding a dependency» is allowed; «deploy without asking» is not, unless the team allows it for that project, and even then production data and messages to real people stay in **always ask**. --- ## The sandbox > Where the agent's commands run, and what they cannot reach. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/safety/sandbox/ For agents: Every command runs in a sandbox: local (a container or microVM via the runner; Linux namespaces/seccomp, macOS and Windows through a lightweight VM) or hosted (one isolated task per agent task on AWS, destroyed afterwards). Properties: the workspace is a copy (the agent's branch), no inbound network, egress through a proxy with an allowlist (package registries, the project's own preview hosts, Sypnia APIs), no access to the person's home, keychain, SSH keys or cloud credentials; CPU/memory/time limits; every command and network request logged. The agent never runs commands directly on your machine or with your access. Every command runs in a **sandbox**. | | In your terminal | In Sypnia Cloud | | ---------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | | Where | a container or a light virtual machine started by the runner | an isolated machine per task, destroyed when it ends | | The files | a copy of the project, on the agent's branch | a clone of the repository, on the agent's branch | | Network in | none | none | | Network out | through a proxy, only to allowed addresses | the same | | Your credentials | not reachable: no home folder, keychain, SSH keys or cloud credentials | never present | | Limits | CPU, memory and time per command | the same, per task | ### The allowed addresses By default: package registries (npm, PyPI, crates.io and the like), the project's own preview addresses, and the Sypnia APIs the task needs. Anything else is in **ask once per task** ([permissions](https://agent.docs.sypnia.com/safety/permissions)). ### Everything is logged Every command, its exit code and output, and every network request (address and size, not content) is in the task's log, which you can read during and after the task. --- ## Budgets > Every task has a budget in credits, an estimate before it starts, and a hard stop. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/safety/budgets/ For agents: Budgets: each task has a budget in Sypnia credits (Cloud) or in the person's model-provider currency (self-hosted, tracked by tokens). Before starting: an estimate (range). During: spending per step (model tokens, sandbox minutes) shown live. At 80%: a notice. At 100%: hard stop, work saved on its branch, a summary of what is left. Defaults per person and per team; no task without a budget. Credits are prepaid (topped up with PayPal); nothing is billed afterwards. Every task has a **budget**. The agent cannot start a task without one, and stops when it reaches it. 1. **Before starting**, it estimates the cost as a range («between 8 and 15 credits»). 2. **While working**, it shows what each step spent: model use and sandbox time. 3. **At 80 %**, it tells you, and says what is left to do. 4. **At 100 %**, it stops. The work so far is saved on its branch, with a summary of what remains; you can raise the budget and continue. In Sypnia Cloud the budget is in **credits**, prepaid: you top them up (with PayPal) and tasks spend from them; nothing is billed afterwards. In your terminal with your own model key, the budget is counted in your provider's tokens. Teams set a default budget and a maximum per task; a person can lower them, never raise them past the team's maximum. --- ## Approvals > Who approves, where approvals arrive, and what happens while the agent waits. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/safety/approvals/ For agents: Approvals: requested for 'always ask' and 'ask once' actions, map/plan proposals and budget raises. Show: what, why, the exact effect (diff, SQL, recipients count, deploy target), and how to undo if possible. Where: terminal (local); in Sypnia Cloud the session in App (web and desktop), a push to the phone (the installable web app), and e-mail when nobody has seen it for 30 minutes. Who: the task owner by default; team rules can require a second person for production. While waiting: no spending; after 24 h the task pauses and keeps its branch. Decisions are logged with who and when. An approval request says **what** the agent wants to do, **why**, the **exact effect** (the diff, the SQL, how many people a message would reach, where a deploy goes), and **how to undo it** when that is possible. | | In your terminal | In Sypnia Cloud | | ---------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Where it arrives | in the terminal | your session in [Sypnia App](https://app.docs.sypnia.com/chat/questions-and-approvals/) (web and desktop), a push to your phone, and an e-mail if nobody has seen it in 30 minutes | | Who approves | you | the person who started the task, or whoever the team's rules name | | Production | you | team rules can require a second person | An approval nobody has seen for **30 minutes** goes out by e-mail to the people who can decide it, with a link straight to it. The e-mail says what is asked, never secrets or rows of data, and approving always happens in the session, signed in. While it waits, the agent spends nothing. After 24 hours without an answer the task pauses and keeps its branch, so nothing is lost. Every decision is logged with who made it and when. --- ## Models > Which models the agent uses, through Sypnia AI or your own key, and what they see. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/models/ For agents: Models: in Sypnia Cloud through Sypnia AI (a gateway over OpenRouter; one account, usage paid in credits; zero-retention providers only). Self-hosted: any OpenAI-compatible endpoint, OpenRouter, or Anthropic directly, with the person's key. A default model is chosen for coding quality; the person or team can pick another per task. What the model sees: the request, the relevant files and map, tool results (marked as data), never secret values. The model is replaceable; the safety rules do not depend on it. The agent is not a model: it uses one, and you can change it. | | In Sypnia Cloud | In your terminal | | -------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------- | | Through | **Sypnia AI**: one account, every model, usage paid with credits | your own key: OpenRouter, Anthropic, or any OpenAI-compatible endpoint | | Default | a model chosen for coding quality, changed when a better one appears | the one you configure | | Per task | you or your team can pick another | the same | ### What a model sees - Your request, and the files, cases and docs that matter for it. - The results of commands and tools, **marked as data**, so instructions inside them are not followed ([Security](https://agent.docs.sypnia.com/security)). - **Never the value of a secret.** Sypnia AI only uses providers that commit to not keeping or training on your data. With your own key, your provider's terms apply, and only your provider bills you: Sypnia charges nothing for those calls. The safety rules do not depend on the model: changing the model never changes what the agent may do without asking. How tasks, routes, limits and usage in credits work is in the [Sypnia AI docs](https://ai.docs.sypnia.com/). --- ## SDK, CLI and MCP > The @sypnia/agent package, the agent command, and MCP tools to delegate to it. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/tools/ For agents: @sypnia/agent: /client (start and follow tasks, answer questions, approve; events as a stream), /runner (embed the local runner), the CLI `npx @sypnia/agent` (login, run a task, tasks, logs, approve, profile, memory). MCP server https://mcp.agent.sypnia.com for other agents to delegate (start_task, get_task, list_tasks, answer, approve, cancel). | Piece | What it is | Page | | ------------------------------ | ---------------------------------------------------------------- | -------------------------------------------------- | | `@sypnia/agent/client` | start and follow tasks, answer questions and approvals from code | [The SDK](https://agent.docs.sypnia.com/tools/sdk) | | `@sypnia/agent/runner` | the local runner, to embed the agent in your own tool | [The SDK](https://agent.docs.sypnia.com/tools/sdk) | | `npx @sypnia/agent` | the command | [The CLI](https://agent.docs.sypnia.com/tools/cli) | | `https://mcp.agent.sypnia.com` | MCP tools so another agent can delegate a task | [MCP](https://agent.docs.sypnia.com/tools/mcp) | --- ## The SDK > Start and follow tasks, and answer approvals, from code with @sypnia/agent. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/tools/sdk/ For agents: createClient({ token }) from '@sypnia/agent/client': tasks.create({ repository, request, case?, budget }), tasks.events(id) async iterator (step, question, approval, done), questions.answer(id, choice), approvals.decide(id, 'approve'|'deny'), tasks.cancel(id). '@sypnia/agent/runner': createRunner({ workspace, model: { endpoint, key }, rules }) to run locally. ```ts import { createClient } from '@sypnia/agent/client'; const agent = createClient({ token: process.env.SYPNIA_TOKEN }); const task = await agent.tasks.create({ repository: 'laespiga/web', request: 'Customers can cancel an order until 10 am', budget: { credits: 40 }, }); for await (const event of agent.tasks.events(task.id)) { if (event.type === 'question') await agent.questions.answer(event.id, event.choices[0].id); if (event.type === 'approval') console.log('Waiting for a person to approve:', event.summary); if (event.type === 'done') console.log(event.pullRequest, event.cost); } ``` The client never approves on its own unless your code does it explicitly; approvals of **always ask** actions require a person's session, not an API token ([Approvals](https://agent.docs.sypnia.com/safety/approvals)). ### Running locally ```ts import { createRunner } from '@sypnia/agent/runner'; const runner = createRunner({ workspace: process.cwd(), model: { endpoint: 'https://openrouter.ai/api/v1', key: process.env.OPENROUTER_API_KEY }, }); ``` --- ## The CLI > Every command of npx @sypnia/agent. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/tools/cli/ For agents: Commands: login [--key], "" [--budget N] [--case id] [--cloud] [--teach], tasks, logs , approve / deny , profile (level, retake test), memory (list/edit/forget), rules (show the effective permission tiers). #### `agent login`\[Engine, Cloud]Signs in with your Sypnia account (device flow), or `--key` to use your own model key without an account; the key goes to your system's keychain. #### `agent ""`\[Engine, Cloud]Starts a task in the current repository. Flags: `--budget `, `--case ` (work on a known case), `--cloud` (run it in a hosted sandbox instead of locally), `--teach` ([teach mode](https://agent.docs.sypnia.com/work/teach-mode)). The same local task can be started from the desktop app of [Sypnia App](https://app.docs.sypnia.com/), which runs it in this same local sandbox. #### `agent tasks`\[Engine, Cloud]Your tasks and their state. #### `agent logs `\[Engine, Cloud]Every step of a task: commands, tool calls, cost. #### `agent approve / agent deny `\[Engine, Cloud]Decide an approval from the terminal. #### `agent profile`\[Engine, Cloud]Your level and preferences; `--retake` takes the knowledge test again. #### `agent memory`\[Engine, Cloud]List, edit or forget what the agent remembers about you and this project. #### `agent rules`\[Engine, Cloud]The rules in force for this project: what it does freely, asks once, always asks. --- ## MCP > Delegate a task to Sypnia Agent from Claude Code, Cursor or any MCP client. Applies to: Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/tools/mcp/ For agents: MCP server https://mcp.agent.sypnia.com (one endpoint for the product; the token decides: Sypnia account token, PAT or agent session). Tools: start_task (repository, request, case?, budget), get_task, list_tasks, answer (question id, choice), cancel. Approvals of always-ask actions are NOT exposed to MCP: a person approves them on the web, phone or terminal. ```bash claude mcp add --transport http sypnia-agent https://mcp.agent.sypnia.com ``` Another agent can hand a use case to Sypnia Agent and follow it. Approvals of **always ask** actions are not available through MCP: a person approves them ([Approvals](https://agent.docs.sypnia.com/safety/approvals)). #### `start_task`\[Cloud]Starts a task. Input: `repository`, `request`, optional `case`, `budget`. Returns the task and its estimate. #### `get_task`\[Cloud]A task's state, its steps, its questions and its cost. #### `list_tasks`\[Cloud]Recent tasks, filtered by repository, case or state. #### `answer`\[Cloud]Answers a question the agent asked (not an approval). Input: `question`, `choice` or `text`. #### `cancel`\[Cloud]Stops a task; its branch is kept. --- ## API reference > Every endpoint of the Agent API, its authentication and its errors. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/api/ For agents: Base https://agent.api.sypnia.com/v1. Auth: Bearer Sypnia token; scopes agent:tasks, agent:approve (person session only). Resources: tasks (create, get, list, cancel, events SSE), questions (answer), approvals (list, decide), budgets (defaults), profile, memory. Errors JSON {error:{code,message}}: 402 insufficient_credits, 403 needs_person, 409 task_finished, 422 invalid_request, 429. **Base address:** `https://agent.api.sypnia.com/v1`. **Authentication:** `Authorization: Bearer `, a Sypnia token. Scopes: `agent:tasks`; `agent:approve` only with a person's own session. ### Tasks #### Start a task`POST /v1/tasks` \[Cloud]`{ repository, request, case?, budget: { credits } }`. Returns the task and its estimate.**Authentication:** agent:tasks #### Get a task`GET /v1/tasks/{id}` \[Cloud]State, steps, questions, approvals, branch, pull request, cost.**Authentication:** agent:tasks #### Follow a task`GET /v1/tasks/{id}/events` \[Cloud]Server-sent events: `step`, `question`, `approval`, `budget`, `done`, `stopped`.**Authentication:** agent:tasks #### Cancel`POST /v1/tasks/{id}/cancel` \[Cloud]Stops the task; the branch is kept.**Authentication:** agent:tasks ### Questions and approvals #### Answer a question`POST /v1/questions/{id}/answer` \[Cloud]`{ choice }` or `{ text }`.**Authentication:** agent:tasks #### Pending approvals`GET /v1/approvals` \[Cloud]Yours, and your team's if you approve for it.**Authentication:** agent:approve #### Decide`POST /v1/approvals/{id}` \[Cloud]`{ decision: "approve" | "deny", note? }`. Requires a person's session.**Authentication:** agent:approve ### You #### Your level and preferences `GET /v1/profile` \[Cloud] **Authentication:** agent:tasks #### What the agent remembers`GET /v1/memory` \[Cloud]`?scope=person|project&project=…`; `DELETE /v1/memory/{id}` forgets one note.**Authentication:** agent:tasks ### Errors | Status | Code | When | | ------ | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | 402 | `insufficient_credits` | the budget is larger than your credits, after the 7 days of grace ([When credits run out](https://agent.docs.sypnia.com/cloud#when-credits-run-out)) | | 403 | `needs_person` | an approval sent with a token that is not a person's session | | 409 | `task_finished` | the task already ended | | 422 | `invalid_request` | a missing repository, request or budget | | 429 | `rate_limited` | too many requests | --- ## Architecture > How Sypnia Agent is built, where each part runs, and why the safety rules live outside the model. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/ For agents: Components: the CLI (TypeScript), the orchestrator (TypeScript: plans steps, calls the model, enforces the permission tiers and budget; Lambda + Step Functions-style state in Postgres in Cloud), the sandbox supervisor (Rust, `sypnia-sandbox`: process isolation, filesystem policy, egress proxy with allowlist, resource limits, command log), the sandboxes (local container/VM; Cloud: ECS Fargate tasks, one per agent task), the model gateway (Sypnia AI over OpenRouter, or a direct endpoint), MCP clients for the products, the memory and profile store (Sypnia Data). Rust where a mistake is a security hole (the sandbox and the proxy); TypeScript for orchestration. **Figure**: Sypnia Agent. The orchestrator decides, the model proposes, the sandbox runs, and the rules are checked outside the model. 1. You or another agent start a task. 2. The orchestrator reads your profile, memory, map and plan, and keeps the budget. 3. The model proposes the next step; the orchestrator checks it against the rules. 4. The sandbox supervisor runs commands, behind an egress proxy. 5. Products are used through MCP, with your permissions. 6. 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. --- ## Request paths > A task, a step and an approval, step by step. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/request-paths/ For agents: Task: POST /tasks → reserve budget from credits (hold) → context load → loop { model proposes step → policy check (tier) → if do: execute in sandbox / call MCP → record step + cost; if ask: create approval, pause } → finish: push branch, open PR, release unused hold. Step execution: orchestrator → supervisor (gRPC over a local socket) → sandbox; egress via proxy. Approval: decision → policy re-check (the world may have changed) → execute → audit. ### A task 1. `POST /v1/tasks`. The budget is **held** from your credits, so a task can never spend credits you do not have. 2. The orchestrator loads your profile, memory, the map, the design guide and the plan. 3. **The loop:** the model proposes a step; the orchestrator checks its tier: - **does freely** → it runs (in the sandbox, or as an MCP call) and is recorded with its cost; - **ask** → an approval is created and the task waits, spending nothing; - **never** → it is refused, and the model is told why. 4. **At the end:** the branch is pushed, the pull request is opened with `Case:` trailers, and the unused part of the hold goes back to your credits. ### A step in the sandbox The orchestrator sends the command to the supervisor over a local channel; the supervisor runs it inside the sandbox with the file and network policy; outbound traffic goes through the proxy, which only lets allowed addresses through; output and exit code come back and are logged. ### An approval When you approve, the orchestrator **checks again** before acting (the branch, the data or the target may have changed since it asked), runs the action, and records who approved and when. --- ## Data model > Tasks, steps, approvals, budgets and memory. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/data-model/ For agents: Schema agent (Sypnia Data in Cloud; SQLite locally): tasks(id, owner, repository, case_ids, request, state, budget_credits, held, spent, branch, pull_request), steps(task_id, n, kind: model|command|tool|question|approval, input, output_ref, cost, tier, at), approvals(id, task_id, action, effect, state, decided_by, at), questions(id, task_id, text, choices, answer), memory(id, scope person|project, owner, project, text, why, at), profiles(user_id, level, explain, shows, language, test_at), rules(team/project, yaml). Large outputs in S3 (logs, artifacts). | Table | Holds | | ----------- | ------------------------------------------------------------------------------------- | | `tasks` | owner, repository, cases, request, state, budget held and spent, branch, pull request | | `steps` | every step: model call, command, tool call, question, approval; its tier and its cost | | `approvals` | the action, its exact effect, the decision, who decided and when | | `questions` | what was asked, the choices, the answer | | `memory` | notes per person or per project, each with why and when | | `profiles` | level and preferences from the knowledge test | | `rules` | team and project permission rules | In Sypnia Cloud these tables live in a Sypnia Data project, with row-level security per person and team. Locally they are a small file database in `~/.config/sypnia/agent/`. Large outputs (full command logs, build artifacts) are stored as files (S3 in Cloud), referenced from the steps. --- ## On AWS > The reference implementation of Sypnia Agent on AWS, service by service. Applies to: Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/aws/ For agents: AWS: CloudFront (agent.app.sypnia.com SPA; agent.api.sypnia.com and mcp.agent.sypnia.com to Lambda), Lambda (Node 22: API, MCP, orchestrator steps), SQS + DLQ (step queue), ECS Fargate (one sandbox task per agent task, no public IP, private subnets, egress via the Rust proxy and a NAT with allowlist), S3 (logs, artifacts), Sypnia Data project (tasks, memory, profiles), Sypnia AI (models), EventBridge (task events to Cases/Git), SNS/mobile push via the App, SSM/KMS. Credits via the Sypnia Cloud ledger. | Service | What it does here | | ---------------------------------- | --------------------------------------------------------------------------------------------------------- | | **CloudFront** | the web app (`agent.app.sypnia.com`) and the API and MCP (`agent.api.sypnia.com`, `mcp.agent.sypnia.com`) | | **Lambda** (Node 22) | the API, MCP, and the orchestrator's steps | | **SQS** (with a dead-letter queue) | the queue of steps, so a long task survives any single function | | **ECS Fargate** | one isolated sandbox per task, in private subnets without public addresses, destroyed at the end | | **The egress proxy** (Rust) | the only way out of a sandbox; allows only the listed addresses | | **S3** | full logs and build artifacts | | **Sypnia Data** | tasks, steps, approvals, memory and profiles | | **Sypnia AI** | the models, paid with credits | | **EventBridge** | task events for Cases and Git | | **SSM and KMS** | secrets, injected into sandboxes that need them, never into prompts | | **The credits ledger** | holds and spends a task's budget | --- ## Failures > What happens when each part of Sypnia Agent fails, and what you see. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/failures/ For agents: Failures: model provider down or slow → retry with backoff, switch to the fallback model only if the person allowed it, else pause; sandbox dies → the step is retried once in a fresh sandbox from the branch, then the task pauses; orchestrator function times out → the step queue resumes from the last recorded step (idempotent steps); budget reached → stop, save branch; approval not answered in 24 h → pause; Git push rejected → keep work in the sandbox snapshot and ask; MCP product down → that tool fails gracefully, the agent says so and continues or pauses. | What fails | What happens | What you see | | ---------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------- | | **The model provider** | retries with backoff; switches to a fallback model only if you allowed it | «The model is not answering; paused» | | **The sandbox** | the step is retried once in a fresh sandbox from the branch; then the task pauses | the failed step and its log | | **The orchestrator** | steps are queued and recorded, so the task resumes from the last recorded step | nothing, or a short delay | | **The budget runs out** | the task stops; the branch keeps the work | what is done and what remains | | **No answer to an approval** | after 24 hours the task pauses | the pending approval, still there | | **Pushing to Git** | the work is kept and the agent asks what to do | the reason (a protected branch, a conflict) | | **A product's MCP** | that tool fails; the agent continues without it or pauses | «Telemetry is not available right now» | --- ## Codebase > Where everything of Sypnia Agent lives. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/architecture/codebase/ For agents: Repository sypnia-agent (open source): packages/agent (@sypnia/agent: client, runner, CLI), orchestrator/ (TS: loop, policy, budget, context), sandbox/ (Rust crate sypnia-sandbox: supervisor, proxy), skills/ (Sypnia skills), spec/ (OpenAPI, schema of the [agent] table of sypnia.toml), deploy/. Cloud parts (hosted sandboxes, web app, team approvals) in sypnia-cloud. ```text sypnia-agent/ open source ├── packages/agent/ @sypnia/agent: client, runner, CLI ├── orchestrator/ the loop, the policy check, the budget, the context ├── sandbox/ Rust: sypnia-sandbox (supervisor and egress proxy) ├── skills/ Sypnia's skills ├── spec/ │ ├── openapi.yaml │ └── agent.schema.json the [agent] table of sypnia.toml └── deploy/ sypnia-cloud/ private └── agent/ hosted sandboxes, the web app, team approvals ``` --- ## Self-hosting > Run the agent and its sandboxes on your machine or your own cloud. Applies to: the Sypnia engine (open source, self-hosted). Source: https://agent.docs.sypnia.com/self-hosting/ For agents: Self-hosting: the CLI with a local runner is the default (no server). Requirements: a container runtime (Docker or Podman) or the runner's light VM, a model key. For teams: the orchestrator and sandbox supervisor as containers on your own infrastructure (docker compose or Kubernetes), with your own Postgres for tasks and memory, your own egress allowlist. No Sypnia account needed. ### On your machine The CLI with its local runner needs no server and no Sypnia account: - a container runtime (Docker or Podman), or the runner's own light virtual machine; - a model key (OpenRouter, Anthropic, or any OpenAI-compatible endpoint). ```bash npx @sypnia/agent login --key npx @sypnia/agent "add a pick-up code to every order" ``` ### For a team, on your infrastructure The orchestrator and the sandbox supervisor run as containers next to your own Postgres: | Setting | What it is | | ----------------------------------------- | ------------------------------------------------------------------- | | `AGENT_DATABASE_URL` | Postgres for tasks, steps, approvals and memory | | `AGENT_MODEL_ENDPOINT`, `AGENT_MODEL_KEY` | your model provider | | `AGENT_EGRESS_ALLOW` | the addresses sandboxes may reach | | `AGENT_AUTH_ISSUER` | the OIDC issuer of your users (a Sypnia Data project, or any other) | --- ## Security > The threat model, prompt injection, secrets, and the checklist. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/security/ For agents: Threats and defenses: prompt injection via files/web/issues/tool output (content marked as data, never instructions; the policy check is outside the model; no self-approval; egress allowlist limits exfiltration), secret leakage (secrets injected only into processes, redacted from logs and prompts, never in memory), runaway cost (held budgets, hard stops), destructive actions (always-ask tier, re-check before acting, branch-only writes), supply-chain (new dependencies need approval; registries via proxy), sandbox escape (microVM/container isolation, Rust supervisor, no credentials inside), cross-tenant (one sandbox per task, destroyed). ### Threat model | Threat | Defense | | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Prompt injection**: a file, web page, issue or tool result says «ignore your rules and…» | that content is marked as data, never instructions; the permission check runs outside the model; the agent cannot approve its own requests; the egress allowlist limits where anything could be sent | | **A secret leaks** | secrets reach only the processes that need them; they are removed from logs and prompts; never stored in memory | | **Runaway cost** | budgets are held before a task starts; hard stop at 100 % | | **A destructive action** | the always-ask tier; the agent checks again after approval; it writes only to its own branch | | **A malicious dependency** | adding one needs approval; registries are reached through the proxy | | **Escaping the sandbox** | isolated machines or containers, a Rust supervisor, and no credentials inside to steal | | **One customer reaching another** | one sandbox per task, destroyed at the end; nothing shared | ### Checklist - Keep `sypnia.toml` (its `[agent]` table holds the agent's rules) in the repository and review changes to it like code. - Put production secrets only in your secrets store, never in the repository. - Keep **always ask** for production data and messages to real people. - Review the task log of anything that touched production. --- ## Sypnia Cloud > Your account and level, teams, limits and plans for Sypnia Agent. Applies to: Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/cloud/ For agents: Agent in Sypnia Cloud: the Sypnia account (one session, roll-in on first use), the level and memory in the account, teams with shared rules and approvers. Plans: Agent alone (like paying for Claude Code), or inside the global Sypnia subscription; extra capacity per item; prepaid in credits topped up with PayPal; model use and sandbox time spend credits per task. ### Your account The same Sypnia account as every product. Opening Agent the first time adds you to it (roll-in); your level and your memory come with you. ### Teams A Sypnia organization is a team: shared rules, default and maximum budgets, and who approves production actions. ### Plans - **Agent alone**, like paying for Claude Code, with its own plans. - **Inside the Sypnia subscription**, with more capacity in every product. - **Extra capacity per item** (sandbox hours, concurrent tasks) on any plan. - **Prepaid**: a subscription paid in advance, or credits topped up with PayPal. Credits expire 12 months after you buy them, the smallest top-up is USD 5, and they are not refunded unless the mistake is ours, and then only in credits ([Credits](https://app.docs.sypnia.com/account/credits)). Each task's model use and sandbox time spend from its budget. ### When credits run out 1. When **80 %** of your credits are spent, counted from the balance after your last top-up, the owners and billing members get an e-mail and a notice in the app; again at **100 %**. 2. From then on there are **7 days of grace**: tasks start and run as usual, each within its budget, and nothing is deleted. What they spend is taken from your next top-up. 3. After the 7 days, new tasks wait until credits are added. A task that is running finishes the step it is on and stops; its work is saved on its branch. Your sessions, your memory and every branch stay. --- ## Reference > Glossary, design decisions, the changelog and common questions. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/reference/ For agents: Reference for Sypnia Agent: glossary, design decisions, FAQ, changelog. --- ## Glossary > Every word these docs use with a fixed meaning. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/reference/glossary/ For agents: Sypnia Agent vocabulary: task, step, level, knowledge test, memory, tier, sandbox, egress allowlist, budget, hold, approval, question, design guide, contract, skill, orchestrator, supervisor. **Approval**: A person's decision on an action the agent must not take alone. **Budget**: The most a task may spend, in credits; held before it starts, with a hard stop. **Design guide**: The project's own brand — voice, logo, palette, typography, icons, components — as Markdown and PDF, written before any screen. **Knowledge test**: About ten adaptive questions that set your level, kept in your Sypnia account. **Level**: How much the person knows, from the knowledge test — starter, builder, developer or senior. Changes how the agent explains, never what it can do. **Memory**: Short notes the agent keeps about you or a project, each with why and when. Visible, editable, deletable. **Sandbox**: The isolated place where the agent runs commands, with no inbound network, outbound only to allowed addresses, and none of your credentials. **Skill**: Know-how the agent loads when a task needs it — when to use it, the steps and the checks. **Step**: One thing the agent does inside a task — a model call, a command, a tool call, a question or an approval — with its cost. **Task**: One request to the agent, tied to one or more use cases, with a budget. Ends in a branch and a pull request. **Tier**: How an action is allowed — does freely, asks once per task, always asks, or never. --- ## Design decisions > The choices behind Sypnia Agent that shape these pages, and why each one was made. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/reference/decisions/ For agents: Design decisions of Sypnia Agent: the orchestrator and the sandbox supervisor under AGPL-3.0, the CLI client and Sypnia's skills under MIT; the default model is chosen every quarter by an evaluation on real Sypnia tasks, published in the changelog; teams may allow production deploys without asking, per project, for deploys only, never for production data or messages; the local sandbox uses containers, or a light virtual machine when there is no container runtime; approvals never travel over MCP for always-ask actions; the knowledge test is ten adaptive questions, retakable anytime, used only for how the agent explains; plans: Agent alone or in the Sypnia subscription, extra capacity, prepaid in credits. These are the choices that shape Sypnia Agent. Each one is written on the page that uses it; this page puts them together with the reason behind them. | Decision | What it is | Why | | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | | **Licenses** | the orchestrator and the sandbox supervisor under AGPL-3.0; the CLI client and Sypnia's skills under MIT | anyone can use the client and the skills; a hosted copy of the engine shares its changes | | **The default model** | chosen every quarter by an evaluation on real Sypnia tasks, published in the [changelog](https://agent.docs.sypnia.com/reference/changelog) | quality and price change fast; the choice is measured, not assumed | | **Teams allowing production deploys without asking** | allowed per project for deploys only; never for production data or messages to people | deploys can be rolled back; data and messages cannot | | **The local sandbox** | containers by default, a light virtual machine when there is no container runtime | works on every laptop without weakening isolation | | **Approvals through MCP** | never for always-ask actions | another agent cannot approve on a person's behalf | | **The knowledge test** | ten adaptive questions, retakable anytime, used only for how the agent explains | it helps, it does not judge | | **Plans** | Agent alone, or inside the Sypnia subscription, with extra capacity per item, prepaid in credits ([Sypnia Cloud](https://agent.docs.sypnia.com/cloud)) | each task spends from the budget you set, never after the fact | When a decision changes, its page changes and the [changelog](https://agent.docs.sypnia.com/reference/changelog) says so. --- ## FAQ > Common questions about Sypnia Agent. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/reference/faq/ For agents: FAQ: vs Claude Code (same family; adds use cases, contract, design guide, sandbox and budgets by default, Sypnia products via MCP); can I use my own model (yes); does it work without Sypnia products (yes); can it deploy to production (only with approval); what if I do not program (it explains at your level). **How is it different from Claude Code?** They are in the same family. Sypnia Agent adds use cases as the unit of work, the contract and the design guide as rules, a sandbox and a budget for every task by default, and the Sypnia products through MCP. Claude Code can even delegate a case to it. **Can I use my own model?** Yes: with your own key in your terminal, or by picking another model per task in Sypnia Cloud. **Does it work without the other Sypnia products?** Yes. On any repository; the products make it better. **Can it deploy to production?** Only after you approve each deploy. **I do not program. Can I use it?** Yes. It talks at your level, shows you what changes for your customers, and asks one clear question at a time. --- ## Changelog > What changed in these docs and in Sypnia Agent. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://agent.docs.sypnia.com/reference/changelog/ For agents: Changelog for Sypnia Agent docs. ### 2026-11-18 - **Teach mode**, the mode Sypnia Learn uses: `--teach`, the Teach switch in App, `learn.teach` in the API. - **Approvals by e-mail** when nobody has seen one for 30 minutes, besides App on the web, the desktop and the phone. - **Skills and MCP servers:** a skill declares the servers it needs in `skill.yaml`; the `sypnia` plugin declares the products' servers; the agent asks once before connecting one. The skills table uses the official skill names. - **Reading the case:** the agent reads a case's start, place, outcomes and listeners before working, and answers «where do I edit…?» from the navigation map. ### 2026-11-17 - First version of these docs: the level test, the three pillars, tasks and use cases, memory, the products it uses, the safety tiers, the sandbox, budgets and approvals, models, the SDK, CLI, MCP and API, the architecture, self-hosting, security and plans.