Flotilla

Docs / Going further

Running many agents

Once a few agents feel natural, here's how to choose where each one works, try two approaches at once, and keep a big fleet light.

Choose where an agent works

New agents start on a fresh branch from the latest main branch. That's right most of the time, but the New Agent sheet (⌘N) has other options under From:

If a project's agents should always use the main checkout, set that once under New agents in Edit Project.

Try two approaches

Not sure which way to go? Right-click an agent and choose Fork Session…. The fork starts with the whole conversation so far, in its own checkout, so you can send each one down a different path and keep the better result.

Find any agent

With a dozen agents running, press ⌘O and type. Flotilla finds agents by name, branch, pull request, task, a file they touched, or even something said in their conversation. Deleted agents show up too.

Holding ⌥ shows a number next to the first nine agents in the sidebar; ⌥1 to ⌥9 opens them. With the commander on, it's always ⌥1.

Start agents instantly PRO

Checking out a big repo takes a moment. In Edit Project, unfold Ready worktrees, sleeping agents, environment, repo settings and choose how many worktrees to keep ready. New agents then start in one straight away, and each deleted agent's worktree is replaced with a fresh one.

If every new worktree needs the same setup, like installing dependencies or copying a .env file, put it in the repo's settings and Flotilla does it before an agent arrives. See Repo settings.

Let idle agents sleep PRO

An agent that's done and waiting still uses memory. Flotilla can put idle agents to sleep after a while (30 minutes, unless you change it in Settings › Agents). A sleeping agent keeps its last screen right where it was, with Resume over its last rows, and if you resize the pane the screen is cut at the edge instead of redrawn. Press ↩ in its pane or click Resume and it carries on with its conversation. An agent with a command still running in the background, like a build or a dev server, stays awake until it finishes.

You can change this for a project in Edit Project, or for a single agent by right-clicking it and choosing Sleep When Idle or Sleep Now. When your Mac runs low on memory, Flotilla puts idle agents to sleep sooner.

Give a project's agents environment variables

If a project's agents need a token, a region or any other setting in their environment, add it in Edit Project under Ready worktrees, sleeping agents, environment, repo settings, one KEY=value per line. Agents and their terminal tabs get them the next time they start.

The values are kept unencrypted in Flotilla's data on your Mac, and the agents can read them, so only add secrets you're happy for an agent to use.

Keep agents running when you quit PRO

Turn on Keep agents running across restarts in Settings › Agents, and agents carry on in the background when you quit, update or restart Flotilla. Open it again and every pane is right where you left it.

Without it, quitting stops the agents. Their conversations are saved, and each one resumes when you open it next time.

Whichever way an agent stops (you stop or delete it, it crashes, or Flotilla quits with it), anything it started that's still running, like a dev server or a watcher, is stopped with it. The sidebar's footer says what was stopped. Apps it opened, like Docker or a simulator, keep running.

Projects with several repos PRO

If your work spans repositories, like an app and its API, add them all to one project. Each agent gets a checkout of every repo and starts in the first one. Adding a repo tells Claude Code you trust it, so its agents don't ask each time they start.