# Project orchestration

[Documentation index](../README.md) · [Coordination](../concepts/coordination.md)

Use Manager when independent project work benefits from separate Leads and Git
worktrees. For several Agents working within one checkout, start with
[Working with Agents](working-with-agents.md).

**On this page:** [Start](#enter-manager-mode) · [Assign work](#start-and-resume-project-work) · [Parallel work](#run-independent-work-in-parallel) · [Review](#coordinate-and-review) · [Integrate](#integrate-completed-branches) · [Resume](#pause-and-resume) · [Retire](#retire-project-work)

## Enter Manager mode

Start Pi in the project's primary Herdr workspace and run:

```text
/manager
```

Only one live Manager can hold authority for the project. Resolve outstanding
owned Agent work before activation. You do not need an existing linked
worktree; Herdsman can create one with the first assignment.

For a non-Git workspace, explicit activation can initialize Git after the
configured confirmation. Existing files are not committed. Automatic startup
does not initialize Git. See [Commands](../reference/commands.md#project-manager-and-chief).

Prefer Manager by default? Enable **Start Manager automatically** in
`/herdsman` Settings. The [automatic startup contract](../reference/commands.md#automatic-manager-startup)
explains when this applies and how established Manager intent is restored.

## Start and resume project work

Ask Manager for a bounded objective:

```text
Implement the API change on branch feat/api-change.
Keep the existing public contract and validate the changes.
```

Manager creates or reuses the appropriate unoccupied worktree and assigns a
Lead. If you omit the branch, Herdsman can generate one.

```text
Manager
└─ feat/api-change (assignment)
   └─ Lead → Agents
```

The original assignment branch remains the handle even if the Lead checks
out another branch in its worktree. The Lead owns technical decisions and its
Agent tree; Manager owns project scope, priorities and assignment acceptance.

You can ask the Manager to start new work or resume an existing assignment.
Underneath, it uses `delegate_work` or `resume_work` respectively.
The [Staff reference](../reference/staff.md#delegate_work) owns the exact
launch, trust, and profile-selection contract. Use
[Coordinator customization](customizing-coordinators.md#managed-project-lead)
to change the default assigned Lead policy or choose a named definition.

### Assigned and ordinary Leads

A Manager can communicate with eligible ordinary Leads in its project worktree
group as well as assigned Leads. Ordinary Leads do not become assignments just
because they occupy a worktree. Use their discovered staff target for
communication, not the branch-based project lifecycle operations.
See [Direct-report projection](../reference/staff.md#direct-report-projection).

### Give a Lead the required evidence

Initial assignment files become continuing required evidence. Later, ask
Manager to retain relevant new requirements with `retain: true` only when
they should continue to apply to future descendants. Otherwise transfer them as
ordinary handoffs. Sibling assignments do not automatically share evidence.

To remove an assignment-owned requirement, open the assignment action menu,
choose **Retained evidence**, select the entry by ID, name and origin, then
**Remove requirement…** and confirm **Remove requirement**. Inherited baseline
entries are protected; removing a requirement does not erase source files or
evidence already accepted by Agents. See [Handoffs and files](handoffs.md#required-assignment-evidence).

## Run independent work in parallel

```text
Implement the API on feat/api-change.
Update the documentation on feat/docs.
Run both independently where possible.
```

```text
Manager
├─ feat/api-change → Lead → Agents
└─ feat/docs       → Lead → Agents
```

Keep overlapping writers out of the same worktree. If work depends on another
branch, specify the base or ask the Leads to coordinate interface expectations.
Only dependent steps need to wait; sequential integration does not necessarily
require sequential implementation.

For stacked work, the Manager can use an explicit base with
[`delegate_work`](../reference/staff.md#delegate_work). The
[status widget](../reference/status-widget.md#manager-git-indicators)
explains advisory Git statistics and comparison targets.

## Coordinate and review

Assigned Leads automatically report completed responses to their Manager.
When a Lead delegates Agent work, its herd run reports after settling.
Review the outcome and validation, request justified corrections, and retain
the assignment until its worktree is retired.

```text
Review the API Lead's outcome. If the required validation is complete,
accept its exact revision; otherwise ask the Lead for the missing evidence.
```

The Manager can send timely questions or corrections while other work
continues. Herdsman delivers reports automatically, so you do not need to
request repeated progress checks. External operations such as CI may still
need monitoring by the Lead responsible for them.

A report is not proof of acceptance or passed tests. Project reports carry
summary text, not attachments; explicitly transfer relevant files and result
references through the [evidence handoff](handoffs.md).

See [Assignment reports](../reference/staff.md#assignment-reports) for exact
completion, failure and delivery semantics.

## Integrate completed branches

When local integration is authorized, ask Manager to integrate the accepted
exact commit from its verified assigned checkout. This is local Git
integration, not a hosted pull-request merge or push.

> [!IMPORTANT]
> Both source and target must be clean. The Manager needs a matching completed
> Lead handoff and validation evidence for the accepted revision. A visible
> commit SHA or idle Lead is not enough.

Configure **Merge accepted branches** in **Settings > Manager & repositories**.
Fast-forward-only and explicitly authorized clean divergent merges have
different behavior. See [Manager local merge](../reference/configuration.md#manager-local-merge)
and [integrate_branch](../reference/staff.md#integrate_branch).

Successful integration can remove the exact source worktree and retire its
assignment while preserving the branch and conversation. A `cleanup_pending`
outcome means integration and cleanup are not the same fact; follow the
[guarded retry contract](../reference/staff.md#integrate_branch) with the same
accepted SHA rather than assuming cleanup succeeded.

## Pause and resume

Ask Manager to stop assigned work on the original branch handle when you
need to pause its execution. This preserves the assignment, checkout, current
Git state and Pi conversation.

```text
Resume feat/api-change and complete the remaining validation.
```

Resuming reopens the exact saved Lead session with the selected definition and
a fresh instruction. It does not restart an already running Lead or recover
its Agents automatically. Use ordinary messaging for a running Lead.

See [stop_lead](../reference/staff.md#stop_lead),
[resume_work](../reference/staff.md#resume_work) and
[Recovery](recovery.md).

## Retire project work

Review or completion alone does not close an assignment. Verified worktree
removal or authoritative checkout absence retires it. Uncertain inventory
does not prove absence.

If you explicitly want to remove an assigned checkout, use
`/manager-remove <branch>` or review pending requests with
`/manager-remove`. Check the exact checkout and confirm as requested.
Removal is guarded, refuses dirty or ambiguous targets, and may stop assigned
execution. It preserves the Git branch and Pi conversation. See the
[removal contract](../reference/staff.md#remove_worktree) and
[human controls](../reference/commands.md#worktree-removal).

For a paused assignment without usable checkout provenance, the Manager
overview offers **Forget orphaned assignment…** (or
`/manager-forget <branch>`). This relinquishes authority only, after exact
confirmation and verification; it does not delete a checkout or stop
execution. See [Commands](../reference/commands.md#project-manager-and-chief).

### Dedicated sessions and independent continuation

A Managed Lead retains its exact session identity after retirement. To work
independently, use native Pi `/fork`, `/clone` or `/new` to create a new
ordinary session. Copied history transfers neither assignment authority nor
Agent ownership. It also does not create a checkout or reset process-level
configuration; avoid overlapping writers.

See [Assignment retirement](../reference/staff.md#assignment-retirement) for
the exact lifecycle and continuation boundaries.

## Leave and return

Run `/manager-leave` to leave Manager mode while preserving project
assignments. This intentionally clears the session's Manager recovery
reference. To keep the Manager conversation recoverable, quit Pi without
leaving Manager mode.

## Reference

- [Staff tools](../reference/staff.md)
- [Supervisor tools](../reference/supervisor.md)
- [Peer tools](../reference/peer.md)
- [Chief supervision](chief-supervision.md) for cross-project work
