> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootaccess.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Apply diff locally

> Write an agent's proposed change straight into your local checkout from chat, through the CLI daemon — no copy-paste, no manual patching.

When Seb shows a diff in chat, **Apply locally** writes that change directly into your working copy on disk — so you can build, run, and inspect it locally without copying the patch by hand.

<Note>
  **Where:** the **Apply locally** button on a diff card in chat ([Agents page](/guide/run-agents)). Requires [`seb connect`](/reference/cli-commands#seb-connect) running on the machine with your checkout.
</Note>

## How it works

The button sends the edit to your local **CLI daemon** — the background process `seb connect` keeps running — which applies it to the file on disk.

* **Daemon offline** — if `seb connect` isn't running, you'll see *"Your local daemon isn't connected — run `seb connect`."*
* **Branch mismatch** — if your local checkout is on a different branch than the one Seb is reading, you get a heads-up before it applies, so a change never lands on the wrong branch.
* **No auto-commit** — the change lands in your working tree only; you review and commit it yourself (or ask Seb to).

## See also

* [Run agents](/guide/run-agents) — where diff cards appear
* [Review in the CLI](/guide/review-in-cli) — the other half of the local review loop
* [`seb connect`](/reference/cli-commands#seb-connect)
