Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By CrazyWillBearv2.2.0MITIn 1 marketplace
Scripts-only shared layer: one-shot worker spawning (codex, or claude -p in a per-role config box), worker state, escalation and tier resolution. A SessionStart hook links ~/.claude/kit/infra to this plugin and builds the worker boxes, so other plugins call its scripts by one fixed path.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Scripts-only shared layer. Other plugins call these scripts; infra calls into nothing.
See docs/swarm-design.md § Plugin split.
plugins/infra/
├── .claude-plugin/plugin.json # manifest
├── hooks/hooks.json # SessionStart → scripts/link-kit.sh
├── model-tiers.json # tier → {planner, implementer CHAIN, reviewer} roster, read by resolve-tier.sh
├── scripts/
│ ├── link-kit.sh # SessionStart: point ~/.claude/kit/infra at this plugin's root
│ ├── spawn.sh # start (or print) a one-shot worker (one issue, at a chain --attempt: `codex exec`, or `claude -p` in the implementer box) or a `claude --bg` peer (one role)
│ ├── worker-cmd.sh # the one builder of a boxed claude worker's argv (spawn and resume)
│ ├── claude-report.sh # a claude worker's stream -> last-message.txt
│ ├── env-pairs.sh # shared NAME=VALUE validation for spawn and resume
│ ├── session-status.sh # worker state from the run dir (+ `claude agents --json` for peers); --self resolves this session's name, --peers resolves roster roles to ids
│ ├── resolve-tier.sh # resolve a tier + attempt → its {model, effort, backend} roster and chain length (awk, no jq; claude-only fallback)
│ ├── consult.sh # plan | consult | decide: one-shot claude -p on the planner cell, posts **Plan** / **Consult N** to the issue
│ ├── escalate.sh # should this worker be replaced, and why — from the run dir and the thread; posts **Handoff**
│ ├── review-cmd.sh # the independent reviewer's argv: claude -p on the reviewer cell, spawning my-review
│ └── worker-report.sh, worker-resume.sh, review-counts.sh, common-git-dir.sh # a worker's report, resume and review plumbing
├── tests/ # one bash test per script
└── README.md # this file
spawn.sh — two forms, one commandA worker is a one-shot process that owns one issue — codex exec, or claude -p in the
implementer box — and exits when its turn is done; a peer is a standing claude --bg role
session that idles between briefs and is rotated by handoff
(docs/swarm-design.md § Topology). Both carry the same denylist
(worker-cmd.sh --deny), bypassPermissions, --system-prompt-snapshot off and closed stdin.
# worker: tier-routed model, fenced to its worktree, started from it
bash ~/.claude/kit/infra/scripts/spawn.sh <runid> <issue> <tier> <worktree> <base> [--role build|fix] [--env NAME=VALUE]... [--browser]
# peer: named by its role, carrying the charter and its brief
bash ~/.claude/kit/infra/scripts/spawn.sh peer --name swe-manager \
--brief b.md --charter c.md --model opus --effort high [--handoff h.md] [--autocompact 400k]
--env pairs are checked by env-pairs.sh before launch; shell controls, Git routing/config
and infra-owned names are reserved for both spawn and resume. On Codex, a KEY/SECRET/TOKEN
name turns off the default secret filter and re-excludes every other such host name; that
combination with a user, project, system or managed (/etc/codex/managed_config.toml)
shell_environment_policy.exclude or filters setting may conflict with or outrank the
-c override, so it is refused. Codex also over-excludes KEY/SECRET/TOKEN-like names at
every .env NAME= line start, including lines inside quoted values. For both backends the
values are exported into the worker's own process only — never argv, never the run dir — and
unset before the host-side reviewer runs.
Workers are named orch-<runid>-issue-<N>-a<attempt>; fix rounds append -r<round>.
spawn.sh prints the complete name it used to stderr and the run dir on stdout, and
session-status.sh <runid> <N> treats any such attempt name as that issue's worker.
A claude worker gets no MCP servers. Every process starts its own copy of each configured
server, so worker-cmd.sh launches a worker with
--mcp-config '{"mcpServers":{}}' --strict-mcp-config — ignoring user, plugin and claude.ai servers alike — inside a box that loads
none of the user's plugins, skills, memory or global CLAUDE.md either (The stable
address). --browser swaps in only the Playwright server
(npx @playwright/mcp@latest) for an issue that needs a real browser; spawn.sh records it in the
run dir, so a resume keeps it. A peer keeps the machine's servers.
| tier | planner | implementer (chain, cheapest first) | reviewer |
|---|---|---|---|
| trivial | none run (sonnet high cell kept valid) | 6-luna xhigh → haiku xhigh (no plan; starts on codex like standard) | sonnet high |
| standard | opus medium | 6-luna xhigh → haiku xhigh | opus medium |
| complex | opus high | sonnet high | opus high |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub crazywillbear/my-dotclaude --plugin infraPlugins from other owners that cover similar ground