Skip to main content
Watchfire
Concepts
Main content

Sessions

A session is an agent at work in a project. Since Hearth (v11.0.0) several run side by side — in their own worktrees or in the project checkout — and you choose what happens to the work when each one ends.

A session is an agent at work in a project. Until v11 a project ran one agent at a time; since Hearth (v11.0.0) several work side by side, and you decide what happens to each one's work when it ends.

Everything on this page is additive. A project that sets none of the workflow options behaves exactly as it did in v10: tasks run in a worktree and are merged according to auto_merge and auto_delete_branch.

Restart the daemon after upgrading

Sessions need a v11 daemon. After upgrading, run watchfire daemon stop && watchfire daemon start. The GUI, TUI and CLI say so when they find an older daemon, and hide the session surfaces until then.

Two types of session

TypeWhat it isExamples
InteractiveA session you talk toThe project's chat, and sessions you start by hand with a prompt
AutomatedA session that runs by itselfWildfire, Run All, single task runs, Generate and Plan

The GUI's Sessions tab, the TUI's Sessions tab, watchfire session list and Telegram's /sessions all group sessions this way.

A session you start by hand runs next to whatever the project is already doing. It never replaces the running agent. A project can have up to 16 agents at work at once.

Where a session works

When you start a session you choose its workspace.

WorkspaceWhat you getWhen it ends
New worktree (default)Its own branch and folder, isolated from your checkout and from other sessionsThe branch and worktree are kept, and the session waits for a finish action
Main checkoutThe agent works directly in the project folder, on the branch checked out thereNothing to finish: there is no branch, and its edits are simply in your checkout

A main-checkout session shares the folder with you and with the project's main agent. Keeping them out of each other's way is your call.

A worktree session can start from any branch. In the GUI, New session → New worktree has a Start from list of local and remote branches. From the CLI, use watchfire session new --from <ref>. The session gets a new branch that starts there, and a pull request opened when it finishes targets that branch.

Each running agent gets a slot number (1, 2, 3, …), exported to the agent as WATCHFIRE_SESSION_SLOT so that dev servers started by parallel agents can offset their ports.

Starting a session

SurfaceHow
GUINew session in the Sessions tab toolbar
TUIn on the Sessions tab
CLIwatchfire session new "<prompt>" (add --main for the main checkout)
Telegram/session [main|worktree] <prompt>
MCPstart_session

Finish actions

A finish action is what happens to a session's or task's branch when the work is done.

ActionWhat happensWorktreeBranch
askNothing yet. The work waits for you to choosekeptkept
prCommit, push, open a pull requestremovedkept locally
pushCommit and push the branchremovedkept locally
mergeMerge into the branch checked out in the projectremoveddeleted
keep_branchCommit and keep the branchremovedkept
keep_worktreeCommit and leave everything in placekeptkept
discardDelete the work. Only ever applied when you choose itremoveddeleted

Set the action per project with watchfire workflow --finish <action> or the Workflow section of project settings, or per task. A session you start by hand defaults to ask. Apply an action to waiting work with Finish… in the GUI, the finish menu in the TUI, or watchfire session finish.

A few rules hold whatever the action:

  • Uncommitted edits are committed first.
  • There is no fallback to a local merge. If a pull request or push cannot be completed, the work stays exactly where it is and the task waits with the reason.
  • An empty branch is never published. pr or push with no commits removes the worktree and records that there was nothing to publish.
  • A merge is refused while your checkout has uncommitted tracked changes.

Parallel Run All

watchfire run all --parallel N, or the lanes control next to Run All in the GUI, works through the ready queue in N sessions at once. Each lane picks the next ready task nobody is working on. Set a project default with watchfire workflow --max-parallel N.

Wildfire stays single-lane, because its refine and generate phases read merged results.

Pull requests and follow-ups

For every pull request a finish action opened, the daemon polls its state, checks and review verdict through the gh CLI. This is read-only and needs no webhook or admin rights, so it works on repositories you do not own.

  • Failing checks or requested changes raise a notification and put the task under Needs attention.
  • A merged pull request removes the local branch that was kept for it.
  • Follow up (GUI and TUI) or watchfire pr fix <n> opens a session on the pull request's own branch, with the failing checks and review feedback as its prompt. Finishing that session with push updates the pull request.

Follow-ups are always started by a person, never automatically.

History, resume and conversations

Sessions that have ended stay in the Sessions tab under History, newest first, with when they ended, how long they ran, the agent and the tokens used. Picking one shows its transcript as a conversation.

A session in History has a Resume button. It starts a live session that continues that conversation in the folder it ran in: the main checkout, or the worktree of a session that is still waiting to be finished. From the CLI, use watchfire session new --resume <log-id>.

Resume works for Claude Code sessions that left a transcript. It is refused, with the reason, when the folder is gone or there is no conversation to continue.

Every session belongs to a conversation. A resumed session joins the conversation it continues, so History lists one row per conversation with tokens and time summed.

Stopping

Stopping from Telegram, the tray or the MCP stop_agent tool stops the project's run: the main agent and every parallel Run All lane. Sessions you started by hand are left alone. Stop one of those from its row in the GUI or TUI, with watchfire session stop, or with the MCP stop_session tool.

Stopping a worktree session keeps its worktree and branch, so you can resume it or finish it later.

Working in a repository you do not own

watchfire init --work-repo (or Work repository in Add Project) sets a project up to leave no trace in the repository: nothing is committed, .watchfire/ is hidden through the local git exclude file, worktrees live outside the repository, and work finishes by opening a pull request. See watchfire init.

On this page