setup

setup is a command for Claude Code from anshss/shiploop. It costs 24 tokens per session (8,332 once invoked), scanned A, original, Apache-2.0.

A command for creating or upgrading a Shiploop workspace: a package-manager root that coordinates several independent Git repositories and shared development tools.

In plain words
What is it for?
Scaffolding a new multi-repository workspace or updating an existing one while preserving its configured package manager and development settings.
Why use it?
It removes the repeated manual setup needed for repositories, worktrees, task queues, automated ticket handling, and session hooks.

Command for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the shiploop plugin — 2 skills, 7 commands, 3 agents shipped together

Good fit Scaffolding a new multi-repository workspace or updating an existing one while preserving its configured package manager and development settings.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anshss/shiploop
Claude Code
/plugin install shiploop

Made for: Claude Code.

Or install shiploop, the plugin that ships this one along with the rest of its 2 skills, 7 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/anshss/shiploop/setup/github.svg)](https://agentmods.dev/commands/anshss/shiploop/setup)
Your own site
<a href="https://agentmods.dev/commands/anshss/shiploop/setup"><img src="https://agentmods.dev/badge/commands/anshss/shiploop/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/anshss/shiploop/setup"><img src="https://agentmods.dev/badge/commands/anshss/shiploop/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.08332
Opus 5.5 $0.00010 $0.03333
Sonnet 5.5 $0.00005 $0.01666
Haiku 4.5 $0.00002 $0.00833

Measured 1mo ago against content hash faf6f3ac79f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/setup.md · 591 lines

How it starts

The opening of the file, as written. The whole thing — 591 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the meta-repo setup command. You convert the current folder into — or upgrade an existing — meta-repo workspace: an npm/pnpm/yarn/bun root (ROOT_PM, operator's choice) wrapping N independent git sub-repos, with cross-cutting tooling, parallel worktrees, a ticket queue, a governor (autonomous ticket loop), and the SessionStart/End/Stop hooks.

The full pattern is documented in the plugin's SKILL.md (read if you need context). All mechanical file writes are executed by scaffold.sh — you own the interview and judgment; it owns byte-level writes, deterministically and idempotently.

Locate the plugin

Templates and scaffold.sh live together. Resolve PLUGIN_ROOT in priority order:

  1. ${CLAUDE_PLUGIN_ROOT} (plugin run)
  2. ~/.claude/skills/shiploop/ (legacy clone-into-skills)
  3. ~/.claude/plugins/** cache lookup by plugin name

SCAFFOLD=$PLUGIN_ROOT/scaffold.sh.

Architecture (read once)

Every mechanism script sources ONE config file, scripts/lib/workspace.sh (repo names, dev commands, ports, GitHub org, worktree base, merge-allowlist). Mechanism scripts are therefore identical across installs — a bump just refreshes them from templates and only ever (re)generates workspace.sh. Never hand-edit a mechanism script; put the value in workspace.sh.

Interview doctrine — ONE pause

  1. Detect first, ask second. Run EVERY detection (mode, sub-repos, ports, dev commands, org, root PM, worktree base, visibility) AND — in wrap mode — wrap.sh --preflight BEFORE the first question. Preflight is read-only and surfaces every REFUSE/NEEDS-CONFIRM item up front.
  2. One batched interview. Ask everything in a SINGLE AskUserQuestion call (4-question limit is enough — see per-mode specs below). Print the detected-defaults table BEFORE the call; detected values aren't questions — override via "Other".
  3. Then run to completion without pausing. Legitimate post-interview stops are ONLY: wrap.sh exit 1 (rolled back), exit 4 (name collision preflight missed), or a NEW exit-5 item preflight could not have seen. Never re-ask something the interview covered.

Read the full file on GitHub · 591 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +89 lines faf6f3ac79f3
  2. 1mo ago Changed · -5 lines 0070472d8703
  3. 1mo ago Changed · +3 lines 6fad2d9266e8
  4. 1mo ago Changed a5db6395c6a2
  5. 1mo ago First seen · 504 lines · 24 tokens per session scan A fa6b5a0b6647

Subscribe to this mod's changes

setup is a command published in the GitHub repository anshss/shiploop (9 stars, last pushed 12d ago), licensed Apache-2.0. It adds 24 tokens to every session and 8,332 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.