Once you have read Concepts and Ways of working, use this guide to install the plugins and run your first multi-repository task.
You will go from a clean setup to a working hub with two child sessions running in parallel and routing decisions visible on screen. Each step states what to run and what output confirms it worked, so you can verify your setup before moving on.
Requirements
Section titled “Requirements”Before installing the plugins, make sure your environment meets these requirements:
| Requirement | Details |
|---|---|
| Claude Code (for mods) | Version 2.1.329 or later. Both plugins declare engines and have been tested on 2.1.329 and 2.1.330. |
| Claude Code (for cross-session messaging) | Version 2.1.224 or later (required by session-hub). |
| Mods enabled | Required for both the session-hub mod (send guard, shell check, origin tagging, scope line, child sessions panel, /session-hub) and the model-router mod (routing, measurements, 🔀 line under Agent calls, /model-router). |
node |
Available on your PATH. The scope guard, the record script, the panel, and all model-router scripts run on Node with no external dependencies. |
| Operating system | macOS or Linux. |
Note
Running without mods: Skills and the scope guard still work, but you lose message and shell-command guards, the child sessions panel, automatic routing when subagents launch, measurements, and the /session-hub and /model-router commands.
1. Install the plugins from the marketplace
Section titled “1. Install the plugins from the marketplace”Both plugins live in the mrbogomips marketplace. Install them directly from a Claude Code session:
/plugin marketplace add MrBogomips/claude-plugins/plugin install session-hub@mrbogomips/plugin install model-router@mrbogomipsOr run the equivalent commands from your terminal:
claude plugin marketplace add MrBogomips/claude-pluginsclaude plugin install session-hub@mrbogomipsclaude plugin install model-router@mrbogomipsEach plugin works on its own, and they integrate when installed together: session-hub:spawn calls model-router:choose-model to choose the model and effort level for each child session. Without model-router, child sessions inherit the master’s model and effort, and spawn notes that in its report.
2. Verify that mods are active
Section titled “2. Verify that mods are active”Before setting up a hub, confirm that the mods loaded. Open Claude Code and type /session-hub or /model-router.
In a session that does not yet have a hub role, a working /session-hub mod replies:
session-hub: This session has no session-hub role. It becomes a master when it uses session-hub:spawn or session-hub:dispatch.If Claude Code does not recognize the command, the mod is not active. Verify that mods are enabled and that you are running Claude Code 2.1.329 or later (run claude --version in your terminal).
3. Set up your hub
Section titled “3. Set up your hub”A hub needs no special layout: it is any directory that holds multiple git repositories as subdirectories or submodules.
Open Claude Code in the hub’s root directory and ask in plain language:
set up session-hub for this hubThis triggers the session-hub:setup skill, which inspects the directory for subdirectories with .git, any .gitmodules, each repository’s base branch, and worktree rules. From what it finds, it drafts a ## Child sessions section for the hub’s AGENTS.md (or CLAUDE.md), shows you a preview, and writes the file only after you confirm, without creating any commits.
Every key in that section is optional. Even without the section, spawn works with default values and suggests running setup in its report.
Tip
Where to create test hubs: Keep test hubs inside your home directory. During testing, a hub created under the system temporary directory failed to load any project instruction files.
4. Spawn your first child sessions
Section titled “4. Spawn your first child sessions”Start the master inside Herdr or tmux so spawn can open each child session in a dedicated pane next to yours, with the scope guard already active.
Ask the master for a task that spans two repositories:
T-42: add GET /export to product (CSV, at most 10 000 rows) and document the limit in design/docs/api/export.md.When you send the prompt:
- The master loads the
dispatchskill, evaluates the request, and states its plan in a short table (one write child session forproductand one fordesign). - It calls
spawnonce for both sessions, so each child’s handoff immediately lists the other as a sibling session. - Once spawning finishes, it prints a report for each session: name, repository, write root, chosen model and effort, environment, instructions to open it, and any warnings.


Note
First run in a nested repository: Trust granted to the hub directory does not carry over to the repositories inside it. On the first run, a child session may pause at the trust prompt in its pane, while claude --bg fails with Workspace not trusted. Accept the prompt (or open that repository once with claude), then ask the master to retry.
5. Monitor child sessions with /session-hub
Section titled “5. Monitor child sessions with /session-hub”While child sessions are running, type /session-hub at any time to check their state. Output depends on where you run the command:
- In the master, it shows the path to the child sessions record and a summary table with the recorded status, the live status from the session list, the assigned model and effort, and the last message received. It also opens the child sessions panel next to the chat; the panel refreshes every 30 seconds.
- In a child session, it shows the session’s role, write root, and received handoff, and confirms whether guards are active.

/session-hub in the master. A child session that has finished and dropped off the session list shows not listed.6. Watch your first routing decision
Section titled “6. Watch your first routing decision”With model-router installed, the choose-model skill steps in whenever the agent is about to launch a subagent.
To trigger it right away, ask for a task that calls for a subagent, such as searching a fairly large repository. Before launching the subagent, the agent prints a single line:
🔀 haiku ▰▱▱▱ low -> find callers of parseConfig, easy to checkEach part of that line records one piece of the decision:
- The chosen model (
haiku) - A four-pip effort bar (from one pip for
lowup to four forxhigh) - The effort level in plain text
- The reason for the choice in under twelve words
When the mod is active, the same line also appears in color directly under the Agent call, showing the model and effort actually applied after any router or judge intervention:
⏺ Agent([mr:read-search] Find the CSV writer) ⎿ 🔀 haiku ▰▱▱▱ low -> judge: read-search; lowered from sonnet
If the agent launches multiple Agent calls in the same message, Claude Code collapses them into a single "background agents launched" line. Press ctrl+o to expand them and read each call’s 🔀 line.
7. Check measurements with /model-router
Section titled “7. Check measurements with /model-router”To inspect how your routing decisions are performing, type /model-router. This opens the interactive usage view, starting on the user-level Overview tab for the last 7 days.
Use these keys inside the usage view:
| Key | Action |
|---|---|
Tab / Shift+Tab |
Switch between the Overview, Models, Classes, and Decisions tabs |
d, w, m, a |
Change the time range (day, week, month, all) |
p |
Toggle between your global data and the current project only |
o |
Generate and open the full report page |
Esc |
Close the view |
Note
If the numbers are still zero: That is expected in the first few minutes. A task is counted only once its rework window closes, either 30 minutes after the subagent reports back or when the session ends. See a real session for what the data looks like after a day, a week, and a month.
8. Customize project exceptions with model-router:setup
Section titled “8. Customize project exceptions with model-router:setup”The default grid covers most cases, but projects often have sensitive areas or repetitive parts where a lightweight model is enough. To record those exceptions, ask inside a session in that project:
set up model routing for this projectThe model-router:setup skill asks which defaults and exceptions you want to set and scans the repository to suggest common candidates (migrations, infrastructure, billing, generated code, bulk refactors). Like session-hub:setup, it previews the exact ## Model routing section first and writes it to the project’s AGENTS.md only after you confirm. For full details, see the model-router page.
Keep the manual handy
Section titled “Keep the manual handy”For a single offline reference, the full manual collects every command, keybinding, and option for both plugins, along with an end-to-end walkthrough and a troubleshooting guide.