Skip to content

Dev mode

Dev mode turns web chat into an IDE over the conversation’s environment: the Workstation or the laptop where the agent reads, writes and runs commands. The files, the editor, terminals and source control take the middle of the page, and the chat stays in a column on the right, with its steps, approvals and plans as usual.

Use it when you program with an agent: watch the files it opens and edits, fix a line yourself, run something in a terminal, see what a turn changed and undo it, and commit the result.

  • The dev_mode.use permission. The developer role has it, and so does admin. It is otherwise the user role plus the workspace web chat. See Users and roles.
  • An environment for the conversation. Dev mode shows the files of the environment the agent works in: the Workstation assigned to the agent, or else your laptop, paired with the VirtuAI CLI and running its runner. Without one, the explorer says This conversation has no environment.
  • Your own conversation. Dev mode works on conversations you started. A new conversation has no files yet: send a message to start it.
  • A wide window. Dev mode needs a window at least 900 px wide. On a phone or a narrow window, the switch is hidden and the chat stays the chat.

Some parts need a recent VirtuAI CLI on the environment:

Part VirtuAI CLI
Saving, what each turn changed and undo 1.0.21 or later
Terminal 1.0.22 or later, on macOS or Linux
Source control without being asked to approve your own commands 1.0.24 or later
Terminal tabs named after the shell, such as zsh 1 1.0.27 or later

Workstations come with a recent CLI. On your laptop, update the VirtuAI CLI or the desktop app.

  1. Open the workspace web chat and the conversation you want to work on.

  2. Select Dev mode in the top bar. Its tooltip reads Open dev mode: the environment’s files in an IDE. The switch appears only when dev mode is available to you.

  3. To go back to the plain chat, select Dev mode again (Leave dev mode).

Dev mode is part of the address (&dev=1), so a reload or a link you share opens it again. While it’s on, the IDE takes the history sidebar’s place; leaving dev mode gives the sidebar back as it was.

Area What it holds
Activity bar (far left) Explorer, Search and Source control
Side bar The view chosen in the activity bar. Drag its edge to resize it.
Editor A tab per open file
Bottom panel Agent commands, Changes and Terminal. Drag its edge to resize it, or hide it with Hide panel.
Chat (right) The conversation, with its composer. Drag its edge to make it wider or narrower.

An artifact or a file you open from a reply opens over the IDE, not as another column.

The explorer shows the conversation’s working folder: the environment’s name, whether it’s a Workstation or a Laptop, and the folder’s path. Folders open one level at a time. Collapse folders and Refresh are at the top.

  • Files the agent created or modified in the current turn are marked, and the agent’s current file carries a marker too.
  • The .virtuai folder is shown dimmed. VirtuAI keeps its own data for the conversation there, such as the copies behind undo.
  • An empty folder says so. What the agent does outside the working folder isn’t in the tree.

Right-click a file for Open, Mention in chat, Copy path, Copy relative path and Download. Right-click a folder for Expand or Collapse, Refresh folder, Mention in chat and the two copy options.

Select a file in the explorer to open it in a tab. With Follow the agent on (the button reads Following), the files the agent reads or edits open on their own, and its writes show as they happen. Lines changed in the current turn are marked in the margin.

  • Edit and save. Type in the file, then select Save or press ⌘S (Ctrl+S). Until you save, the tab shows Unsaved and nothing changes in the environment. Leaving the page with unsaved changes asks you first.
  • The agent and you on one file. While the agent is writing a file, it’s read-only (The agent is writing this file). If the agent changes a file you are editing, a banner says so and your draft is kept. If the file changed in the environment since you opened it, saving says The file changed in the environment since you opened it.: choose Discard my changes or Save mine anyway.
  • Tabs. Right-click a tab for Close, Close others, Close all, Mention in chat, the copy options and Reveal in explorer.
  • Long lines. Wrap long lines turns line wrapping on or off.
  • Binary files and files too large for the editor aren’t shown.

Saves are made as you, only inside the conversation’s working folder, and logged with your user and the path. They aren’t put to command approvals.

Write @ in the composer to pick a file from the project, or mention one from the explorer or a tab with Mention in chat. To mention some lines, select them in the editor and select Lines 10–40 in the editor bar, or press ⌘L.

@src/app.py attaches that file to your message, and @src/app.py:10-40 attaches those lines, so the agent starts with the code you mean. The conversation keeps your message as you typed it. A mention that names no file in the folder is plain text. Each message attaches at most 10 files and 400 KB, and a file over 200 KB is named rather than attached.

Typed mentions work in any web chat message to a deep agent whose conversation has an environment, not only in dev mode.

Search in the activity bar, or ⌘⇧F, searches the files in the working folder. It ignores case unless you select Match case, and searches for the text as typed unless you select Regular expression. Select a result to open the file at that line.

Version control folders, dependencies, build output and .virtuai are skipped. A search shows the first 500 matches at most.

Agent commands in the bottom panel lists the commands the agent runs in the environment, live, with their output. Clear empties the list.

Before the agent first writes or edits a file in a turn, the environment keeps a copy of it as it was. Changes in the bottom panel lists the turns that changed files, newest first, each named after the message that started it:

  • View changes opens a file’s diff in the editor: what the turn removed above what it added. Back to the file returns to the file.
  • Undo turn puts back every file the turn changed, after you confirm. Undo this file puts back one. A file the turn added is removed.
  • If a later turn changed the same file again, undoing the earlier turn warns you first: the later changes go too.
  • You can’t undo while a turn is running. Wait for it to end.

Keep in mind:

  • Only the agent’s own file writes and edits are kept. What a command changes, such as an install or a formatter, isn’t. Use Source control to see every change in a repository.
  • The last 20 turns of a conversation are kept.
  • A symbolic link, or a file over 2 MB, is marked not kept: that change can’t be undone here.

Terminal in the bottom panel opens your login shell in the conversation’s working folder, on the environment.

  • Several terminals. Each terminal is a tab. New terminal (+) opens another, × closes one, and a double-click renames it. A conversation can have up to 8 open terminals.
  • They keep running. Switching to another tab or panel keeps a terminal’s shell and scrollback. When a shell ends, Restart terminal opens a new one in the same tab.
  • Yours, not the agent’s. What you type runs as you. It isn’t put to the agent’s command approvals or to the CLI’s command check, which are for the agent’s commands. The shell has the agent’s environment, without VirtuAI’s own credentials.

Closing a tab ends its shell.

Source control in the activity bar works on the Git repositories in the working folder: the folder itself when it’s in a repository, or else the repositories up to three levels down, up to 8. With more than one, choose it under Repository.

What How
Branch Switch branch, create one with New branch from here…, and see the commits to push and to pull
Changes Changes and Staged lists. Stage, Unstage and Discard changes per file. Select a file to see its uncommitted changes.
Commit Write a message and select Commit, or press ⌘↵. With nothing staged, the button reads Commit all.
Sync Pull brings the branch’s new commits, fast-forward only. Push sends yours, or Publish branch when the branch isn’t on the remote yet.
Pull request Once the branch is pushed, Open pull request opens the host’s page to create one, on GitHub, GitLab or Bitbucket, signed in as you
  • Git runs in the environment, with its own configuration and credentials. On your laptop, a push over SSH can use your SSH agent; the agent’s commands never can. Nothing waits for a password: a push without credentials fails with Git’s message.
  • Commits use the environment’s Git identity, or your VirtuAI name and email when it has none.
  • Discard changes, switching branch and Pull wait until the agent’s turn ends, because they change files under it. Staging, committing and pushing don’t.
  • There is no merge or rebase in the panel. Use the terminal for those.

Repositories VirtuAI delivers to a Workstation come without their Git history, so the panel doesn’t list them. See Repositories.

Dev mode’s composer is web chat’s slim composer, with commands instead of pickers:

  • /model, /agent and /effort open a menu over the composer to change the model, the agent or how hard the model thinks. Use the arrow keys, Enter or Tab, and Escape. The model and effort shown under the box open the same menus.
  • /plan turns plan mode on or off; /plan on and /plan off set it. Shift+Tab does the same.
  • Only these words are commands. Anything else that starts with a slash, such as /etc/hosts, is sent as a message.

When the agent works on your laptop and the CLI’s command check doesn’t clear a command, the question can come to the chat, as Your computer asks before running. Only you, the computer’s owner, can answer it. See Command approvals.

There’s no Dev mode switch : Dev mode isn’t turned on for your workspace, your role doesn’t have dev_mode.use, or the window is narrower than 900 px.

“This conversation has no environment” : The agent has no Workstation and no paired laptop is connected. Assign a Workstation to the agent, or pair your laptop with the VirtuAI CLI and run its runner.

The terminal says it needs a newer CLI : Update the VirtuAI CLI on that computer with pip install -U virtuai-cli, or update the desktop app.

“The environment did not answer in time.” : The Workstation or laptop didn’t respond. Check that it’s online, then try again.

“No git repository in this folder.” : The working folder has no Git repository within three levels. Open a folder with one, or clone it from the terminal.