studio

A command for setting up and managing separate Git workspaces for several AI developers working at the same time. Each workspace is an isolated copy of the repository, called a worktree.

In plain words
What is it for?
Use it to create multiple worktrees, check their status, configure GitHub protections, and stop the shared development setup.
Why use it?
It reduces conflicts between concurrent changes and keeps each developer's work separate while they build and review features.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/marcusgoll/spec-flow/studio
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,602 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00022 $0.02602
Opus 5 $0.00011 $0.01301
Sonnet 5 $0.00004 $0.00520
Haiku 4.5 $0.00002 $0.00260

Measured 2d ago against content hash d95ec1ecc696, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

studio scanned grade C with 1 finding 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 2d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf worktrees/studio/
.claude/commands/internal/studio.md · 360 lines

How it starts

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

GitHub auth: !gh auth status >/dev/null 2>&1 && echo "Authenticated" || echo "Not authenticated"

Repository: !gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "Unknown"

Existing worktrees: !git worktree list --porcelain 2>/dev/null | grep -c "^worktree" || echo "0"

Studio state: !test -f .spec-flow/studio/state.yaml && echo "Active" || echo "Not initialized"

Roadmap status (next): !gh issue list --label "status:next,type:feature" --json number --jq 'length' 2>/dev/null || echo "0"

Roadmap status (backlog): !gh issue list --label "status:backlog,type:feature" --json number --jq 'length' 2>/dev/null || echo "0"

Commands:

  • init N - Create N persistent worktrees (1-10) for parallel development
  • setup - Configure GitHub branch protection for auto-merge CI flow
  • status - Show all agent worktrees and their current work
  • stop - Guidance for graceful shutdown

Target workflow:

/studio setup         → Configure GitHub for auto-merge
/studio init 3        → Create 3 agent worktrees
(open terminals, cd into each, run claude)
Each agent: /feature next → work → /ship-staging → /finalize → repeat

Prerequisites:

  • Git repository with remote
  • GitHub CLI authenticated
  • Worktree manager script available

Step 0: Parse Command

Extract subcommand from $ARGUMENTS:

  • init N → Create N worktrees
  • setup → Configure GitHub branch protection
  • status → Show studio status
  • stop → Shutdown guidance

If no arguments or help requested, display usage and exit.


Command: init N

1.1 Validate Prerequisites

# Check git repo
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
  echo "Error: Not inside a git repository"
  exit 1
fi

# Check GitHub auth
if ! gh auth status >/dev/null 2>&1; then
  echo "Error: GitHub CLI not authenticated. Run: gh auth login"
  exit 1
fi

Read the full file on GitHub · 360 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. 2d ago First seen · 360 lines · 22 tokens per session scan C d95ec1ecc696

Subscribe to this mod's changes

studio is a command published in the GitHub repository marcusgoll/Spec-Flow (91 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 2,602 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.