← Catalog

@deathbeam/pi-delegate

Background subagents for Pi with steering, isolation and a /delegate inspector

Extension

Install

Install with PiG

pig install npm:@deathbeam/pi-delegate

Install with Pi

pi install npm:@deathbeam/pi-delegate
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://cdn.jsdelivr.net/npm/@deathbeam/pi-delegate/media/screenshot.png",
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.0.59 (README.md). PiG does not review it.

@deathbeam/pi-delegate

Run subagents in the background with delegate, and manage them with delegate_list, delegate_steer, delegate_cancel, delegate_apply, and delegate_discard. /delegate opens a fullscreen inspector for live and recent jobs.

/delegate inspector

Installation

# Choose one:
pi install npm:@deathbeam/pi-delegate            # this package
pi install git:github.com/deathbeam/pi-packages  # all my packages

Configuration

Optional delegate settings live in ~/.pi/agent/settings.json or .pi/settings.json:

{
    "delegate": {
        "agentDirs": ["../shared/agents"],
        "models": {
            "cheap": "anthropic/claude-haiku-5-5:low",
            "balanced": "anthropic/claude-sonnet-5-5:high",
            "strong": "anthropic/claude-opus-5-5:high"
        }
    }
}
  • agentDirs adds agent directories on top of the defaults: bundled, ~/.agents/agents, ~/.pi/agent/agents, .agents/agents from the working directory up to the git root, then .pi/agents. Later wins on a name clash. Project dirs and .pi/settings.json load only in a trusted project.
  • models maps alias names to a provider/model-id with an optional :<thinking> suffix. The bundled agents use cheap, balanced, and strong, so configure those. A model value with a / is a literal provider/model id, never an alias; an unset alias falls back to the session model, with a warning.

Agents are Markdown files with frontmatter. The body is appended to the delegate's system prompt.

---
name: scout
description: Explore the codebase
tools: read, grep
model: cheap
isolated: false
---

Explore the codebase and report relevant paths.
  • name is required and must be unique.
  • description is required.
  • tools is optional, a comma-separated list of tool names. Defaults to the session tools.
  • model is optional, an alias name or a provider/model[:thinking] id. Defaults to the session model.
  • isolated is optional and defaults to false. The isolated parameter on a delegate call does the same: the delegate runs in its own git clone at .pi/worktrees/<job id>, starting from the working tree including uncommitted changes. delegate_apply merges the clone back as uncommitted changes, delegate_discard drops it, and clone: <job id> lets a later delegate share it for review, tests, or follow-up work.

Development

From the repo root:

npm install
npm test -- packages/pi-delegate
pi install ./packages/pi-delegate