# Design decisions

> The choices behind Sypnia App, and why each one was made.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://app.docs.sypnia.com/reference/decisions/

For agents: Decisions: chat at the centre, code in a side panel (not an editor-first app); desktop as a Tauri shell over the web interface (about 10 MB) instead of a VS Code fork or Zed; CodeMirror 6 for the code panel; Open in my editor for VS Code, Cursor, Zed; the chat has no powers of its own; only people approve and spend; App keeps no product data; identity in Sypnia Data; phone through the installable web app with Web Push; App server open source (AGPL-3.0), interface, desktop and SDK MIT, credits and PayPal Cloud-only; App itself costs no credits; App's own actions are use cases on its map.

| #  | Decision                                      | What App does, and why                                                                                                                                                                                      |
| -- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1  | **The chat at the centre**                    | Most people say what they want before they look at code. The code, the data and the map open beside the chat when an answer needs them.                                                                     |
| 2  | **A light desktop app**                       | Tauri around the same web interface: about 10 MB, one interface everywhere. A fork of a full code editor would be heavy, need constant rebasing and lose its extensions; App opens your own editor instead. |
| 3  | **CodeMirror 6 in the panel**                 | An editor made for the browser, accessible, the same on the web and the desktop.                                                                                                                            |
| 4  | **Open in my editor**                         | VS Code, Cursor and Zed, the editors people already use, one click away.                                                                                                                                    |
| 5  | **No powers of its own**                      | The chat works through each product's API with your permissions, and App's own actions are use cases on its map. What the chat does, the buttons do the same way.                                           |
| 6  | **Only people approve and spend**             | Agents can read balances and ledgers; approvals, top-ups, purchases and limits wait for a person.                                                                                                           |
| 7  | **App keeps no product data**                 | The map, code, rows and problems stay in their products and are read with your session each time.                                                                                                           |
| 8  | **Identity in Sypnia Data**                   | Sypnia's own sign-in uses the same product customers use for theirs.                                                                                                                                        |
| 9  | **The phone through the installable web app** | One interface, with notifications through Web Push, instead of a separate phone app.                                                                                                                        |
| 10 | **Licenses**                                  | The App server AGPL-3.0; the web interface, the desktop app and `@sypnia/app` MIT. Credits and PayPal are part of Sypnia Cloud.                                                                             |
| 11 | **App costs no credits by itself**            | Your account is how you reach every product; what spends is the work products do.                                                                                                                           |
