Workflow guide

Run multiple Claude Code agents at once without losing track

Starting another Claude Code session takes seconds. Keeping track of six of them across three repos is the hard part. This guide is for developers running Claude Code in more than one repo. By the end, every session sits under its repo and feature, you can see at a glance which ones need you, and each change is ready to review where it was made.

By , founder of Hercus Reviewed

Hercus with a document-chat project open: its files, the Tasks view with agent tasks running, completed, and waiting for input, and the project's other workspaces in the Projects panel
A workspace's tasks, each marked Running, Completed or Needs input, with every other workspace's counts on the right.

The short answer

Group your sessions by repository and by feature, give each feature its own branch when it needs one, and make every session's state visible so you only open the ones that need you. In Hercus, each repo is a project, each feature gets a workspace, every Claude Code task shows whether it's running, waiting for your input or finished, and a task can split its work into Claude Code subtasks. It runs on Macs with Apple Silicon.

Why it gets hard

One session is easy to follow. The trouble starts when a feature in one repo, a bug fix in another and a refactor in a third are all running at once, and some of them need more than one agent.

We hit this ourselves, working in real company codebases. We had several repos open at once, each with its own feature work, and some features running two or three agent threads. The Claude and Codex desktop apps made all of that hard to keep track of. These were the symptoms:

  • You can't tell which project a session belongs to without opening it.
  • You can't see which sessions are still working and which are waiting on you.
  • Two sessions edit the same files and overwrite each other's changes.
  • When a session finishes, you rebuild the context before you can review it.

Set it up in Hercus

Before you start, install Claude Code or Codex and sign in, so Hercus can run them. Then do this once for each repo you work in.

  1. Open each repo as a project

    Add every repository you work in. Each one becomes its own project, so its sessions never mix with another repo's.

    You'll see: Your repos listed in the Projects panel.

    In the docs: Add a project

  2. Create a workspace for each feature

    Inside the project, create a workspace for the feature. New workspaces use the repo's own files by default. When a feature needs its own branch and files, choose a worktree instead and pick the branch it starts from.

    You'll see: The workspace under its project, on its own branch if you chose a worktree.

    In the docs: Give a change its own branch

  3. Start a task with Claude Code

    Add a task to the workspace and give it one clear job. New tasks use your default agent, so make Claude Code the default in Settings, under Agents. If a feature needs two sessions, add two tasks. Tasks in the same workspace share its files, so give each one a separate part of the work.

    You'll see: The task in the workspace, marked Running.

    In the docs: Create a task

  4. Open only what needs you

    Every task is marked Running, Needs input or Completed through hooks Hercus adds to Claude Code's settings, and each workspace counts how many of each it has. Check the counts, open the tasks that need input, and leave the rest working.

    You'll see: The workspaces where your input is needed, without opening each task.

    In the docs: Task status

  5. Let a task split the work

    Ask a Claude Code task to split a job, for example: "Split this into two Claude Code subtasks, one for the API and one for its tests, and review their changes when they finish." It starts the subtasks, sends their instructions and reads their results, and Hercus tells it when each one finishes.

    You'll see: The subtasks listed under the task that started them.

    In the docs: Ask for subtasks

  6. Queue your next instruction

    When you think of the next step while an agent is still busy, add it to the task's follow-up queue. With auto-send on, Hercus sends it as soon as the task needs input.

    You'll see: Your instruction waiting under the task, sent when the agent is ready for it.

    In the docs: Queue follow-up instructions

Two Hercus workspaces for one repository, each on its own branch, with their task activity.
Two features in one repo, each in its own workspace and branch, with each workspace's task counts under its name.

Review each change where it was made

When a task finishes, its changes are already in its workspace. Read the diff, stage the parts you want, and commit. Then prepare a pull request, check the CI results, and open the logs of anything that failed.

Hercus never merges anything on its own. Publishing a pull request and merging it are buttons you press when you're ready.

  • Stage by hunk and commit from the Git panel.
  • Prepare a pull request from your commits, or open an existing one.
  • Read CI logs and ask the assistant to investigate a failed check.
  • Resolve merge conflicts in a separate workspace before you publish.

In the docs: Git, Pull requests, CI

A pull request open in Hercus with its description, four changed files, and its CI checks: four passed and one failed.
A finished change: its pull request, changed files and CI checks in the same window.

See the details

Each part of this guide has its own page with more screenshots and specifics.

Frequently asked questions

Doesn't Claude Code already show all my sessions?

Partly. Claude Code's Agent view lists your background Claude Code sessions across projects and shows which ones need you, are still working or are done. The Claude Code Projects beta has Claude coordinate the work itself, as threads that usually run in Anthropic's cloud on your GitHub repositories. Hercus runs Claude Code and Codex from your Mac, gives each feature its own workspace under its repo, and keeps each change's diff, pull request and CI checks in the same window. If you work in one repo with Claude alone, Agent view may be all you need.

Sources: Anthropic's Agent view docs, Anthropic's Projects docs

Can Claude Code run multiple agents at once?

Yes. Claude Code can hand side tasks to subagents inside one session, run background sessions you follow in agent view, and coordinate a group of sessions with agent teams, which are experimental. Its Projects beta runs threads in the cloud. Hercus adds one board across your repos, with each task under its repo and feature, Claude Code subtasks you can open and follow, and your dev servers, browser and pull requests in the same window.

Sources: Anthropic's guide to running agents in parallel

Do I need Codex too?

No. Hercus works with Claude Code alone. If you also use Codex, you can hand a task from one to the other and keep your skills and MCP setup available to both.

What happens to my sessions when I restart my Mac?

They come back. Hercus starts at login by default and reopens each Claude Code task with its conversation, as long as Claude Code still has it saved. Tasks in your current workspace resume straight away, and the rest when you open them. An agent that was mid-step is told to continue where it left off. Commands running in a terminal don't survive a restart: you get a fresh shell in the same folder.

Does every session get its own worktree?

No. A worktree belongs to a workspace, not to a single task. Tasks in a workspace share its files, so create a separate workspace for each feature that needs its own branch and working copy.

How much does Hercus cost?

Hercus is free for 7 days, with no credit card. After that it's $20 a month or $200 a year. Your Claude plan is billed separately by Anthropic.

Related guides

Stop hunting for the right session

Download Hercus for Mac, open the repos you already work in, and give each feature its own workspace. Free for 7 days, no credit card needed.

Choose your platform