Deep agents
Every agent runs on a harness: select Deep agent when you create the agent, or change Agent type in the editor’s General tab later.
| Harness | Best for |
|---|---|
| Classic: a conversational agent | Answering questions, looking things up and calling a few tools in a turn. Faster and cheaper per turn. |
| Deep: planning, skills, memory and sub-agents | Multi-step work: research, drafting documents, working with files, tasks that need a plan and several tools in sequence. |
Start with Classic. Switch to Deep when the agent needs to plan, keep notes between conversations, or follow skills.
What Deep adds
Section titled “What Deep adds”- Planning. The agent breaks a request into a to-do list and works through it step by step.
- Skills. Playbooks the agent opens only when a task matches them. See Skills.
- Long-term memory. A notes file the agent reads at the start of every conversation and can update as it learns.
- Sub-agents. The agent can hand parts of a task to other agents. Attach them in the visual canvas.
- Files and commands. A workspace where the agent can write files and, when a sandbox or a Workstation is available, run shell commands.
Memory
Section titled “Memory”With Deep selected, the editor’s Instructions tab shows the agent’s Skills and Memory.
| Field | What it does |
|---|---|
| Initial memory | Text loaded into the agent’s memory the first time it is used, for example “The company sells solar panels. Always respond in Spanish.” The agent can update it over time. A seed only fills an empty memory: once the agent has one, the field says a new seed is not applied, and takes effect only after you reset the memory. |
| Current memory | What the agent has stored so far, with the time of the last update. Reset memory clears it; the cleared memory stays in the history and can be restored. |
Memory is capped at 16 KB.
What the agent learned
Section titled “What the agent learned”Every change the agent makes to its memory is kept. Under Current memory, select What the agent learned to see them, newest first. Each change shows:
- its number, such as r12, and what happened: Written by the agent, Edited by the agent, Restored, Cleared, or Before the first change for what was there before the agent first wrote
- where it was learned: the channel, the conversation and the person
- the published version that was live when the agent wrote it, such as v4, when the agent uses versioning
- when it happened
Expand a change to see what it added and removed. To go back, select Restore this version on an earlier change. The restore is added as a new change on top, so it can be undone too.
When people chat in web chat or the CLI, a step says when the agent updates its memory.
Review what agents learn
Section titled “Review what agents learn”Because a memory change reaches everyone at once, VirtuAI tells workspace admins when an agent learns something:
- Alerts gets one alert per agent per day, “agent learned something new: its memory changed”, with See what it learned. Like every alert, it carries no content: what the agent learned is only in the history. See Alerts.
- The agent’s card on Agents shows 🧠 N to review, which opens the history.
- In the history, changes nobody has reviewed carry a dot. Mark as reviewed clears them. Restoring a version also counts as reviewing.
When you roll back to an earlier published version, VirtuAI also asks whether to put the memory back as it was when that version was published. By default the memory keeps what the agent learned since. See History and rollback.
Seeing the memory and its history needs agents.view. Resetting it, restoring a version and marking changes as reviewed need agents.edit.
Where commands run
Section titled “Where commands run”When a deep agent runs a shell command, the command runs in the first of these that is available:
- The agent’s Workstation, when an admin associated the agent with one under Sandboxes. The agent then runs there or nowhere: if the person writing isn’t one of the Workstation’s people, or it is offline, the agent has no shell for that conversation and says so.
- A paired VirtuAI CLI for the workspace: the user’s own machine, or a container running the CLI.
- A cloud sandbox, when the workspace has an
E2B_API_KEYin Workspace settings. - A virtual file system otherwise. The agent can still read and write files, but it cannot run commands.
In web chat, each command and file step shows where it ran, for example in Workstation: Support.
In web chat and the CLI, each command waits for the user’s approval first. See Command approvals.
Files the agent shares
Section titled “Files the agent shares”A deep agent can hand the person a file it made, such as a report, a spreadsheet or a chart. On Slack, Telegram, Google Chat and A2A it arrives as a file. In OpenCode the agent names the file’s path in your project.
In web chat, a deep agent’s file writes appear as steps, and the files it hands over close the reply as tiles. See Web chat.
Only a file inside the agent’s working folder can be shared. If the file is somewhere else on the machine, for example a document the agent found in your cloud drive folder, the agent is told which folder it works in, copies the file there and then shares it. A shared file can be up to 25 MB.
Plan before changing
Section titled “Plan before changing”In web chat and the CLI’s chat, a deep agent can work in plan mode: for the messages you choose, it investigates and proposes a plan without changing anything, and carries it out when you agree. See Plan mode.
Long conversations
Section titled “Long conversations”A deep agent’s conversation is never summarized on its own. When it fills the model’s context, the person compacts it: in web chat, by clicking the context ring in the top bar; on Telegram, Slack, Google Chat and the CLI’s chat, with /compact. The older messages are summarized for the agent and the recent ones are kept. From 80% full the agent suggests it, and a conversation that no longer fits says so instead of failing. See How full the conversation is.
Work on its files in an IDE
Section titled “Work on its files in an IDE”In web chat, dev mode shows the files of the Workstation or laptop where a deep agent works, beside the conversation: an editor that follows the agent, terminals, source control, and what each turn changed, with undo.
On a local model
Section titled “On a local model”A deep agent whose model runs on your own machine through Ollama or oMLX uses a lighter version of the harness: it keeps files, commands, tools, skills, memory and sub-agents, and leaves out the to-do list. See Local models.
Where Deep applies
Section titled “Where Deep applies”Deep mode applies in web chat, the CLI, OpenCode, Google Chat, Telegram, Slack and A2A.
Before you switch
Section titled “Before you switch”- Deep agents make more model calls per request, so they cost more and take longer. Watch cost in Analytics after switching.
- Give the agent a Max output tokens large enough for the documents you expect it to write.
- Re-run your evaluations after the switch. A deep agent can pass or fail cases differently from the same prompt on Classic.
