# Explain this

> Ask for an explanation of any diff, case, trace, error, table or log line, at your level.

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

For agents: «Explain this» button on every item of App's side panel (Code selection, Diff hunk/file, Data table/column, Logs line, Telemetry problem/trace/span, Map case/failure, Preview element) and in the CLI (learn explain <file[:lines]> | --case <id> | --trace <id> | --problem <id>). POST /v1/explain {item: {kind, ref}, level?, language?} → explanation at the person's level + links to the lessons that cover it + «show me more» / «simpler». Uses Sypnia AI under Learn's task explain (a task of Learn's own), with the person's permissions to read the item; secrets and masked values never sent; data rows not sent unless the item is a row the person opened. Answer not stored; a count is. Spends credits in Sypnia Cloud like any AI call (shown as Learn in the ledger).

Every item in App's side panel has an **Explain this** button. The explanation is written for your level, about the exact thing you are looking at.

| You look at                    | You can ask                             | Ana gets, as a starter                                                                  |
| ------------------------------ | --------------------------------------- | --------------------------------------------------------------------------------------- |
| a **diff** of the agent's work | what this change does and why           | «This adds the rule: after 10 am, the cancel button tells the customer it is too late.» |
| a **case** on the map          | what it means, what each failure is for | what the customer sees when bread runs out                                              |
| a **trace** or a **problem**   | what happened, step by step             | «The order was saved, but the pick-up code e-mail bounced.»                             |
| a **table** or a **column**    | what it holds, who can read it          | «Each row is one order. Customers see only their own.»                                  |
| a **log line** or an **error** | what it says, in plain words            | what failed, and which case it belongs to                                               |
| a selection of **code**        | what these lines do                     | the idea first, then the names                                                          |

Under each explanation: **Simpler**, **More technical**, and the lessons that cover the topic, if you want to go deeper.

## From the terminal

```bash
npx @sypnia/learn explain src/orders/place-order.ts:40-62
npx @sypnia/learn explain --case cancel-order
npx @sypnia/learn explain --problem pay-button-does-nothing
```

## What is sent to the model

Only the item you asked about and what is needed to understand it (the case it belongs to, the names around it), read with your permissions. **Secret values and masked columns are never sent.** Rows of data are sent only when the item is a row you opened yourself. The explanation is not stored.

In Sypnia Cloud an explanation is a call to [Sypnia AI](https://ai.docs.sypnia.com/), paid with credits like any other, and shown as Learn in your ledger. Inside a Sypnia course, hints and checks are free ([Plans](https://learn.docs.sypnia.com/cloud/plans)).
