Skip to content

hivemux teams: Claude Code sessions with roles

A team is a few Claude Code sessions with roles in one project (research, planning, design, dev, QA, marketing), each in its own window, passing work to each other by name with Claude Code’s messages between sessions. One role is the lead: you give it the team’s goal, it plans and hands the work out, and the roles pass what they finish down the flow.

Right-click a project’s name in the sidebar → Team… opens the team page in the bee office window. The Team link at the top of the bee office opens it too.

The hivemux team page on its Progress tab: a web and app team’s roles in flow order with their state and context, the box for the lead’s next goal, the flow of work and the questions waiting for you

With no team yet, the team page offers three ways in:

  • A template. The built-in Web & app service team has six roles that take a web or app service from research to launch: Research, Planning (the lead), Design, Dev, QA and Marketing. Templates you saved yourself are listed too.
  • The wizard. Three questions (what you are building, what you already have, what matters most) and it suggests the roles, with a reason for each. A plan you already have drops the research role, a design you already have drops the design role, and existing code makes dev read the current structure first. Quality first, Balanced (recommended for a first team) and Cost first set how careful each role is.
  • Build the team with AI. A chat that answers questions about the team (how many developers, which model and why, how to use less) from the project’s README and files and the team as it stands. When it proposes a change, it lists what would be added, changed or removed and applies it in one click.

From a terminal:

Terminal window
hivemux team templates # built-in templates and yours
hivemux team use web-app # put the template in this project's .hivemux/
hivemux team up # open each role in its own window

Each role is a Claude started as claude -n <project>-<role> in a window named after the role, with its own model, effort and prompt plus a block naming its teammates. Its conversation name, <project>-<role>, is the name the others message it by. On the team page each role has:

Setting What it does
Level Light, Standard, Careful or Best. hivemux sets the model, effort, advisor and subagent model for that kind of role (lead, builder, reviewer, research, light work). Or set them by hand
Advisor A stronger model the role asks before settling an approach, on a recurring error and before finishing; only the advice costs that model
Subagents The model its subagents use (haiku makes research reading cheaper)
Lead The role that gets the goal and hands out the work
Worktree The role works in its own git worktree, on branch team/<role>
Read-only The role writes only its notes, its questions, its reports and what it owns (for QA and review)
Owns The folders that are this role’s
Diet The context size at which the role starts fresh from its notes
Prompt The role’s instructions, with a preview of the final prompt

The page’s header runs the whole team as Economy, Balanced or Quality and shows what changes before it does. Usage shows as a multiple of the Standard level or of a balanced team, to compare, not to price. Through Bedrock, Vertex or Foundry the advisor is greyed out and kept unused, and Fable falls back to opus.

Start and stop the whole team, or one role, from the team page (hivemux team up / hivemux team down). The Getting started box walks through the first steps: roles stopped at Claude’s folder trust question are listed and one button answers them; then a box sends the lead the team’s goal, with example goals from the template. The lead plans and hands the work out.

Terminal window
hivemux team goal "Build a shop MVP with sign-in, a cart and checkout"

The box for the lead’s next goal stays open on a running team; Enter sends it.

  • Hand-offs. When a role messages a teammate, hivemux logs it. The team page lists the recent hand-offs, the end of the team’s line in the sidebar shows the last one for half an hour (✉ Planning → QA · 2m), and in the bee office a letter flies from one bee to the other.
  • In the sidebar, a team’s roles sit together under ⁂ <team name> behind a vertical line, the lead with a star after its name (gold in Graphite, yellow in Prism); the project’s other Claudes come a row apart after them.
  • State. A running team’s page shows how many roles work, wait or are done, and each role’s state in words.
  • Questions for you. Roles write what they need from you to .hivemux/questions.md. The team page shows the open ones, each with Mark as answered; typing into a role’s window marks its questions answered.

After each answer hivemux notes how many tokens of context a Claude carries. A team role past its line (120K by default, 160K for dev in the template) goes on a diet once it rests: it brings its notes up to date, /clears and carries on from the notes under the same name, so the others keep messaging it. An answer you have not read holds the diet, whether or not it asks you something: hivemux waits until you have looked at it and moved away for a minute, or until the role is half again past its line. An answer that asked you something is shown again after the fresh start. The team page shows each role’s context against its line and has a Diet now button (hivemux team diet <role>).

What a role hands over is kept small:

  • Notes are 8,000 letters at most (notes in [diet]). Records and reasons go to notes/<role>-ref.md, which the role reads when it needs them.
  • The fresh start comes with what it needs attached: the notes, the answer to show again, its open questions, what teammates are doing and the hand-offs of the last hour.
  • Unused tools are off. The descriptions of Workflow, SendFeedback, ReportFindings and ScheduleWakeup go with every request, so roles do without them. tools_off in team.toml changes the list for the team or adds for a role; a running role takes it when it starts again.

A team can have its own setting for the pages its roles make for you to see: HTML files in the project, or artifacts on claude.ai. Set it on the team page (Docs to show) or with hivemux team pages local|artifact|default. With HTML files one role publishes when you want a page shared (share = true, else the designer, else the lead), and the others go without the Artifact tool. See Docs.

The Report tab of the team page (or hivemux team report) shows a team’s day:

  • time worked, hand-offs, tasks done, tokens (with the share read from the cache) and diets
  • a timeline of who worked and waited when, with the hand-offs as arrows between roles and the diets as circles; it zooms along time
  • where the work went (who handed to whom), what waited on you
  • each role’s day: files, commits, tokens, cache share, honey
  • the five requests that read the most tokens: one prompt and all the work that followed it, with how many requests; it shows where the cost came from, such as a long run after an automatic compact or a diet
  • what got made

A small model writes the day’s story on request (.hivemux/reports/<date>.md). Copy the report as Markdown or save it as PDF.

A team gets a glass room on a team floor of the building: its roles round a long table in flow order with the lead at the head, and a whiteboard showing the team, its flow, each role’s state and its context against the diet line. A working role types at its seat, a waiting one stands by it with a hand up, and a finished one takes its jar of honey to the lead. A role with nothing to do stays in its seat for 45 seconds, since the next hand-off often comes soon, then goes off to rest. Hand-offs fly between the bees as letters, and the one who gets it shows who it is from.

A team floor in the bee office: the roles round a long table in a glass room, the lead at its head and the whiteboard

A team is the project’s .hivemux/ folder: team.toml and a prompt file per role, plus each role’s notes, the hand-off and diet logs, and the reports. A role with a worktree works in .hivemux/worktrees/<role>/. After a reboot, clocking in or a Claude update, each role resumes with its model, effort and prompt. hivemux team save <id> keeps the project’s team as your own template, a folder you can share as is.

Teams on a computer connected with hivemux connect show on the team page and the report too, as ⇄ <computer> · <project>; edit, start, stop and report on them from here while the team files stay on that computer. Both computers need hivemux 0.1.58 or later.