🛠 We are currently running final tests on the desktop application and completing setup adjustments to ensure a smooth experience from day one. Full access and official installers for Windows, macOS, and Linux will be available again shortly.

Agent change control

Plan approval, diff viewer, reverting a turn, automatic verification and terminal permissions.

Agent Mode can create and edit many files in a single task. DevFlow AI gives you five tools so you always know what it did, can review it first and undo it afterwards.

1. Plan approval before touching code

With "Plan before editing" on (the switch next to the Send button), the agent first reviews the project and writes a plan in .app_context/current_spec.md. You choose what happens next in the Execution Plan panel or in Settings → Agent:

ModeWhat it does
Review Mode (recommended)The agent stops after writing the plan. You will see Approve & Run, Edit Plan and Cancel in the panel and above the text box.
Fast AutonomousThe agent runs the plan as soon as it writes it, without pausing.
  • Edit Plan opens the plan in an editor. You can add, remove or reorder steps and press Save & Approve: the agent re-reads your version before continuing.
  • While the plan waits for your approval, DevFlow blocks any code change by the agent, even if it tries in the same response.
  • Cancel stops the task without any code file having been modified.

2. Diff viewer

Every file the agent creates or modifies shows a View diff button in the chat's action list. You can also click the files in the plan panel.

  • Removed lines appear in red and added lines in green, with the line number of the previous and current version.
  • Unchanged parts are folded into "··· N unchanged lines"; click to see them.
  • From the chat, the viewer compares the file with its state before that turn, even if the agent edited it several times. From the plan panel, it compares it with the latest .bak copy.

3. Revert a whole turn

A turn is everything the agent does in response to one of your messages, even if it takes several steps. On the last reply of each turn that modified files you will see the discreet Revert this turn's changes button.

  1. Pressing it opens a window with the list of files: RESTORE (goes back to its previous version) or DELETE (the turn created it).
  2. You can open each file's diff before confirming.
  3. When you press Revert, every file goes back to its previous state at once: either all of them are reverted or none changes.

DevFlow then updates its project memory and records the rollback in DEVFLOW.md, so the agent does not re-apply those changes on its own.

Important: reverting only affects the files the agent wrote. It does not undo the effects of the commands it ran (installed packages, database changes, deployments). If you edited a file by hand after the turn, the window warns you: those changes will be lost too. Keep using Git for your full history.

4. Automatic verification and self-correction

When the agent finishes a task, DevFlow checks the files it modified on your computer:

Project typeCheck
TypeScript (tsconfig.json)The project's own TypeScript compiler
typecheck script in package.jsonThat script (for example, vue-tsc)
PHPPHP syntax check
PythonPython syntax check
JavaScriptNode.js syntax check
JSONFormat validation

If it finds syntax or type errors in the edited files, it sends them back to the agent with the exact line so it fixes them on its own. It tries at most 2 times to avoid spending extra tokens. At the foot of the reply you will see the result: "Automatic verification passed" or the remaining errors.

  • Only the files the agent touched count: old errors in other files are not "fixed" by surprise.
  • DevFlow downloads nothing: if your project does not have TypeScript installed, or PHP/Python are not on your computer, that check is skipped.
  • You can turn it off in Settings → Agent → Automatic verification and self-correction after editing.

5. Terminal permissions

Commands that can cause damage (for example git reset --hard or deletions) always ask for your authorisation. You now have three options:

  • Allow once: it runs now; next time it will ask again.
  • Always allow in this project: that exact command will not ask again in this project. A different command, even a similar one, will still ask.
  • Deny: it does not run and the agent looks for another way.

You can view and revoke the allowed commands in Settings → Agent. Commands blocked for security never run, even if you try to allow them.

Bonus: reasoning and hot model switching

  • Reasoning blocks: if the model thinks before answering (Claude, Gemini 2.5, DeepSeek-R1, o3, local models such as Qwen3), its reasoning appears collapsed as "Reasoning · X s". Open it only when you want to see how it reached the answer.
  • Switch models mid-conversation: use the model selector in the chat bar at any time, even with a local model active. For example, explore the project with Ollama or Gemini Flash and switch to Claude Sonnet/Opus or GPT-5 to write the architecture. If the agent is working, the change applies on its next step. DEVFLOW.md, the plan and the compressed history are kept intact.

Last updated: November 26, 2026