crew-hire
Decides how to add a capability to the agent team (role addendum, skill, or new agent) and adds it after the user's one-line OK. Use when the lead pasted the same long instructions into several briefs
SKILL.mdskills/crew-hire/SKILL.md
GitHubcrew-hire
Run by the lead. $CREW is ~/.claude/agent-crew. With team_autonomy: ask (the default; see
"Autonomy") the lead proposes, the user approves in one line, and only then is anything written.
When to hire
Hire only on evidence, never on a hunch:
- the lead pasted the same 300+ words of instructions into 3 or more briefs; or
- a class of failure keeps slipping through (the reviewer or CI finds the same kind of bug again); or
- a "Candidates later" condition in
roster.mdbecame true (for example "ui-reviewer once screens exist"). When you hire it, remove its Candidates-later entry.
State the evidence in the proposal (which briefs, which failures, which condition). Before hiring,
read the roster's Retired list: a name retired in auto mode (reason starting auto:) is not hired
again for 10 merged features after its retirement date, unless there is new evidence that the
retirement reason did not cover (record that evidence under routing.md Evidence). In ask mode the
user decides anyway.
The ladder: use the cheapest rung that works
- Role addendum: a file
.claude/team/roles/<agent>.mdwith extra rules for an agent that already exists (every agent reads its own addendum). Best for project-specific rules. - Skill: a
SKILL.mdfor a procedure that several agents or sessions repeat. Put it in.claude/skills/<name>/SKILL.md(project) or~/.claude/skills/(every project). - New agent: only if the job needs its own tools, model or isolation that no existing agent
has. First look in
$CREW/catalog/(tester, ui-reviewer, security-reviewer, docs-writer, perf-profiler); copy it unchanged instead of writing a new one.
Limits
- At most 7 active agents. Over the limit: retire one first (
crew-retire). - One-line
description, written as when to use it. - A new agent starts as
trialinroster.md(with its hire date inSince) and is judged after 3 uses (kept or retired). Roles thatcrew-bootstrapcreates are user-approved and start askept.
Autonomy
team_autonomy is auto only when ~/.claude/team/USER.md says auto. .claude/team/PROJECT.md can only
restrict: ask there turns it off for the project, auto there changes nothing. Missing, empty or any other
value: ask.
With auto, a trigger above lets the lead hire without asking, as trial, and tell the user one
line: what was hired and why. The same ladder and limits apply, plus:
- One trial at a time. If an agent is already
trialinroster.md, or a hire is pending, judge or wait for it first (below); no second hire. A pending hire is an auto hire whose agent-file PR is not merged yet: the roster row only lands with that PR, so the lead records it instate.mdunder "Pending hire" (agent, PR link, date) as soon as it opens the PR and deletes the entry when the PR is merged or closed. Check bothstate.mdand the roster before every auto hire. The 7-agent cap counts the pending hire too. - Trial guardrails. A trial agent gets only small or medium jobs: one bounded task, at most
sonnet / medium, never opus, xhigh or max (its agent file must not set a higher model or effort;
check-teamwarns). A big job for it (cross-system, opus or high effort, a long run) needs a one-line user OK; that is the only question during a trial. - Budget. The
Sincecolumn of its roster row holds the hire date. Its weighted share of ALL usage since that date must stay at or under 10%: runscripts/ledger.ps1 -Since <Since> -Format mdand divide its rows by the total of the whole window. Check at each retro and when judging. Over 10%: retire it withcrew-retire. - Judgement after 3 uses, at the retro or right away: compare the results with the trigger.
Did it catch the failure class? Did it remove the repeated paste? Is it cheaper than the
baseline (the same jobs done by the existing agents)? Then set
kept(keep itsSincedate:crew-retirecounts from it) or retire it withcrew-retire, and tell the user one line either way. Do not ask. - Age limit. A trial with fewer than 3 uses after 5 merged features or 14 days since
Sinceis judged on what exists: unused (0 uses) means retire; otherwise the same questions as above. Tell the user one line.check-teamwarns about a trial older than 14 days. - Mark the row's Evidence cell with a leading
auto:(for exampleauto: same paste in 3 briefs). Only agents marked so, and agents kept after such a trial, may be retired without asking. - Add one line under
routing.mdEvidence: what was hired, why, the cost so far. - Tell the user to restart the session before relying on the new agent.
With ask the flow is the one in "Steps" (the user approves every hire).
Steps
- Write the proposal to the user in at most 6 lines: what, which rung, the evidence, the model
and effort, the retire criterion. Wait for a one-line OK. (
auto: send the one-line notice instead of waiting and go on.) - Do it:
- addendum or skill: write the file (addenda are under
.claude/team/, which the lead may write; a project skill is acoderjob); - catalog agent: the
codercopies$CREW/catalog/<name>.mdunchanged to.claude/agents/<name>.md(give it the path); the lead does not write there; - new agent: the
coderwrites.claude/agents/<name>.mdfrom your brief (frontmatter: name, one-line description, tools, model, effort).
- addendum or skill: write the file (addenda are under
- Add the row to
roster.md(why, evidence, statustrial, uses 0,Since= today's date, retire criterion) and a row torouting.mdif the agent has its own job type. For an agent file written by thecoder, the roster row (and routing row) go in the same change as the file: put the exact rows in the brief and have the coder add them in the same commit, socheck-teamnever fails because the roster lists an agent whose file is missing. Do not write the rows intoroster.mdearlier. - Run
check-team.ps1 -Project .. Updatestate.mdIndex if useful.