> For the complete documentation index, see [llms.txt](https://docs.codemate.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemate.ai/cora/configuration/auto-accept.md).

# Auto-accept

**Cora has two main hands-off modes:**

1. **Auto-accept** (File changes / Write operations)
2. **Auto-approve** (All permission requests / YOLO Mode)

***

#### 1. Auto-accept (File Write Auto-Apply)

**What it does**\
By default, Cora shows you a diff of every proposed file change and asks for confirmation before writing to disk.\
When **Auto-accept is enabled**, Cora applies (writes) the changes to disk immediately after generation, skipping the review step.

**Where to enable it**

* IDE → Cora settings panel (easiest)
* Or manually in settings files:

**Global setting** (all projects):

```bash
~/.config/Code/User/globalStorage/codemateai.codemate-agent/settings/
```

**Project-level setting** (overrides global):

```bash
your-project/.cora/
```

**Recommended use cases (Safe to enable)**

* Working on a dedicated experimental branch
* Small, well-scoped, repetitive tasks you’ve seen Cora do many times
* Fast iteration on a new/throwaway project
* Tests running in watch mode

**Do NOT enable when**

* Changing auth, security, API keys, or multi-tenancy code
* Working on `main` / production branches
* Large refactors or architectural changes
* First time using Cora in a new codebase

**Undo safety**\
Always use Git. Changes are just normal file writes:

```bash
git diff
git checkout -- <file>
git checkout -- .     # discard all
```

> **Rule of thumb**: Never enable Auto-accept without being in a Git repository.

***

#### 2. Auto-approve (Permission / YOLO Mode)

This is more powerful and riskier. It controls whether Cora has to ask you for permission before performing actions.

**Setting name**: "Auto-approve enabled" or "YOLO Mode"

**What it does**\
Runs selected actions without asking for permission. You can enable it per category.

**Available Permission Categories**

| Category                    | What it allows automatically                        |
| --------------------------- | --------------------------------------------------- |
| **Read**                    | Reading files outside the workspace                 |
| **Write**                   | Creating/editing files outside the workspace        |
| **Include protected files** | Editing `.coraignore`, `.cora/` config files etc.   |
| **Execute**                 | Running terminal commands                           |
| **Browser**                 | Browser/MCP operations                              |
| **Subtasks**                | Creating subtasks automatically                     |
| **Delete**                  | File/folder deletion                                |
| **Question**                | Time to wait before auto-selecting the first answer |
