# Modes

Selecting the right mode matters. Ask mode never modifies files. Review mode never writes new code. Using the wrong mode for a task won't break anything, but it produces worse output than using the right one.

***

### The five modes

| Mode                                | What it does                                                            |
| ----------------------------------- | ----------------------------------------------------------------------- |
| [**Auto**](/cora/modes/auto.md)     | Orchestrates the other modes picks and sequences them based on the task |
| [**Plan**](/cora/modes/plan.md)     | Produces architecture documents, stack decisions, and task breakdowns   |
| [**Ask**](/cora/modes/ask.md)       | Answers questions about the codebase and explains how things work       |
| [**Code**](/cora/modes/code.md)     | Writes, modifies, and refactors code                                    |
| [**Review**](/cora/modes/review.md) | Audits changes for correctness, security, and consistency               |

***

### Choosing a mode

**Auto** is the right default for most tasks. Use a specific mode when you know exactly what kind of output you want a read-only explanation, a plan with no code yet, or a targeted review of a specific file.

Use **Plan** when you're starting something large and want to review the approach before any files are touched. Use **Ask** when you want to understand something without risking any changes. Use **Code** when you have a clear, scoped task and want direct execution. Use **Review** after any change to a security-sensitive area.


---

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