Skip to content

Interactive mode

Pair with an agent in an interactive Claude Code session instead of a headless run.

vteam run <agent> --interactive (or the interactive session toggle in the TUI run dialog) runs the same agent, but instead of claude -p it opens the prompt in an interactive Claude Code session that you can pair with. It needs workmux and tmux. Cron runs are always headless.

Terminal window
vteam run coder --interactive
vteam run improver --interactive --focus "the auth module"
  1. Hand-off. vteam picks the task (claimed with claimed-session metadata instead of a pid), creates the branch, and creates the worktree with workmux add --headless. For PR follow-ups it also merges the base branch when the PR conflicts.

  2. Open. It opens the worktree with workmux open. Inside tmux (including from the TUI) the window opens in your current session and you are switched to it; outside tmux it goes to a tmux session vteam-<tasks.project>, which vteam tells you to attach to. Claude starts with the agent’s AGENT.md as system prompt, its model and tools, and the usual prompt plus an Interactive Session section. vteam run exits, and the agent lock is released, so cron runs carry on.

  3. Submit. When you are done, run /vteam-submit in the session (install it with vteam skill install). Claude pipes its AgentOutput JSON to vteam submit, which validates it (Claude fixes and resubmits on errors), commits any uncommitted changes, pushes (commits you made yourself are pushed too), opens or updates the PR, settles the task, and creates one task per finding for task-producing agents ("content": {"type": "tasks", "body": [...]}). Then a detached vteam session finalize runs the on-finish hook and memory curation and closes the window with workmux remove, which also removes the worktree and its local branch. A window in the vteam-<tasks.project> session (run started outside tmux) is not closed, because killing a session’s last window would detach you from it; vteam removes the worktree and you close the window. If submit fails (a rejected push, say), the session stays open and you can submit again.

  4. Abandon. Closing the window without submitting abandons the session. The next vteam ensure-merge marks it abandoned and returns its task to todo with a note. The worktree is kept. To remove it, press c on the TUI’s Overview tab: a confirmation popup lists the abandoned sessions and removes their worktrees and local branches. Sessions with uncommitted changes or unsubmitted commits are kept unless you choose to discard that work. You can also run workmux remove <handle> yourself. An abandoned session cannot be submitted.

Agents without worktree: true still get a worktree to host the session, but nothing is committed from it. Sessions are recorded in the project’s state directory (sessions/). vteam status lists open sessions and abandoned ones whose worktree still exists, and the TUI sidebar shows ◆N next to an agent with open sessions.