# 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.
