Sypnia Cases documentation
Sypnia Cases is the map of everything your app does, written as use cases that anyone can read: who does what, what can go wrong, what data it touches. The map is the contract of the project: what is not on it is a scope error. Your code, your data, your traces and your coding agent all point back to it.
Start a map in your repository
The map is plain files next to your code. The CLI writes the first ones and checks them on every change.
npx @sypnia/cases init
npx @sypnia/cases check# cases/orders/order-for-tomorrow.case.yaml
id: order-for-tomorrow
title: Order for tomorrow
actor: customer
goal: Get bread reserved for tomorrow morning
starts: in_app
where: shop.order-for-tomorrow # Shop › Order for tomorrow
outcomes:
OrderPlaced: { order_id: uuid, ready_at: datetime }
failures:
SoldOut: «That bread is sold out for tomorrow. Pick another?»Or let your agent keep it
Your coding agent reads the map before it writes code, and proposes a change to the map when the work goes beyond it.
claude mcp add --transport http sypnia-cases https://mcp.cases.sypnia.comHosted by us, paid with credits
Map your app in Sypnia Cloud
- The mapThe same files, plus a visual editor for people who do not program.
- Scope checksThe same checks, on every change, with the history.
- ReviewsProposals your team and your client approve, comments per case.
- Running casesThe same guarantees on AWS queues, one per listener, with the graph on the map.
- LinksLive data from Data, Telemetry, Git and Agent on each case.
Open source: the format, the CLI, the server
Keep the map in your repository
- The mapFiles in your repository, in the open format.
- Scope checks
cases checkin your terminal and your CI. - ReviewsPull requests on the files.
- Running casesPart of
@sypnia/casesin each area, on your Postgres alone: outbox, retries, dead letters. - LinksRead from your code (Sypnorm) and your commits.
Sypnia Cloud uses the same open format and the same checks, and adds the visual editor, reviews with your team and client, and the links to Data, Telemetry, Git and Agent. Compare the two, line by line
The map
Every page says whether it is about the open-source tools, Sypnia Cloud or both.
-
What Sypnia Cases is, how it works, what is open source and what is Sypnia Cloud, and the quickstarts.
-
Use cases, actors, areas and journeys, what a map is made of, and how a person who does not program reads it.
-
The landing, the plan and the map as one contract; scope errors; versions, proposals and reviews.
-
The open Sypnia Cases format, case files, the map file, the JSON Schema, and the map generated from code.
-
The use-case ORM that comes with Cases. Your code is a set of use cases, and the map comes from it.
-
What runs your cases, why a case is a unit of meaning and not of deployment, and where every outcome goes.
-
What a use case shows from Data, Telemetry, Git and Agent, and how each link is made.
-
The @sypnia/cases package, the cases command, and the MCP tools for agents.
-
Every endpoint of the Cases API, its authentication and its errors.
-
How Sypnia Cases is built, where each part runs, and how a request moves through it.
-
Keep the map only as files, or run the Cases server yourself.
-
Who can see and change a map, the threat model, and the checklist.
-
Workspaces, roles, limits and plans for Sypnia Cases in Sypnia Cloud.
-
Glossary, design decisions, the changelog and common questions.
Written for people and for coding agents. Every page is also plain Markdown: add .md to its address, or use the «Copy page for your agent» button. Agents can start from the index.