Skip to content

Configuration

The theme lives in tmux/tmux.conf. It uses a dark blue-gray background with cyan accents.

The tmux overlay uses these values (tmux/shipwright-overlay.conf and tmux/tmux.conf):

Element Hex
Pane background #1a1a2e
Active pane background #1e1e36
Pane foreground #8888a0
Active pane foreground #b4b4c8
Accent (active pane border) #00d4ff
Inactive pane border #333355
Inactive window label #71717a

To customize colors, edit the hex values in tmux/shipwright-overlay.conf and tmux/tmux.conf, then reload with prefix + r.

Role-colored pane borders: scripts/sw-tmux-role-color.sh sets the active pane border color from the agent’s role. Unknown roles fall back to cyan.

Role Color Hex
leader, pm Cyan #00d4ff
builder, dev Blue #0066ff
reviewer Orange #f97316
tester Yellow #facc15
security Red #ef4444
docs, writer Violet #a78bfa
optimizer Green #4ade80
researcher Purple #7c3aed

Pipeline stage indicator: the status bar shows the current pipeline stage.

The prefix key is Ctrl-a (remapped from the default Ctrl-b).

Key Action
prefix + r Reload tmux config
prefix + | Split pane vertically
prefix + - Split pane horizontally
prefix + c New window
prefix + x Kill pane (with confirmation)
prefix + X Kill window (with confirmation)
prefix + s Choose session (tree view)
prefix + N New session
Key Action
prefix + h/j/k/l Move between panes
Ctrl + h/j/k/l Smart pane switching (vim-tmux-navigator)
prefix + H/J/K/L Resize pane (repeatable)
Key Action
prefix + T Launch team session
prefix + Ctrl-t Show team status dashboard
prefix + g Display pane numbers
prefix + G Toggle zoom on current pane
prefix + S Toggle synchronized panes
prefix + M-t Toggle team sync mode
prefix + M-1 Layout: main-horizontal (leader 65% left)
prefix + M-2 Layout: main-vertical (leader 60% top)
prefix + M-3 Layout: tiled (equal sizes)
prefix + M-s Capture current pane scrollback
prefix + M-a Capture all panes in window
prefix + R Reap dead panes (one-shot cleanup)
Key Action
v Begin selection
y Copy selection
r Toggle rectangle mode
prefix + p Paste buffer

The claude-code/settings.json.template configures Claude Code for agent teams.

Setting Default Description
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS "1" Enable agent teams (required)
CLAUDE_CODE_AUTOCOMPACT_PCT_OVERRIDE "70" Context compaction threshold
CLAUDE_CODE_SUBAGENT_MODEL "haiku" Model for subagent lookups
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY "5" Parallel tool calls per agent
  1. Copy the template: cp claude-code/settings.json.template ~/.claude/settings.json
  2. Customize the enabledPlugins section
  3. Adjust environment variables as needed

Hooks are shell scripts that run on Claude Code lifecycle events.

Hook Event What It Does
teammate-idle.sh TeammateIdle Runs typecheck — blocks idle until errors are fixed
task-completed.sh TaskCompleted Runs lint + test — blocks completion until quality passes
notify-idle.sh Notification Desktop alert when agents need attention
pre-compact-save.sh PreCompact Saves git context before compaction
Terminal window
# Copy hooks to Claude Code hooks directory
cp claude-code/hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh

Then wire them up in ~/.claude/settings.json:

{
"hooks": {
"TeammateIdle": [
{
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/teammate-idle.sh",
"timeout": 30
}
]
}
]
}
}

Quality gate hooks use exit codes to control behavior:

Exit Code Meaning
0 Pass — agent continues normally
2 Block — agent must fix the issue before proceeding
Other Error — logged but doesn’t block

Example lint check hook:

#!/usr/bin/env bash
cd "$(find_project_root)" || exit 0
pnpm lint 2>&1 || {
echo "::error::Lint errors found. Fix them before going idle."
exit 2
}
exit 0

The daemon configuration file at .claude/daemon-config.json controls all daemon intelligence features. Generate it with shipwright daemon init.

Field Default Description
watch_label "shipwright" GitHub label to watch for
poll_interval 60 Seconds between polls
max_parallel 2 Maximum concurrent pipeline jobs
pipeline_template "autonomous" Default pipeline template
base_branch "main" Branch to create worktrees from
model "opus" Default Claude model
skip_gates true Auto-approve all gates

Automatically selects the best pipeline template based on issue labels and triage score.

Field Default Description
auto_template false Enable adaptive template selection
template_map {} Regex-based template overrides (label pattern → template name)

When auto_template is enabled, template selection uses this priority:

  1. Label overrides — hotfix/incident → hotfix template, security → enterprise
  2. template_map overrides — regex patterns matched against issue labels
  3. Score-based — score ≥ 70 → fast, ≥ 40 → standard, below → full
{
"auto_template": true,
"template_map": {
"hotfix|incident": "hotfix",
"security": "enterprise"
}
}

Automatically retries failed pipelines with optional model/template escalation.

Field Default Description
max_retries 2 Maximum retry attempts per issue
retry_escalation true Escalate model/template on retry

Automatically tunes daemon parameters based on DORA metric thresholds. Off by default: daemon init writes false.

Field Default Description
self_optimize false Enable self-optimizing loop (includes context efficiency)
optimize_interval 10 Poll cycles between optimization checks

The adjustments the daemon makes depend on its current DORA metrics. See the Daemon guide for how DORA metrics are used.

Allows critical issues to bypass the normal queue and get processed immediately.

Field Default Description
priority_lane false Enable priority bypass queue
priority_lane_labels "hotfix,incident,p0,urgent" Labels that trigger priority lane
priority_lane_max 1 Maximum extra slots for priority issues

Watch issues across all repositories in a GitHub organization.

Field Default Description
watch_mode "repo" "repo" for single repo, "org" for org-wide
org null GitHub organization name (required for org mode)
repo_filter null Regex filter for repository names (e.g. "api-.*|web-.*")

Proactive codebase scanning during quiet periods.

Field Default Description
patrol.interval 3600 Seconds between patrol runs
patrol.max_issues 5 Maximum issues to create per patrol
patrol.label "auto-patrol" Label applied to patrol-created issues

Monitors pipeline success rates and alerts on quality declines.

Field Default Description
alerts.degradation_window 5 Number of recent pipelines to evaluate
alerts.cfr_threshold 30 Change failure rate (%) that triggers alert
alerts.success_threshold 50 Success rate (%) below which an alert fires
Field Default Description
health.stale_timeout_s 1800 Seconds before a job is considered stale
Field Default Description
on_success.remove_label "shipwright" Label to remove on success
on_success.add_label "pipeline/complete" Label to add on success
on_success.close_issue false Close issue on success
on_failure.add_label "pipeline/failed" Label to add on failure
on_failure.comment_log_lines 50 Log lines to include in failure comment
Field Default Description
notifications.slack_webhook null Slack webhook URL for alerts
{
"watch_label": "shipwright",
"poll_interval": 60,
"max_parallel": 2,
"pipeline_template": "autonomous",
"base_branch": "main",
"model": "opus",
"skip_gates": true,
"auto_template": true,
"template_map": {
"hotfix|incident": "hotfix",
"security": "enterprise"
},
"max_retries": 2,
"retry_escalation": true,
"self_optimize": true,
"optimize_interval": 10,
"intelligence": {
"enabled": true,
"optimization_enabled": true,
"prediction_enabled": true
},
"priority_lane": true,
"priority_lane_labels": "hotfix,incident,p0,urgent",
"priority_lane_max": 1,
"watch_mode": "repo",
"org": null,
"repo_filter": null,
"patrol": {
"interval": 3600,
"max_issues": 5,
"label": "auto-patrol"
},
"alerts": {
"degradation_window": 5,
"cfr_threshold": 30,
"success_threshold": 50
},
"health": {
"stale_timeout_s": 1800
},
"on_success": {
"remove_label": "shipwright",
"add_label": "pipeline/complete",
"close_issue": false
},
"on_failure": {
"add_label": "pipeline/failed",
"comment_log_lines": 50
},
"notifications": {
"slack_webhook": null
}
}

The intelligence layer adds semantic codebase analysis, predictive risk assessment, and self-optimization to the daemon. All intelligence features are optional and configured in the intelligence section of .claude/daemon-config.json.

Field Default Description
intelligence.enabled auto Master switch: auto enables when Claude CLI is available; true/false to override
intelligence.cache_ttl_seconds 3600 Cache duration for intelligence responses (prevents re-analyzing the same issue)
Field Default Description
intelligence.composer_enabled "auto" Enable dynamic pipeline composition (replaces static template selection)
intelligence.optimization_enabled "auto" Enable self-optimization (outcome analysis, template tuning, model A/B testing)
intelligence.prediction_enabled "auto" Enable predictive analytics (risk assessment, anomaly detection, AI patrol)
intelligence.adversarial_enabled false Enable adversarial code review (red-team review after primary agent)
intelligence.simulation_enabled false Enable developer simulation (simulated PR review with multiple personas)
intelligence.architecture_enabled false Enable architecture enforcer (living architectural model and validation)
Field Default Description
intelligence.ab_test_ratio 0.2 Fraction of runs using composed pipelines for A/B testing
intelligence.anomaly_threshold 3.0 Standard deviations for anomaly detection

All intelligence features degrade gracefully when disabled or when Claude API calls fail. The system falls back to existing static behavior.

The decision engine handles autonomous operational decisions with risk-tiered approval. Configure in config/policy.json under the decision key.

Field Default Description
decision.enabled true Enable the autonomous decision engine
decision.cycle_interval_seconds 1800 Seconds between decision cycles
decision.tiers_file config/decision-tiers.json Risk tier definitions for decisions
decision.outcome_learning_enabled true Learn from decision outcomes to improve future calls
decision.outcome_min_samples 10 Minimum samples before applying learned adjustments
decision.dedup_window_days 7 Window for deduplicating identical decisions

Context engineering controls how pipeline agents compose and trim their context window. Configure in config/defaults.json under the loop key.

Field Default Description
loop.context_budget_chars 180000 Maximum characters for composed prompts
loop.context_trim_memory_chars 20000 Max characters from memory injection
loop.context_trim_git_entries 10 Max git log entries included in context
loop.context_trim_hotspot_files 5 Max hotspot files included
loop.context_trim_test_lines 50 Max lines of test output included

The self-optimization loop monitors context efficiency events (loop.context_efficiency) and recommends budget adjustments automatically. See the Intelligence guide for details.

The daemon supports resource-aware dynamic worker scaling based on system capacity and budget.

Field Default Description
auto_scale false Enable resource-aware dynamic worker scaling
auto_scale_interval 5 Seconds between scale checks
max_workers 8 Maximum workers the auto-scaler can allocate
min_workers 1 Minimum workers (floor)
worker_mem_gb 4 Memory per worker for capacity calculation
estimated_cost_per_job_usd 5.0 Cost estimate per job for budget-based scaling

Scaling factors (takes the minimum):

  • CPU: 75% of system cores
  • Memory: available GB / worker_mem_gb
  • Budget: remaining daily budget / estimated_cost_per_job_usd
  • Queue: current demand (active + queued issues)

For fleet operations, distribute workers across multiple repositories.

Field Default Description
worker_pool.enabled false Enable shared worker pool across fleet repos
worker_pool.total_workers 12 Total workers to distribute across repos
worker_pool.rebalance_interval_seconds 120 Seconds between rebalance cycles

When enabled, the fleet rebalancer runs in the background and redistributes workers every N seconds. Repos with more queued issues get more workers. Each repo always gets at least 1 worker.

The fleet configuration file at .claude/fleet-config.json manages multi-repo daemon orchestration. Generate it with shipwright fleet init.

{
"repos": [
{ "path": "/path/to/api", "template": "autonomous", "max_parallel": 2 },
{ "path": "/path/to/web", "template": "standard" }
],
"defaults": {
"watch_label": "ready-to-build",
"pipeline_template": "autonomous",
"max_parallel": 2,
"model": "opus"
},
"shared_events": true
}

Each entry in the repos array can override the fleet defaults:

Field Default Description
path — Required. Absolute path to the repository
template defaults.pipeline_template Pipeline template override
max_parallel defaults.max_parallel Max concurrent pipelines for this repo
watch_label defaults.watch_label Label override for this repo
model defaults.model Model override for this repo
Field Default Description
defaults.watch_label "ready-to-build" Default issue label to watch
defaults.pipeline_template "autonomous" Default pipeline template
defaults.max_parallel 2 Default max concurrent pipelines
defaults.model "opus" Default Claude model
shared_events true Share events.jsonl across repos

Deploy configuration is set up via shipwright init --deploy or by using the deployed pipeline template. Deploy adapters live in scripts/adapters/.

Available deploy adapters:

Adapter File Description
Vercel adapters/vercel-deploy.sh Vercel deployment
Fly.io adapters/fly-deploy.sh Fly.io deployment
Railway adapters/railway-deploy.sh Railway deployment
Docker adapters/docker-deploy.sh Docker-based deployment

The deployed pipeline template uses placeholder commands (__STAGING_CMD__, __PRODUCTION_CMD__, __ROLLBACK_CMD__, __SMOKE_CMD__, __HEALTH_URL__) that are replaced during shipwright init --deploy.

Shipped values come from claude-code/settings.json.template (the env block):

Variable Shipped value Description
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS "1" Required. Enables agent teams
CLAUDE_CODE_SUBAGENT_MODEL "haiku" Model for subagent lookups
CLAUDE_CODE_AUTOCOMPACT_PCT_OVERRIDE "70" Context compaction threshold (lower = more aggressive)
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY "5" Parallel tool calls per agent
SHIPWRIGHT_WEBHOOK_URL unset Custom webhook URL for pipeline notifications

After installation, press prefix + I to install plugins. The plugins loaded by tmux/tmux.conf are:

Plugin Key What It Does
tmux-sensible — Sensible base tmux defaults
tmux-resurrect — Saves and restores sessions, including pane contents
tmux-continuum — Saves sessions every 15 minutes and restores them when tmux starts
tmux-yank mouse selection Copies selections to the system clipboard
tmux-fzf prefix + Ctrl-f Fuzzy finder for sessions, windows, and panes in a popup

prefix + F opens a floating popup terminal in the current directory. It is defined in tmux/tmux.conf, not by a plugin.