# Coordination API

[Documentation index](README.md) · [Getting started](getting-started.md)

Pi Herdsman exposes small, role-specific model-facing interfaces. This page is
the router to their exact contracts, not a second copy of them.

## Code-mode tool access

Pi tools declared with `direct` exposure can be called by the model and through
Pi's supported native nested-tool execution when active. Herdsman's coordination
tools use `direct` exposure except `await_owner`, which remains `model-only`
because it must be called alone as the final tool call of its turn. Delegation
tools return after assignment acceptance, not completion; eventual results
arrive through Herdsman's normal result-delivery mechanism. See
[`await_owner`](reference/await-owner.md) for its contract.

Tool access still depends on the active role, ownership, extension loading, and
runtime authorization. This documents Pi's native contract; behavior through
third-party code-mode integrations and their approval or foreground settings
depends on that integration and is not guaranteed here. In environments where
`await_owner` and Fabric are both registered, Fabric may configure it as a
foreground tool, for example:

```json
{
  "foreground": {
    "tools": [
      {
        "name": "await_owner",
        "owner": "pi-herdsman",
        "reason": "turn-steering"
      }
    ]
  }
}
```

Users preferring model-facing tools may choose Fabric's `fullCodeMode: false`
setting where supported; verify its behavior against the installed Fabric
version.

## Owned Agent work

A Lead or delegation-enabled Agent controls only its owned Agent boundary.

Use [Agent tools](reference/agent.md) for:

```text
list_agents
delegate_agent
resume_agent
steer_agent
interrupt_agent
reply_agent
stop_agent
inspect_agent
read_agent_transcript
```

For `read_evidence` and `attach_handoff`, see
[Evidence and result references](reference/evidence.md).

Managed Agents contact their exact direct owner through
[`notify_owner`](reference/notify-owner.md) for nonblocking information or
[`await_owner`](reference/await-owner.md) when progress depends on an answer.

The lifecycle and execution-ownership rules are documented in
[Lifecycle](concepts/lifecycle.md) and [Delegation](concepts/delegation.md).

## Direct reports and project work

Chief and Manager use [Staff tools](reference/staff.md) for direct-report
observation and communication.

Manager's project operations select exact assigned work. Chief's provisioning
and shutdown operations act on verified projects and direct reports.
See [Staff tools](reference/staff.md) for authorization, acceptance and recovery.

```text
list_staff
inspect_staff
read_staff_transcript
message_staff

Manager only:
delegate_work
resume_work
stop_lead
remove_worktree
integrate_branch

Chief only:
list_projects
clone_repository
start_manager
resume_manager
start_lead
stop_hierarchy
```

## Direct supervisor

Ordinary Leads and Managers communicate upward through
[Supervisor tools](reference/supervisor.md).

```text
message_manager
message_chief
```

Assigned Leads and Leads supervised by a verified Manager use
`message_manager`; an ordinary Lead without an eligible Manager uses
`message_chief` only when Chief is its verified direct supervisor. Managers
use `message_chief`. The current turn exposes only the tool for the verified
relationship; stale calls fail instead of being redirected. Chief and Leads
without a verified supervisor have no upward messaging tool.

Use [Supervisor tools](reference/supervisor.md) for exact delivery and authority
semantics and [Coordination](concepts/coordination.md) for the dependency model.

## Same-role peers

Leads and active Managers can discover and message eligible peers of the
same role through [Peer tools](reference/peer.md):

```text
list_peers
message_peer
```

Peer communication does not change ownership or supervision authority.

## Human UI

Slash commands and TUI surfaces are separate from the model-facing contracts:

- [Commands](reference/commands.md)
- [Status widget](reference/status-widget.md)
- [Getting started](getting-started.md)

For the relationship between Chief, Manager, Lead, Agent, project work, and
Herdr worktree scope, read [Coordination](concepts/coordination.md).
