← Catalog

@vincenzoimp/pitcrew

A crew for the pi coding agent: roles instead of model names, a per-session mode, child agents you can watch and steer, a guard, a verify gate, skills, and an unattended runner.

Skill

Install

Install with PiG

pig install npm:@vincenzoimp/pitcrew

Install with Pi

pi install npm:@vincenzoimp/pitcrew
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://raw.githubusercontent.com/VincenzoImp/pitcrew/main/docs/assets/screen-agents.png",
  "skills": [
    "./skills"
  ],
  "prompts": [],
  "extensions": [
    "./extensions/roles/index.ts",
    "./extensions/rules/index.ts",
    "./extensions/mode/index.ts",
    "./extensions/guard/index.ts",
    "./extensions/verify-gate/index.ts",
    "./extensions/status/index.ts",
    "./extensions/context/index.ts",
    "./extensions/handoff/index.ts",
    "./extensions/web/index.ts",
    "./extensions/agent/index.ts"
  ]
}

README

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

pitcrew logo: a pi whose bar is a pit-lane checker

pitcrew

A crew for the pi coding agent: roles instead of model names, child agents you can watch and steer, and guard rails from issue to merged pull request.

CI npm version MIT licence tested with pi 1.5.2

A pi session with pitcrew: the agents panel lists a worker child that is running and a scout that is done; the footer shows the model, context, cost, subscription windows and the session mode

What you get

  • Roles, not model names. You talk to lead; worker, scout, reviewer and second do the rest. A profile says which model and thinking level answers for each role, per session.
  • Child agents you can see. The lead starts children in the background; /agents shows each one live, and you can steer it, answer it or stop it.
  • A mode per piece of work. stop says how far the agent goes alone (a plan, local commits, a PR, a merge); rigor says which checks run.
  • Guard rails. The guard blocks catastrophic commands and asks before risky ones; the verify gate means "done" only when the repo's own check passed on the current tree.
  • Unattended delivery. pitcrew run takes the issues of a milestone one by one: worktree, fresh worker, checks, PR, review, merge or stop, cleanup. Run it again to continue.
  • Web tools, 14 skills, and a footer with context use, cache, cost and subscription windows.

It is one pi package. It works with any provider pi supports: a subscription, an API key, or a local server.

Quick start

  1. Install pi and log in to a provider (/login in pi).
  2. Set up pitcrew in a terminal (it asks one or two questions):
    npx @vincenzoimp/pitcrew init
    
  3. In a repo of yours, run pi and ask for something small: "the test for X fails, find out why and fix it".

pitcrew init checks Node and pi, registers the package, adds the baseline settings without changing yours, proposes a profile that works with your logins, and lists the optional parts (GitHub CLI, Exa search key, Claude bridge, Docker). Model calls are billed by your provider (your plan, its credits, or API prices); the footer shows the cost and the plan windows. More: getting started.

Concepts

ConceptIn one line
Rolea model slot: lead (you talk to it), worker, scout, reviewer, second
Profilewhich model and thinking level answer for each role; examples for claude-bridge, codex, anthropic, openai, google, local; with none set, the first in this order whose models you can use
Session modestop (how far the agent goes alone) and rigor (which checks run), per session
Trackinga repo setting: where plans and work items live (none, local, github)
Agent, childan agent is a definition (worker, scout, reviewer, researcher); a child is one running instance
Skillmethod for one kind of work; the model picks some, you start the others with /skill:<name>
Guardblocks catastrophic commands, asks before risky ones, holds the delivery rules
Verify gate"done" means the repo's own check passed on the current tree
Runnerpitcrew run: delivers the issues of a target unattended, resumable
Sandboxthe container pitcrew run uses for repos that are not yours

Every word: glossary. Three diagrams: how it works.

The /mode command: stop pr, rigor standard, tracking local, the four switches, and a line that says the session is not sandboxed

Commands

In a session(blank)
/profile, /roleshow or change the role map of this session
/modeshow or change stop, rigor and the switches
/agents (alt+a)the panel of child agents
/handoff [goal]go on in a fresh session with the same mode and roles
/guard, /stats, /skill:<name>guard dialogs on or off; usage and cost; run a skill
In the shell(blank)
pitcrew initset up, or check a setup
pitcrew run <milestone | issue | label:x>deliver GitHub issues unattended; pitcrew status for the digest
pitcrew tidyremove the worktree and branches of merged work, with proof
pitcrew checklean-code checks on a branch
pitcrew boxthe sandbox container

All of them, with flags and keys: commands.

pitcrew run on a milestone of two issues: for each issue a worker and a reviewer with their turns, tokens and seconds, then the PR it merged; the digest says 2/2 done, 92K tokens in total, and pitcrew status prints the same digest

What it costs

Measured once each with pi 1.5.2, so read them as orders of size. Details and models: live tests.

ThingCost
Standing context: global rules and model-picked skill descriptionsabout 1,300 tokens in every request
First request of a sessionabout 4,700 tokens natively; about 7,700 through the Claude bridge
First request of a scout childabout 2,400 tokens natively; about 4,600 through the bridge
web_searchExa: about $0.012 per search (free monthly credit), no model tokens; Codex: 8,700 to 13,200 tokens of the plan
pitcrew run, one small issue, stop prabout 75,000 tokens, 47 s (local model)
code-review of a small risky changeabout 180,000 tokens sent by the lead, plus 77,000 by its children
Sandbox start1.9 s

Limits

  • Sessions are not sandboxed. Commands run as you, on this machine. The guard catches mistakes with pattern rules; it is not a security boundary. Only pitcrew run uses the container.
  • No fallback model. If a role's model is missing or refuses for quota, the request fails with the reason; after the reset you resume (pi --continue, /agents resume, the same pitcrew run).
  • Small local models overflow on large reads and research fan-out, and often do not load a skill by themselves: name it.
  • Claude through pi-claude-bridge (optional) adds Claude Code's own prompt and drops some prompt channels; pitcrew uses only the channels that pass (claude-access).
  • pitcrew run works one issue at a time, on GitHub only.

When something goes wrong: troubleshooting.

Docs

Getting started · Install · How it works · Commands · All docs

Contributing

Issues and pull requests are welcome: read CONTRIBUTING first. Security problems: SECURITY. Changes: CHANGELOG.

Licence

MIT. Text and code from other projects keep their licences: THIRD_PARTY_NOTICES. Versions tested against: UPSTREAM.