Agent Mode vs. Assistant Mode
Switch from the top bar between the AI that runs tools (with .bak backups) and the one that only proposes code.
DevFlow AI works in two ways. In Agent Mode the AI acts on your project: it reads code, creates and edits files and runs commands, step by step. In Assistant Mode (or Guided Mode) the AI only proposes: you review every change and decide whether to apply it.
How to switch modes
- Open a project with π Open Folder (or from Import on the home screen).
- The top bar shows a control with two options: π€ Agent and ποΈ Guided. On wide screens they show their full names: "Automatic Agent Mode" and "Manual Assistant Mode (Guided)".
- Click the mode you want. The change is immediate and the app remembers it for next time.
The chat header always shows the active mode. In Agent Mode it also shows π€ β when the agent can write to the project, or a β warning when it cannot (for example, because the DevFlow context is not initialised or the local engine is not responding).
The app starts in Guided Mode by default: it is the safe mode for getting to know a new project.
Agent Mode: the AI runs the tools
In this mode the agent works in a loop: it asks for a tool, the local engine runs it, the result goes back to the model and the model decides the next step, until the task is done. Every call shows up in the chat in real time, with its result.
| Tool | What it does |
|---|---|
read_file | Reads a project file to understand it before touching it. |
create_file | Creates a new file (or replaces it entirely). |
append_file | Appends content to the end of a file; long files are written in parts this way. |
patch_file | Applies a patch (diff) to an existing file. |
execute_command | Runs a command at the project root (npm install, php artisan test, flutter build webβ¦). |
Safety guarantees
.bakcopy: before changing a file, the engine saves the previous version next to it (file.ext.bak). If something goes wrong, you get it back instantly.- Protected paths: the agent never writes to
.app_context/,.git/,node_modules/orvendor/. - Blocked commands: destructive commands are always rejected. Processes that never end on their own (
npm run dev,php artisan serve, watchers) do not go throughexecute_command: the agent starts them in the background withstart_serverand verifies the page withcheck_url(localhostonly). Unattended scheduled tasks cannot start them. - Limits: each agent command has a 2-minute time limit and each response allows at most 30 tool calls, so a runaway loop cannot write forever.
- Incomplete code detection: if the model returns an "abridged" file (
// ... rest of the code), the patch stops and warns you.
Step by step: your first task in Agent Mode
- Select π€ Agent in the top bar.
- Check that the chat header shows
π€ β. - Describe the result you want, with verifiable criteria. For example:
Add a GET /api/health endpoint that returns {"status":"ok"} and its integration
test. Then run the tests and fix whatever fails.
- Watch the chat: you will see each
read_file,create_fileandexecute_commandwith its output. - When it finishes, review the changes with
git diff(or by opening the files in the editor) before committing them.
Assistant Mode (Guided): the AI proposes, you decide
It is a consultative environment: the AI analyses, explains and proposes code in Markdown blocks, but never modifies a file on its own. Each code block includes:
- Copy Code: copies the content to the clipboard so you can paste it wherever you want.
- Apply Patch to Project: opens a confirmation dialog with the target file and the exact change (+ lines / β lines). It is only written to disk when you click Apply patch, also with its
.bakcopy.
Use it when you want to:
- Understand a project you have just imported.
- Review an architecture proposal before writing code.
- Work on sensitive files (production configuration, data migrations).
- Learn: the AI explains each step and you apply it by hand.
Which one to choose?
| Situation | Recommended mode |
|---|---|
| Repetitive or well-defined tasks (CRUD, tests, scoped refactors) | π€ Agent |
| Creating or building a project with commands | π€ Agent |
| Exploring new code or asking for a second opinion | ποΈ Guided |
| Production, data or security changes | ποΈ Guided |
You can switch in the middle of a conversation: ask for an analysis in Guided Mode and, once you agree with the plan, switch to Agent Mode and write "go ahead, apply it".
Full control over Agent Mode
Agent Mode works on its own, but never without a safety net:
- Plan approval: in Review Mode the agent stops after writing the plan and shows Approve & Run, Edit Plan or Cancel.
- Diff viewer: click View diff on any edited file to see what changed, line by line.
- Revert this turn's changes: undoes at once everything the agent did in response to one message.
- Automatic verification: when it finishes, DevFlow checks the edited files and the agent fixes syntax or type errors on its own.
- Terminal permissions: for sensitive commands you choose Allow once, Always allow in this project or Deny.
All of this is explained step by step in Agent change control.
Last updated: November 26, 2026