Install
Install with PiG
pig install npm:@deathbeam/pi-delegateInstall with Pi
pi install npm:@deathbeam/pi-delegatePackages 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.

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"
}
}
}
agentDirsadds agent directories on top of the defaults: bundled,~/.agents/agents,~/.pi/agent/agents,.agents/agentsfrom the working directory up to the git root, then.pi/agents. Later wins on a name clash. Project dirs and.pi/settings.jsonload only in a trusted project.modelsmaps alias names to aprovider/model-idwith an optional:<thinking>suffix. The bundled agents usecheap,balanced, andstrong, so configure those. Amodelvalue with a/is a literalprovider/modelid, 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.
nameis required and must be unique.descriptionis required.toolsis optional, a comma-separated list of tool names. Defaults to the session tools.modelis optional, an alias name or aprovider/model[:thinking]id. Defaults to the session model.isolatedis optional and defaults tofalse. Theisolatedparameter on adelegatecall 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_applymerges the clone back as uncommitted changes,delegate_discarddrops it, andclone: <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