---
title: "Quickstart"
canonical: "https://mrbogomips.github.io/agent-orchestration/quickstart/"
author: "MrBogomips"
published: "2026-11-28T20:45:48.000Z"
modified: "2026-11-28T20:45:48.000Z"
lang: "en"
license: "CC-BY-4.0"
code-license: "MIT"
---

Once you have read [Concepts](https://mrbogomips.github.io/agent-orchestration/concept/) and [Ways of working](https://mrbogomips.github.io/agent-orchestration/scenarios/), 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

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["claude-code"]: ">=2.1.329"` 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

Both plugins live in the `mrbogomips` marketplace. Install them directly from a Claude Code session:

```text
/plugin marketplace add MrBogomips/claude-plugins
/plugin install session-hub@mrbogomips
/plugin install model-router@mrbogomips
```

Or run the equivalent commands from your terminal:

```sh
claude plugin marketplace add MrBogomips/claude-plugins
claude plugin install session-hub@mrbogomips
claude plugin install model-router@mrbogomips
```

Each 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

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:

```text
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

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:

```text
set up session-hub for this hub
```

This 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

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:

```text
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:

1. The master loads the `dispatch` skill, evaluates the request, and states its plan in a short table (one write child session for `product` and one for `design`).
2. It calls `spawn` once for both sessions, so each child's handoff immediately lists the other as a **sibling session**.
3. 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.

![Herdr with the master on the left and two newly spawned child sessions on the right](https://mrbogomips.github.io/agent-orchestration/_astro/hub-herdr.Bng_GqFC_1gpmoS.png)

In Herdr: the master on the left, the two child sessions on the right.

![tmux with the master in the left pane and two child sessions in the right panes](https://mrbogomips.github.io/agent-orchestration/_astro/hub-tmux.jkv5T7lk_ojkvE.png)

In tmux: the first child session opens to the right of the master, and the second opens below it.

:::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`

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: the child sessions table with status, live status, model and effort, and last message](https://mrbogomips.github.io/agent-orchestration/_astro/sh-master.CQkzFOgb_JVfMM.png)

`/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

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:

```text
🔀 haiku ▰▱▱▱ low -> find callers of parseConfig, easy to check
```

Each part of that line records one piece of the decision:

- The chosen **model** (`haiku`)
- A four-pip **effort bar** (from one pip for `low` up to four for `xhigh`)
- 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:

```text
⏺ Agent([mr:read-search] Find the CSV writer)
  ⎿  🔀 haiku  ▰▱▱▱ low    -> judge: read-search; lowered from sonnet
```

![Three Agent calls with the colored 🔀 line under each: model, effort bar, effort, and routing reason](https://mrbogomips.github.io/agent-orchestration/_astro/mr-agent-lines.B1alRukj_1ds7Cs.png)

Three subagents launched from a sonnet session: the judge lowered the first to haiku, the second explicitly requested opus and was left unchanged, and the third stayed on sonnet with its effort set. Demo data

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`

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](https://mrbogomips.github.io/agent-orchestration/model-router/#real-session) for what the data looks like after a day, a week, and a month.
:::

## 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:

```text
set up model routing for this project
```

The `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](https://mrbogomips.github.io/agent-orchestration/model-router/#configure).

## 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.

Download the manual (PDF)
