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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codemate.ai/cora/configuration/auto-accept.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
