Agent Mode is a new capability in our coding assistant that actively participate in your development workflow, while keeping you in control.
It can read your code, propose and apply changes, and run project commands, all with your explicit approval.
What Agent Mode can do
When activated, Agent Mode enables the assistant to perform a range of tasks:
Read & search your codebase: Open files, scan directories, and search for symbols or usages to build a clear understanding of your project’s context.
Make changes: Create, edit, and delete files. All proposed modifications are presented to you as diffs for your review before anything is saved to your disk.
Run commands: With permission, execute project commands (e.g.
tests
,linters
, orbuilds
) directly in your workspace’s terminal.
🔑 Agent Mode is built on the principle of user control. You have the final say on every action and you can choose exactly what the agent is allowed to do by setting permissions to Read-only
, Edit files
, and/or Run commands
.
How to use Agent Mode
For complex tasks, a typical flow looks like this:
Choose Agent Mode in the mode selector, switching from
Chat
toAgent
(see screenshot #1).Give a high-level task in the chat, for example, "
Migrate this component to library X and then run the project tests to fix any failures.
"Review proposals as the agent works. It will present its plan, proposed code changes as diffs, and any commands it intends to run.
Approve or deny each proposed change or command individually or in bulk.
Revert anytime if something doesn’t work as expected using Mistral Code’s UI or your version control system.
#1 Activating Agent Mode
#2 Example of Agent Mode in action: (1) list image files (2) write a shell script (3) execute the script and check results
Additional resources
Permissions reference table
Here’s a quick reference for what each permission level allows:
Permission | What it allows | How approvals work |
| Read and search files and the project’s structure. | No approval is needed for read operations. |
| Propose diffs to create, modify, or delete files. | You must approve each change (or a batch of changes). |
| Execute commands in the workspace’s terminal. | You must approve each command before it runs (or you can allowlist certain commands for automatic execution). |