# Chat

Chat modes including Plan mode, attaching files with #file, and approving actions.

Source: https://docs.trycloudforge.com/chat

## Chat modes


Pick a mode in the chat panel before you send a message.


| Mode | Use it to |
| --- | --- |
| Ask | Explore and understand your code. Ask mode answers questions. |
| Edit | Edit or refactor the code you selected. |
| Agent | Describe what to build. CloudForge works across files and runs the steps it needs, with your approval. |
| Plan | Plan before you build. |



### Plan mode


Use Plan mode for large changes. CloudForge reads your project without changing anything and writes a plan: what it will change and in which order. The plan is saved in `.cloudforge/plans/`. You read it on a review card and approve it before any code changes. If something is wrong, write your feedback in the card and CloudForge updates the plan.



### Thinking level


Use the thinking picker above the message box to choose Low, Medium, High or Extra High. Higher levels think longer before they answer. Medium is the default.



## Attach files with #file


Type `#file:` and a path in your message to attach a file from your project. For example:


```
Why does the upload fail? #file:src/upload.ts
```


Paths are read from your open project folder. You can attach up to 8 files in one message. `@file:` works the same way.



## Approve actions


Before CloudForge writes a file, runs a command or takes another action, it shows you what it wants to do. Choose **Allow** or **Deny**. Closing the dialog counts as Deny.


For some actions you can choose **Always allow**. CloudForge then stops asking about that kind of action for up to one hour. It is never offered for deploys or for commands that delete things.



### Approval levels


- **Default Approvals**: CloudForge asks before changes. Commands that delete things and changes to your cloud account always ask. This is the default.
- **Bypass Approvals**: CloudForge approves every action itself and does not ask, including deploys and deletes.
- **Autopilot (Preview)**: like Bypass Approvals, and CloudForge also keeps going on its own until the task is done. Choose the stop button to stop it at any time.


> **Bypass Approvals and Autopilot skip every approval**
>
> When you pick either level, CloudForge first shows a warning. It explains that a Terraform apply will create, change and delete real cloud resources, which costs money and cannot always be undone. Nothing changes until you choose **Enable**. After that, CloudForge stops asking, including before deletes.
>
> The level applies to the current chat session only. Some commands are blocked by policy at every level, so CloudForge never runs them.


Chat needs you to be signed in. See [Sign in](https://docs.trycloudforge.com/account/sign-in).
