Skip to content

CLI Reference

The shipwright CLI is the main entry point for Shipwright. It routes to specialized scripts for each subcommand.

Setup & Diagnostics

shipwright init

One-command tmux setup with no prompts. Installs the tmux configuration, overlay, status widgets, and role-color hooks.

Terminal window
shipwright init # Standard install
shipwright init --repair # Force clean reinstall (after OS upgrades)

Flags:

FlagDescription
--repairForce reinstall of all tmux config and plugins

shipwright doctor

Validate your setup and diagnose common issues.

Terminal window
shipwright doctor

Checks: tmux version, jq availability, overlay hooks, color configuration, orphaned sessions.

shipwright upgrade

Check for and apply updates.

Terminal window
shipwright upgrade # Check for updates
shipwright upgrade --apply # Pull latest and apply

Team Sessions

shipwright session

Create a team session with optional template.

Terminal window
shipwright session <name> # Bare session
shipwright session <name> --template <template> # With template
shipwright session <name> -t feature-dev # Short flag

Flags:

FlagDescription
--template, -tTeam template name (see shipwright templates list)

shipwright status

Show the team dashboard with all active sessions.

Terminal window
shipwright status

Also available via tmux keybinding: Ctrl-a then Ctrl-t.

shipwright ps

Show running agent processes across all sessions.

Terminal window
shipwright ps

shipwright logs

Tail agent logs for a session.

Terminal window
shipwright logs <session> # Show recent logs
shipwright logs <session> --follow # Tail continuously

Continuous Loop

shipwright loop

Run Claude Code autonomously until a goal is achieved.

Terminal window
shipwright loop "<goal>" [flags]

Flags:

FlagDescriptionDefault
--test-cmd <cmd>Test command for verificationauto-detected
--auditSelf-reflection after each iterationoff
--audit-agentDedicated auditor agentoff
--quality-gatesRun tests as gates between iterationsoff
--definition-of-done <file>Completion checklistnone
--agents <n>Number of agents1
--max-iterations <n>Maximum iterations10
--model <model>Claude modeldefault
--resumeResume interrupted loop

Examples:

Terminal window
shipwright loop "Build user auth with JWT" --test-cmd "npm test"
shipwright loop "Refactor API" --agents 3 --audit --quality-gates
shipwright loop "Build checkout" --definition-of-done requirements.md
shipwright loop --resume

See Continuous Loop guide for details.

Delivery Pipeline

shipwright pipeline start

Start a new delivery pipeline.

Terminal window
shipwright pipeline start [flags]

Flags:

FlagDescription
--goal <text>Goal description
--issue <number>GitHub issue number
--pipeline <template>Pipeline template (standard, fast, full, hotfix, autonomous)
--test-cmd <cmd>Override auto-detected test command
--agents <n>Number of build agents
--self-heal <n>Max self-healing cycles
--skip-gatesAuto-approve all gates
--worktreeRun pipeline in a git worktree for isolation
--worktree=<name>Named worktree for parallel execution
--slack-webhook <url>Slack notification webhook

shipwright pipeline resume

Resume a pipeline from where it left off.

Terminal window
shipwright pipeline resume

shipwright pipeline status

Show pipeline progress dashboard.

Terminal window
shipwright pipeline status

shipwright pipeline abort

Abort a running pipeline.

Terminal window
shipwright pipeline abort

shipwright pipeline list

Browse available pipeline templates.

Terminal window
shipwright pipeline list

shipwright pipeline show

View details of a pipeline template.

Terminal window
shipwright pipeline show <template>

See Delivery Pipeline guide for details.

Daemon

shipwright daemon

Background daemon for autonomous issue processing with intelligent triage, adaptive templates, and self-optimizing metrics.

SubcommandDescription
shipwright daemon initInitialize daemon configuration
shipwright daemon startStart background daemon
shipwright daemon stopStop daemon
shipwright daemon statusShow daemon status and active pipelines
shipwright daemon metricsDORA/DX metrics dashboard
shipwright daemon logsView daemon logs
shipwright daemon triageShow issue triage scores and priority
shipwright daemon patrolRun proactive codebase patrol

Start flags:

FlagDescriptionDefault
--config <path>Path to daemon-config.json.claude/daemon-config.json
--detach, -dRun in a detached tmux sessionoff
--no-githubDisable GitHub API calls (dry-run mode)off

Metrics flags:

FlagDescriptionDefault
--period <days>Reporting period7
--jsonJSON outputoff

Patrol flags:

FlagDescriptionDefault
--onceRun patrol once and exitoff
--dry-runShow findings without creating issuesoff

Examples:

Terminal window
shipwright daemon init # Generate config file
shipwright daemon start # Start watching in foreground
shipwright daemon start --detach # Start in background tmux session
shipwright daemon start --config my-config.json # Custom config
shipwright daemon status # Show active jobs and queue
shipwright daemon stop # Graceful shutdown
shipwright daemon logs --follow # Tail the daemon log
shipwright daemon metrics # DORA + DX metrics (last 7 days)
shipwright daemon metrics --period 30 # Last 30 days
shipwright daemon metrics --json # JSON output for dashboards
shipwright daemon triage # Show issue triage scores
shipwright daemon patrol # Run proactive codebase patrol
shipwright daemon patrol --dry-run # Show what patrol would find

See Autonomous Daemon guide for details.

Fleet Operations

shipwright fleet

Multi-repo daemon orchestrator. Spawn daemons across repositories, view a fleet-wide dashboard, and aggregate DORA metrics.

SubcommandDescription
shipwright fleet initGenerate fleet-config.json (auto-detects sibling repos)
shipwright fleet startStart daemons for all configured repos
shipwright fleet stopStop all fleet daemons
shipwright fleet statusShow fleet dashboard (per-repo status)
shipwright fleet metricsAggregate DORA metrics across repos

Flags:

FlagDescriptionDefault
--config <path>Path to fleet-config.json.claude/fleet-config.json
--period <days>Reporting period for metrics7
--jsonJSON output for metricsoff

Examples:

Terminal window
shipwright fleet init # Generate config
shipwright fleet start # Start all daemons
shipwright fleet start --config my-fleet.json # Custom config
shipwright fleet status # Fleet dashboard
shipwright fleet metrics --period 30 # 30-day aggregate
shipwright fleet stop # Stop everything

See Fleet Operations guide for details.

Bulk Fix

shipwright fix

Apply the same goal across multiple repositories in parallel. Each repo gets its own branch and pipeline run.

Terminal window
shipwright fix "<goal>" [flags]

Flags:

FlagDescriptionDefault
--repos <dir1,dir2,...>Comma-separated repo paths
--repos-from <file>Read repo paths from file (one per line)
--pipeline <template>Pipeline templatefast
--model <model>Claude modelauto
--max-parallel <n>Max concurrent pipelines3
--branch-prefix <prefix>Branch name prefixfix/
--dry-runShow what would happen without executingoff
--statusShow running fix sessions

Examples:

Terminal window
shipwright fix "Update lodash to 4.17.21" --repos ~/api,~/web,~/mobile
shipwright fix "Fix SQL injection in auth" --repos ~/api --pipeline fast
shipwright fix "Bump Node to 22" --repos-from repos.txt --pipeline hotfix
shipwright fix --status

See Bulk Fix guide for details.

Memory

shipwright memory

Persistent learning and context system. Captures pipeline learnings, failure patterns, and design decisions per repository with cross-repo global memory.

SubcommandDescription
shipwright memory showDisplay memory for current repo
shipwright memory show --globalDisplay cross-repo learnings
shipwright memory search <keyword>Search memory for a keyword
shipwright memory statsShow memory size, age, and hit rate
shipwright memory exportExport memory as JSON
shipwright memory import <file>Import memory from JSON
shipwright memory forget --allClear memory for current repo

Pipeline integration commands (called automatically by pipelines):

SubcommandDescription
shipwright memory capture <state> <artifacts>Capture pipeline learnings
shipwright memory inject <stage_id>Inject context for a pipeline stage
shipwright memory pattern <type> [data]Record a codebase pattern
shipwright memory metric <name> <value>Update a performance baseline
shipwright memory decision <type> <summary>Record a design decision
shipwright memory analyze-failure <log> <stage>Analyze failure root cause via AI

Examples:

Terminal window
shipwright memory show # View repo memory
shipwright memory show --global # View cross-repo learnings
shipwright memory search "auth" # Find auth-related memories
shipwright memory export > backup.json # Export memory
shipwright memory import backup.json # Import memory
shipwright memory capture .claude/pipeline-state.md .claude/pipeline-artifacts
shipwright memory inject build # Get context for build stage

See Memory guide for details.

Cost Intelligence

shipwright cost

Token usage tracking, budget enforcement, and spending analysis.

SubcommandDescription
shipwright cost showShow cost summary for current period
shipwright cost budget set <amount>Set daily budget (USD)
shipwright cost budget showShow current budget and usage
shipwright cost remaining-budgetReturn remaining daily budget (used by auto-scaler)

Show flags:

FlagDescriptionDefault
--period <days>Reporting period7
--jsonJSON outputoff
--by-stageBreakdown by pipeline stageoff
--by-issueBreakdown by issueoff

Pipeline integration commands (called automatically by pipelines):

SubcommandDescription
shipwright cost record <in> <out> <model> <stage> [issue]Record token usage
shipwright cost calculate <in> <out> <model>Calculate cost without recording
shipwright cost check-budget [estimated_usd]Check budget before starting

Model pricing (USD per 1M tokens):

ModelInputOutput
opus$15.00$75.00
sonnet$3.00$15.00
haiku$0.25$1.25

Examples:

Terminal window
shipwright cost show # 7-day cost summary
shipwright cost show --period 30 --by-stage # 30-day breakdown by stage
shipwright cost budget set 50.00 # Set $50/day limit
shipwright cost budget show # Check current budget
shipwright cost calculate 50000 10000 opus # Estimate cost

See Cost Intelligence guide for details.

Repo Preparation

shipwright prep

Analyze and prepare a repository for agent teams.

Terminal window
shipwright prep [flags]

Flags:

FlagDescription
--dry-runPreview without writing files
--path <dir>Target directory
--forceOverwrite existing configs
--no-hooksSkip hook generation
--no-claude-mdSkip CLAUDE.md generation
--checkCheck repo readiness without writing
--updateUpdate existing configs (preserve edits)
--with-claudeRun Claude analysis for smarter configs

See Repo Preparation guide for details.

Maintenance

shipwright cleanup

Clean up orphaned tmux sessions and panes.

Terminal window
shipwright cleanup # Dry-run: show what would be cleaned
shipwright cleanup --force # Actually clean up

shipwright reaper

Clean up dead tmux panes (panes where Claude has exited).

Terminal window
shipwright reaper # One-shot cleanup
shipwright reaper --watch # Background auto-cleanup every 5s
shipwright reaper --dry-run # Preview what would be reaped

Also available via tmux keybinding: Ctrl-a then R.

shipwright worktree

Manage git worktrees for agent isolation.

Terminal window
shipwright worktree create <branch> # Create a worktree
shipwright worktree list # List worktrees
shipwright worktree remove <branch> # Remove a worktree

shipwright templates

Browse team templates.

Terminal window
shipwright templates list # List all templates
shipwright templates show <name> # Show template details

Dashboard

shipwright dashboard

Real-time web dashboard for monitoring pipelines, agents, and daemon status.

Terminal window
shipwright dashboard # Start dashboard (foreground)
shipwright dashboard start # Start in background
shipwright dashboard stop # Stop background dashboard

Requires Bun runtime. The dashboard server runs on port 3000 and uses WebSockets for real-time updates.

Heartbeats

shipwright heartbeat

Agent liveness monitoring. Heartbeats are written automatically by pipeline agents and checked by the daemon for stale job detection.

SubcommandDescription
shipwright heartbeat listShow all active heartbeats
shipwright heartbeat check <job-id>Check if a specific job is alive
shipwright heartbeat clearRemove stale heartbeats

Heartbeat files are stored at ~/.shipwright/heartbeats/<job-id>.json.

Checkpoints

shipwright checkpoint

Save and restore pipeline state for resilience and recovery.

SubcommandDescription
shipwright checkpoint listList saved checkpoints
shipwright checkpoint save [name]Save current pipeline state
shipwright checkpoint restore <name>Restore from a checkpoint

Checkpoints are stored in .claude/pipeline-artifacts/checkpoints/.

Remote Machines

shipwright remote

Manage distributed worker machines for scaling pipeline execution across multiple hosts.

SubcommandDescription
shipwright remote listShow registered machines
shipwright remote add <name> --host <h>Register a worker machine
shipwright remote remove <name>Unregister a machine
shipwright remote statusHealth check all machines

Add flags:

FlagDescriptionDefault
--host <hostname>Machine hostname or IPrequired
--path <path>Shipwright install path on remoterequired
--user <user>SSH usercurrent user
--max-workers <n>Max concurrent workers4

Machine registry is stored at ~/.shipwright/machines.json.

See Advanced Features for details.

Issue Tracking

shipwright tracker

Generic issue tracker integration that routes to provider-specific implementations.

Terminal window
shipwright tracker config # Show tracker configuration
shipwright tracker notify <event> <issue> <data> # Send event to tracker

shipwright linear

Linear issue tracker integration for bidirectional sync between pipelines and Linear issues.

Terminal window
shipwright linear setup # Configure Linear integration
shipwright linear sync <issue> # Sync issue status to Linear

shipwright jira

Jira issue tracker integration.

Terminal window
shipwright jira setup # Configure Jira integration
shipwright jira sync <issue> # Sync issue status to Jira

Configuration is stored at ~/.shipwright/tracker-config.json. See Issue Tracking guide for setup instructions.

Intelligence Layer

The intelligence layer provides AI-powered analysis and optimization. All intelligence features are behind feature flags and off by default — enable them in daemon-config.json.

shipwright intelligence

Core intelligence engine for semantic analysis, pipeline composition, cost prediction, and decision synthesis.

SubcommandDescription
shipwright intelligence analyzeSemantic analysis of issues for triage
shipwright intelligence composeAI-driven pipeline composition
shipwright intelligence predictCost and complexity prediction
shipwright intelligence synthesizeSynthesize findings into recommendations
shipwright intelligence search-memorySearch cross-repo memory for patterns
shipwright intelligence recommend-modelRecommend Claude model for stage
shipwright intelligence cache-statsShow intelligence cache statistics
shipwright intelligence cache-clearClear intelligence cache

Examples:

Terminal window
shipwright intelligence analyze '{"title":"Add auth","labels":["feature"]}'
shipwright intelligence compose <issue_json>
shipwright intelligence predict --stage build --goal "Refactor API"
shipwright intelligence recommend-model --stage test

shipwright optimize

Self-optimization and learning system. Analyzes outcomes, tunes template weights, and evolves routing decisions.

SubcommandDescription
shipwright optimize analyze-outcomeAnalyze completed pipeline outcome
shipwright optimize tuneFull outcome analysis and model tuning
shipwright optimize reportShow optimization learnings and metrics
shipwright optimize evolve-memoryEvolve memory from optimization data

Examples:

Terminal window
shipwright optimize analyze-outcome .claude/pipeline-state.md
shipwright optimize tune
shipwright optimize report --period 30

shipwright predict

Predictive analytics for risk assessment, anomaly detection, and proactive codebase patrol.

SubcommandDescription
shipwright predict riskPre-pipeline risk assessment
shipwright predict anomalyCompare metrics against running baselines
shipwright predict patrolAI-driven code analysis for high-risk code
shipwright predict baselineUpdate running metric baselines (EMA)

Examples:

Terminal window
shipwright predict risk '{"title":"Add payment","complexity":7}'
shipwright predict anomaly build duration 45.3
shipwright predict patrol src/ --git-log commits.log

shipwright developer-simulation

Multi-persona code review using simulated developer personas (security, performance, maintainability).

SubcommandDescription
shipwright developer-simulation reviewRun 3-persona PR review
shipwright developer-simulation addressAddress reviewer objections

Examples:

Terminal window
shipwright developer-simulation review <code_diff> "<PR description>"
shipwright developer-simulation address <objections_json> "<implementation context>"

shipwright adversarial

Red-team code review that finds security flaws, race conditions, and edge cases.

SubcommandDescription
shipwright adversarial reviewHostile security and QA review

Examples:

Terminal window
shipwright adversarial review <code_diff> "<context>"

shipwright architecture

Living architecture model: build, validate changes, and evolve patterns over time.

SubcommandDescription
shipwright architecture buildBuild architecture model from codebase
shipwright architecture validateValidate code changes against model
shipwright architecture evolveEvolve model with intentional changes

Examples:

Terminal window
shipwright architecture build
shipwright architecture validate <code_diff>
shipwright architecture evolve architecture.json "Added event-driven patterns"

Configuration:

All intelligence features are controlled via feature flags in .claude/daemon-config.json:

{
"intelligence": {
"enabled": true,
"analyze_enabled": true,
"compose_enabled": true,
"optimize_enabled": true,
"predict_enabled": true,
"adversarial_enabled": true,
"simulation_enabled": true,
"architecture_enabled": true
}
}

See Intelligence guide for detailed setup and examples.