Skip to content

Threads

A thread is a conversation with an agent. Start a one-off thread for quick questions or experiments, or group related threads inside a project. Threads start with no compute—when the agent needs somewhere to run code, it spins up or attaches a machine. Everyone in a project can read its threads, and each thread acts with the permissions of the person who started it.

Viewers can read threads. Editors can run everything on this page, and project owners can also save “always allow” approval rules.

In the web UI, press ⌘⇧O (or click New thread on a project). To work outside any project, pick One-off threads in the sidebar, choose New one-off thread in the command palette, or select No project (one-off) in the new-thread project picker (your draft and attachments carry over). One-off threads get an isolated personal scope in the current org—their machines, permissions, and saved approvals stay separate from named projects, while org owners and admins keep their usual org access.

Use the composer footer to choose the model (⌘⇧M), effort (⌘⇧E), and access mode (⌘⇧A). You can attach up to 10 files per message by picker, paste, or drag-and-drop (up to 5 MiB per image, 512 KiB per text file).

From the CLI:

Terminal window
anastroctl thread create --project <project> --title "Fix flaky auth test" \
"The auth test fails about one run in ten. Find out why and fix it."
anastroctl thread get <thread> # state, machines, tasks, and log entry IDs
anastroctl thread wait <thread> # block until idle; exits non-zero on failure

Pass --model and --access supervised|full to set them up front. If no --project, ANASTRO_PROJECT, or context project is set, thread create and thread list default to your one-off threads; pass --one-off to target them explicitly even when a project is selected:

Terminal window
anastroctl thread create --one-off "Help me understand this error"
anastroctl thread list --one-off
Tools What they do
machine_create, machine_list, machine_attach, machine_detach, machine_spin_down, machine_move, machine_destroy Manage machines
bash Run commands in a machine; file changes are snapshotted automatically
fs_checkpoint, fs_diff, fs_restore Take, compare, and restore workspace snapshots
browser_open and other browser_* tools Drive the machine’s shared browser to inspect and test apps
html_preview, html_render, image_show Preview and publish interactive HTML or workspace images in chat
user_ask Pause to ask you structured questions
todo_update Maintain a visible task list
agent_spawn, agent_wait, and other agent_* tools Delegate work to sub-agents
pull_request_open, pull_request_link Open or link pull requests (GitHub)
project_notes Read shared project notes (when enabled by an editor)
mcp__<server>__<tool> Call tools from the org’s connectors
Mode Behavior
Supervised Pauses for approval before bash commands, machine destruction, snapshot restores, opening PRs, and MCP tool calls—unless an allow rule covers them.
Full access Runs all of the above without asking.

New threads inherit the cluster default (supervised unless changed by your operator) or your preference in Settings → Defaults. Switch modes at any time from the composer footer or CLI:

Terminal window
anastroctl thread set <thread> --access full

The new mode applies starting with the next tool call; anything already waiting for approval still waits.

Pending approvals appear above the composer showing the tool and exact action, with Decline and Approve buttons. Under ⋯, project owners can pick Always allow in this project to remember that exact command (or MCP tool) going forward.

Sending a message while an approval is pending declines that call with your message as the reason, and the agent continues from what you wrote.

From the CLI, thread get prints pending approvals as approval <id> <tool>: <summary>:

Terminal window
anastroctl thread approve <thread> <approval>
anastroctl thread approve <thread> <approval> --deny
anastroctl thread approve <thread> <approval> --remember # always allow in this project

An agent can never approve its own calls.

In either access mode, the agent can pause and ask one to four multiple-choice questions. They appear one at a time above the composer: press 1–9 to pick an option or write your own answer, then click Submit answer. Click × to dismiss them and let the agent use its own judgment.

You don’t have to wait for the agent to finish before talking to it:

Mode Shortcut What happens
Steer (next round) ↵ Joins the conversation as soon as the current tool calls finish.
Interrupt ⌥↵ Sends SIGINT (then SIGKILL after 5s) to running commands, snapshots what’s on disk, and hands your message to the agent.
Queue ⌘↵ Waits until the current run finishes.

Settings → Interface → Follow-ups swaps ↵ and ⌘↵. Queued messages appear dashed at the bottom of the thread, where you can edit, delete, or promote one to an immediate steer.

Terminal window
anastroctl thread send <thread> "Also check the login test" # starts work, or queues
anastroctl thread steer <thread> "Stop, use the staging DB" --mode interrupt
anastroctl thread abort <thread> # stop the run and drop queued messages
anastroctl thread retry <thread> # continue a run that ended without an answer

In the UI, use Stop while the agent is working, or Resume thread after a stopped or failed run.

For multi-step tasks, the agent maintains a checklist shown inline as “Tasks updated” rows and as a badge above the composer (such as Tasks 3/5); thread get prints it too. There is no separate planning mode or plan-approval gate.

Rolling back rewinds both the conversation and the files of every machine attached at that point.

  1. Hover an agent reply and click Roll back to here—or on one of your messages click Edit from here to load it back into the composer and resend.

  2. Confirm. Running work stops and every attached machine is checkpointed first, so the rollback itself is reversible.

  3. The undone turns collapse into a side branch beneath the log. Click Roll forward to here on any of them to return.

Machine at rollback target Current state After rollback
Attached Still attached Files rewind to that turn on a new branch
Attached Detached and free Reattached with its files from that turn
Attached Attached elsewhere, or destroyed Cloned into a new machine from that turn; the other thread’s machine is untouched
Didn’t exist yet Exists Spun down and detached (not destroyed)

Rewound machines reboot so their .dwfs.toml rebuild hooks and services re-run (Workspace settings).

From the CLI, grab an entry ID from thread get:

Terminal window
anastroctl thread rollback <thread> <entry>
anastroctl thread get <thread> --branch <branch> # inspect a side branch
anastroctl thread rollback <thread> <entry> --branch <branch> # roll forward onto it

Forking creates a new thread containing the history up to a chosen turn, acting as you. Every machine attached at that point is cloned in a stopped state and boots only if the fork uses it. The original thread and its machines aren’t touched.

Choose Fork from here on any entry, or Fork thread in the title menu to fork from the end:

Terminal window
anastroctl thread fork <thread> <entry> --title "Try the other approach"

A side chat lets you ask a quick question alongside a running thread without interrupting it. It forks the thread’s context at its latest stable point (with stopped copies of its machines) and answers in parallel.

  • Send /side <question> or /btw <question> as your whole message, or open Side chat from + in the right panel.
  • Side chats open in a right-panel tab with Open as a thread and Delete. Closing an empty side chat deletes it automatically.
  • The thread header tracks active ones (e.g. Side chats · 1 running).
Terminal window
anastroctl thread side <thread> "Which test runner does this repo use?"
anastroctl thread side-chats <thread>

A thread needs at least one message before it can have a side chat, and side chats can’t spawn their own side chats.

  • /clear starts a fresh model session inside the same thread—keeping its title, machines, task list, and visible history behind a New session divider. Until you send the next message, click Keep the current session to cancel; rolling back past the divider also restores the old context.

    Terminal window
    anastroctl thread clear <thread>
    anastroctl thread clear <thread> --undo
  • /compact summarizes earlier turns to free up context window. The ring beside the send button shows how full the context is; past 75%, a toggle appears to compact automatically before your next send.

Switch models and recover from usage limits

Section titled “Switch models and recover from usage limits”

Pick a different model in the composer at any time. When you switch accounts or provider protocols, Anastro builds a text handoff summarizing the thread’s decisions and progress so the new model can pick up cleanly (earlier tool calls stay in the log as history, and your machines stay attached).

If a provider hits a usage limit and reports a reset time, the thread shows Usage limit reached with options to Resume at reset, Cancel auto-resume, or Snooze until reset. These run on the control plane, so they work even with your browser closed. If the provider doesn’t report a reset time, retry manually or switch model accounts.

Agents can preview an interactive HTML page in a machine, inspect its rendered screenshot and console output, and publish it inline in chat—where you can interact with it, view its source, or download the HTML. Workspace images can also appear inline and open in a gallery. Inline previews render in an isolated frame without disturbing the machine’s shared Browser tab.

An agent can spin off self-contained work to sub-agents—child threads with fresh contexts and focused prompts, running on any model your org’s accounts offer, in parallel.

  • Each sub-agent gets stopped clones of the parent’s machines so edits stay isolated (unless the parent explicitly lends a machine).
  • Sub-agents inherit the parent’s access mode. Pending approvals bubble up above the parent’s composer (Approval needed from …), while questions are answered inside the sub-agent thread.
  • Sub-agents show up as clickable rows in the parent log, where you can read, steer, or answer them.
  • Limits: up to 3 levels deep and 6 active sub-agents per thread at once.

Pins, settles, snoozes, and unread marks are private to you.

Action Effect
Pin Holds the thread at the top in your chosen drag order
Settle Moves it out of the way until new activity arrives
Snooze Hides it until a chosen time, or until it needs your input
Mark unread Highlights it as new again

Act from a row’s hover buttons, right-click menu, or multi-select with ⌘-click / ⇧-click. You can drag threads between Pinned, Active, and Settled, or drag a thread into the composer to reference it.

Each project in the sidebar folds like a folder and remembers its open/closed state. Unpinned threads idle for 7 days settle automatically (configurable in Settings → Threads).

Terminal window
anastroctl thread set <thread> --pinned true
anastroctl thread set <thread> --settled true
anastroctl thread set <thread> --snooze 3h
anastroctl thread set <thread> --wake
  • Archive (title menu or right-click menu) stops active work, detaches and stops its machines, and moves the thread to Settings → Archived threads (where you can unarchive or delete it). You can’t archive a thread from the menu while it’s actively working. Machines created by an archived thread become eligible for automatic cleanup after the archive retention window—see Keep a machine after archive.
  • Delete removes the thread and its side chats permanently. Attached machines are detached and left alone unless you opt to destroy them; threads forked from it keep working.
Terminal window
anastroctl thread archive <thread>
anastroctl thread unarchive <thread>
anastroctl thread delete <thread> --delete-machines

A thread and its machines act as whoever started it (inheriting their project roles, git access, and secrets). Another editor can take ownership so future work runs as them:

Terminal window
anastroctl thread takeover <thread>