The Autonomous Delivery Platform
From labeled GitHub issue to merged PR — with specialized autonomous agents orchestrating every step.
- Shipwright Builds Itself
- Code Factory Pattern
- Proof, Verification and Safety
- What's New
- Upgrading to 4.0
- How It Works
- Install
- Quick Start
- Features
- Commands
- Pipeline Templates for Teams
- Configuration
- Prerequisites
- Architecture
- Contributing
- License
This repo uses Shipwright to process its own issues. Label a GitHub issue with shipwright and the autonomous pipeline takes over: semantic triage, plan, design, build, test, review, quality gates, PR. No human in the loop.
See it live | Create an issue and watch it build.
Shipwright implements the complete Code Factory control-plane pattern — where agents write 100% of the code and the repo enforces deterministic, risk-aware checks before every merge. Every decision is traceable to policy. Every merge is backed by machine-verifiable evidence.
Agent writes code → Risk policy gate → Tier-appropriate CI → Code review agent
→ Findings auto-remediated → SHA-validated evidence → Bot threads cleaned → Merge
→ Incidents feed back into harness coverage
| Code Factory Layer | Shipwright Implementation |
|---|---|
| Single contract | config/policy.json — risk tiers, merge policy, docs drift, evidence specs, harness SLAs in one file |
| Preflight gate | risk-policy-gate.yml classifies risk from changed files before expensive CI runs |
| SHA discipline | All checks, reviews, and approvals validated against current PR head — stale evidence is never trusted |
| Rerun writer | sw-review-rerun.sh — SHA-deduped, single canonical writer, no duplicate bot comments |
| Remediation loop | review-remediation.yml — agent reads findings and patches code; the workflow validates and pushes the fix |
| Bot thread cleanup | auto-resolve-threads.yml — resolves bot-only threads after clean rerun, never touches human threads |
| Evidence framework | sw-evidence.sh — browser, API, database, CLI, webhook, and custom evidence with freshness enforcement |
| Harness-gap loop | shipwright incident gap — every regression creates a test case with SLA tracking |
Shipwright extends the Code Factory pattern with capabilities most implementations don't have:
- 15-stage pipeline with self-healing builds, adversarial review, and compound quality gates
- Measured, not claimed — a delivery scorecard, a paired eval ratchet and a head-to-head benchmark against bare Claude Code (details)
- Acceptance tests first — each issue becomes tests that are proven to fail, locked, and must pass before the build counts
- Tournament builds — several independent attempts, cross-tested and judged blind, with one winner
- A merge verifier that stops changes that won't merge before a PR is opened
- Predictive risk scoring using GitHub signals (security alerts, contributor expertise, file churn)
- Persistent memory — failure patterns, fix effectiveness, and prediction accuracy compound over time
- Auto-learning — self-optimize runs automatically after every pipeline completion, including context efficiency tuning
- Decision engine — tiered autonomous decisions with outcome learning and deduplication
- Unified model routing —
config/models.jsonaliases (opus,sonnet,haiku) are the single source of truth for model selection - Evidence-gated merges — SHA discipline ensures all evidence validated against current PR head
- Semantic quality audits — Claude-powered audits with grep fallback when Claude unavailable
- Specialized agent roles (PM, reviewer, security auditor, test generator, etc.)
- Cross-platform compatibility — portable date helpers, file_mtime, and compat layer for macOS/Linux
- Fleet operations — the Code Factory pattern applied across every repo in your org
- Cost intelligence — per-pipeline cost tracking and budget enforcement
- Self-optimization — DORA metrics analysis auto-tunes daemon config and template weights
# Evidence framework — capture and verify all types
npm run harness:evidence:capture # All collectors (browser, API, DB, CLI)
npm run harness:evidence:capture:api # API endpoints only
npm run harness:evidence:capture:cli # CLI commands only
npm run harness:evidence:capture:database # Database checks only
npm run harness:evidence:verify # Verify manifest + freshness
npm run harness:evidence:pre-pr # Capture + verify in one step
# Incident-to-harness loop
shipwright incident gap list
shipwright incident gap slaFull Code Factory documentation
A software factory is only as good as the outcomes it can show. Shipwright measures its own delivery, checks each change several independent ways before a PR exists, and keeps agent output outside the trusted side of the pipeline until it has been judged.
graph LR
I[Issue] --> G{Intake gate<br/>sanitize + refuse injection}
G --> R[Compute router<br/>difficulty → route]
R --> P[Plan<br/>+ repo model brief]
P --> A[Acceptance tests<br/>proven red, locked]
A --> B{Build}
B -->|1 attempt| L[Build loop in a disposable clone<br/>+ governance brief + repo model]
B -->|2–5 attempts| T[Tournament<br/>cross-tests, rubric, blind judge]
L --> H[Patch handoff<br/>judged as data]
T --> X
H --> X[Test<br/>locked tests restored + suite]
X --> V[Review<br/>+ governance checklist]
V --> M{Merge verifier}
M -->|pass| PR[Pull request]
M -->|blocked| S[Stop]
PR --> SC[Scorecard + cost ledger]
| Capability | What it does | Command | Default |
|---|---|---|---|
| Delivery scorecard | Merge rate, merged without human help, 14-day revert rate, median time to merge and cost per merged PR, for the factory's own PRs | shipwright scorecard |
on demand |
| Eval ratchet | Scores eval runs with pass^k and accepts a candidate policy only if it is non-inferior and either better (sign test, p ≤ 0.05) or at least 10% cheaper | shipwright eval score|ratchet |
on demand |
| Head-to-head benchmark | Shipwright against bare Claude Code (and any agent CLI) on the same tasks, graded by hidden tests, with a hard budget | shipwright bench |
on demand |
| Spec-first acceptance tests | The issue becomes numbered criteria and new tests, each proven to fail for the right reason, committed and locked before the build; the build passes only if the locked tests pass untouched | shipwright acceptance |
enforce |
| Tournament mode | 2 to 5 independent attempts in separate worktrees of a disposable clone, a cross-test matrix, a per-issue rubric with fixed integrity criteria, and a blind group-wise judge | shipwright tournament |
off (1 attempt) |
| Merge verifier | Predicts whether a change will merge and stay merged; hard stops block in enforce, the learned probability blocks only once it is calibrated on factory PRs |
shipwright verify |
advisory |
| Compute router | Estimates difficulty from the issue and run history, then picks template, model, effort, attempts and a cost cap from a versioned table | shipwright route |
shadow (logs only) |
| Repository world model | Definitions, references, imports, tests and owners, refreshed incrementally; a brief in the prompt and a read-only MCP server for agents | shipwright repomodel |
on |
| Lessons and governance | Accepted ADRs, policies and approved lessons go into the build prompt from the base commit; the review gets a checklist; failed runs are mined into lesson drafts that must win a trial | shipwright governance |
on |
| Patch handoff | The build agent works in a disposable clone with no credentials; its work reaches the trusted checkout only as a patch that is judged first (single builds and tournaments alike) | (pipeline) | on |
| Untrusted input | Issue text is stripped of hidden content, framed as data, and clear injection attempts stop intake until a maintainer adds shipwright:input-reviewed |
(pipeline) | on |
| Dashboard roles | Every mutating route checks the caller's role; the default role is viewer |
(dashboard) | on |
Every switch has an off position for paired measurement, and every new default is meant to be confirmed or reverted by the eval ratchet. The full list of switches is in docs/reference/switches.md; the design records are ADR-0010 to ADR-0016.
What has been measured so far. The scorecard's first baseline, taken over the REST API on 2026-11-26: of 10 pipeline-authored PRs since February 2026, 2 merged. The merge verifier's leave-one-out results on this repository's closed PRs are in ADR-0012. Head-to-head benchmark results will be published once live runs finish; none are claimed here.
v4.1.0 is about proof: each run shows what it delivered and what it cost, and a change gets checked before its pull request exists.
- Proof engine:
shipwright scorecard,shipwright eval, andshipwright bench(ADR-0013) - Better builds: spec-first acceptance tests on by default (ADR-0015), opt-in tournament mode
(
PIPELINE_ATTEMPTS=3), and a merge verifier before every PR (ADR-0012) - Smarter compute: the adaptive compute router in shadow mode (ADR-0014) and a repository world model with an MCP server (ADR-0016)
- Learning with a human gate: repository lessons, a governance pack in agent prompts, and a self-improvement loop that mines, trials and promotes lessons (ADR-0010)
- Trust boundary: patch handoff on by default (ADR-0011), prompt-injection defenses for issue text, and role checks on every mutating dashboard route (viewer by default; exposed dashboards need GitHub OAuth)
- Cost you can trust: one ledger row per run with the real USD, the PR it produced and whether the cost was reported or estimated
- Dashboard Quality tab: scorecard, verifier, router, tournaments, acceptance tests, lessons, trust-boundary events and cost per run on one page
- Pipeline PRs carry only the change, get real titles, and runs clean up after themselves
Details and upgrade notes: CHANGELOG.md and docs/UPGRADING.md.
v4.0.0 hardens how agents, the dashboard and CI are trusted, and starts the move from bash to TypeScript on Bun. It changes several defaults. Read docs/UPGRADING.md before you upgrade.
- Least-privilege agents — agents run under a permission policy (
config/agent-permissions.json) inside the Claude Code sandbox, and never receive GitHub credentials - Dispatch safety gates — a global circuit breaker, a
shipwright:pauselabel, andshipwright gates check,breaker,budget,intake,pause/resume - Failure classifier —
shipwright failure classifydecides retry or escalate; escalations come only from structured error lines - Model aliases —
opus,sonnet,haikuinconfig/models.json, mapped to the Claude 5.5 family - Differential test gate — the build loop blocks only on new test failures
- Dashboard on loopback by default — use
--host 0.0.0.0orSW_DASHBOARD_HOSTfor server or fleet mode - Bun toolchain —
bun.lockis the only root lockfile; Bun 1.2.19+ is required
Full list: CHANGELOG.md.
v3.3.0: Code Factory pattern — risk policy gate, SHA discipline, evidence framework, review remediation, harness-gap loop
graph LR
A[GitHub Issue] -->|labeled 'shipwright'| B[Daemon]
B --> C[Triage & Score]
C --> D[Select Template]
D --> E[Pipeline]
subgraph Pipeline ["15-Stage Pipeline"]
direction LR
E1[intake] --> E2[spec] --> E3[plan] --> E4[design] --> E5[build]
E5 --> E6[test] --> E7[review] --> E8[spec verify] --> E9[quality]
E9 --> E10[audit] --> E11[PR] --> E12[merge] --> E13[deploy]
E13 --> E14[validate] --> E15[monitor]
end
E --> E1
E15 --> F[Merged PR]
subgraph Intelligence ["Intelligence Layer"]
I1[Predictive Risk]
I2[Model Routing]
I3[Adversarial Review]
I4[Self-Optimization]
end
Intelligence -.->|enriches| Pipeline
style A fill:#00d4ff,color:#000
style F fill:#4ade80,color:#000
When tests fail, the pipeline re-enters the build loop with error context — self-healing like a developer reading failures and fixing them. Convergence detection stops infinite loops. A failure classifier decides whether a failed run is retried or escalated.
One-command install (recommended):
git clone https://github.com/sethdford/shipwright.git && cd shipwright && ./install.shOther methods
curl
curl -fsSL https://raw.githubusercontent.com/sethdford/shipwright/main/scripts/install-remote.sh | bashnpm (global)
npm install -g shipwright-cliShipwright 4.0 needs Bun 1.2.19+ for the dashboard and the TypeScript commands. Upgrading from 3.x? See docs/UPGRADING.md.
Verify
shipwright doctor# One-command setup
shipwright init
# See what's running
shipwright status
# Process a GitHub issue end-to-end
shipwright pipeline start --issue 42
# Run daemon 24/7 with agent orchestration
shipwright daemon start --detach
# See live agent activity
shipwright activity
# Spin up agent team for manual work
shipwright session my-feature -t feature-dev
# View DORA metrics and pipeline vitals
shipwright dora
# Continuous build loop with test validation
shipwright loop "Build auth module" --test-cmd "npm test"
# Multi-repo operations
shipwright fleet start
shipwright fix "upgrade deps" --repos ~/a,~/b,~/c
# Release automation
shipwright version bump 4.1.0
shipwright changelog generateWave 1 (Organizational):
- Swarm Manager — Orchestrates dynamic agent teams with specialization roles
- Autonomous PM — Team leadership, task scheduling, roadmap execution
- Knowledge Guild — Cross-team learning, pattern capture, mentorship
- Recruitment System — Talent acquisition and team composition
- Standup Automaton — Daily standups, progress tracking, blocker detection
Wave 2 (Operational Backbone):
- Quality Oversight — Intelligent audits, zero-defect gates, completeness verification
- Strategic Agent — Long-term planning, goal decomposition, roadmap intelligence
- Code Reviewer — Architecture analysis, clean code standards, best practices
- Security Auditor — Vulnerability detection, threat modeling, compliance
- Test Generator — Coverage analysis, scenario discovery, regression prevention
- Incident Commander — Autonomous triage, root cause analysis, resolution
- Dependency Manager — Semantic versioning, update orchestration, compatibility checking
- Release Manager — Release planning, changelog generation, deployment orchestration
- Adaptive Tuner — DORA metrics analysis, self-optimization, performance tuning
- Strategic Intelligence — Predictive analysis, trend detection, proactive recommendations
intake → spec_generation → plan → design → build → test → review → spec_verification
→ compound_quality → audit → pr → merge → deploy → validate → monitor
Each stage is configurable with quality gates that auto-proceed or pause for approval. Around the stages, every run also gets an intake gate for untrusted issue text, a compute-router decision, spec-first acceptance tests before the build (proven red and locked, ADR-0015), and a merge-verifier check before the PR. See Proof, Verification and Safety. 9 pipeline templates:
| Template | Stages | Use Case |
|---|---|---|
fast |
intake → spec → build → test → quality → PR | Quick fixes |
hotfix |
Same as fast, all auto, minimal iteration | Urgent production fixes |
standard |
+ plan, design, review, spec verification, merge | Normal feature work |
tdd |
Like standard on Sonnet, with approval before PR and merge | Test-first work (acceptance tests now run in every template) |
full |
All 15 stages | Production deployment |
autonomous |
Through audit, PR, merge, monitor; all auto | Daemon-driven delivery |
enterprise |
Through deploy, validate, monitor; approve gates (spec stages auto) | Maximum safety + rollback |
cost-aware |
Through audit and PR, with budget limits | Budget-limited delivery |
deployed |
Through merge, deploy, validate, monitor | Full deploy pipeline |
7 modules that make the pipeline smarter over time. Intelligence defaults to auto (on when the Claude CLI is available) once shipwright daemon init has created .claude/daemon-config.json; without that file it is off. Set intelligence.enabled=false to disable. All modules degrade gracefully.
| Module | What It Does |
|---|---|
| Semantic Triage | AI-powered issue analysis, complexity scoring, template selection |
| Pipeline Composer | Generates custom pipeline configs from codebase analysis (file churn, test coverage, dependencies) |
| Predictive Risk | Scores issues for risk using GitHub signals (security alerts, similar past issues, contributor expertise) |
| Adversarial Review | Red-team code review — finds security flaws, edge cases, failure modes. Cross-checks against CodeQL/Dependabot alerts |
| Self-Optimization | Reads DORA metrics and auto-tunes daemon config. Includes context efficiency closed loop for token budget tuning |
| Developer Simulation | 3-persona review (security, performance, maintainability) before PR creation |
| Architecture Enforcement | Living architectural model with violation detection and dependency direction rules |
Adaptive tuning: thresholds learn from history, poll intervals adjust to queue depth, and memory timescales tune based on fix effectiveness. Model routing is deterministic through config/models.json aliases; the older learned routing is opt-in with SW_LEGACY_MODEL_ROUTING=true.
The newer TypeScript intelligence context adds two pieces that are measured on the eval ratchet before they change defaults:
- Adaptive compute router (
shipwright route, ADR-0014): a difficulty score from the issue's text and labels, corrected by earlier routed runs, picks a tier from therouting-v1table (trivial, small, medium, large, xl), each with a template, model, effort, attempt count and cost cap. It runs in shadow mode by default: every decision and outcome is logged to~/.shipwright/routing/decisions.jsonlbut the run is unchanged.SHIPWRIGHT_ROUTER=applyuses the route;offskips it. - Repository world model (
shipwright repomodel, ADR-0016): definitions, references, imports, a test-to-code map and owners for TS/JS, Python, Go, Rust, bash, Java/Kotlin and Ruby, refreshed incrementally. The plan stage and build loop get a brief of the likely files; agents also get a read-only MCP server (repomodel) with search, definition, references, outline, dependencies, tests, owners, repo map and localize tools.SHIPWRIGHT_REPO_MODEL=offis the control arm.
Native GitHub API integration enriches every intelligence module:
| API | Integration |
|---|---|
| GraphQL | File change frequency, blame data, contributor expertise, similar issues, commit history |
| Checks API | Native check runs per pipeline stage — visible in PR timeline, blocks merges on failure |
| Deployments API | Tracks deployments per environment (staging/prod), rollback support, deployment history |
| Security | CodeQL + Dependabot alerts feed into risk scoring and adversarial review |
| Contributors | CODEOWNERS-based reviewer routing, top-contributor fallback, auto-approve as last resort |
| Branch Protection | Checks required reviews and status checks before attempting auto-merge |
The autonomous decision engine (config/policy.json → decision section) handles routine operational decisions with outcome learning. Decisions are tiered by risk, with low-risk actions auto-approved and higher tiers escalated. The engine learns from outcomes to improve future decisions.
Intelligent context window management for pipeline agents:
- Budget-aware trimming — Configurable character budgets for prompt composition (
context_budget_chars) - Section-level trimming — Independent limits for memory, git history, hotspot files, and test output
- Context efficiency metrics — Tracks budget utilization and trim ratios per iteration
- Self-tuning — The self-optimization loop analyzes context efficiency events and recommends budget adjustments
shipwright daemon start --detachWatches GitHub for labeled issues and processes them 24/7:
- Auto-scaling: Adjusts worker count based on CPU, memory, budget, and queue depth
- Priority lanes: Reserve a worker slot for urgent/hotfix issues
- Retry with escalation: a failure classifier decides retry or escalate; retries move to a stronger model first, then to the
fulltemplate - Patrol mode: Proactively scans for security issues, stale deps, dead code, coverage gaps
- Self-optimization: Tunes its own config based on DORA metrics over time
shipwright fleet startOrchestrate daemons across multiple repositories with a shared worker pool. Workers rebalance based on queue depth, issue complexity, and repo priority.
The pipeline learns from every run:
- Failure patterns: Captured and injected into future builds so agents don't repeat mistakes
- Fix effectiveness: Tracks which fixes actually resolved issues
- Prediction validation: Compares predicted risk against actual outcomes, auto-adjusts thresholds
- False-alarm tracking: Reduces noise by learning which anomalies are real
shipwright cost showPer-pipeline cost tracking with model pricing, budget enforcement, and ROI analysis. A dispatch is allowed only while spend is under the daily cap and the run's estimate still fits under it; a cap of 0 means unlimited, and a cap that is not a number blocks dispatch. shipwright scorecard joins the ledger to merged PRs to report cost per merged PR, and shows spend as unknown (never $0) when the ledger has no real cost for the window.
shipwright dashboard startWeb dashboard with live pipeline progress, GitHub context (security alerts, contributors, deployments), DORA metrics, cost tracking, and context efficiency metrics. WebSocket-powered, updates in real-time. Binds 127.0.0.1 by default; use --host 0.0.0.0 or SW_DASHBOARD_HOST for server or fleet mode, after reading docs/dashboard-exposure.md.
The Quality tab shows the proof and safety stack in one place: the saved delivery scorecard, the merge verifier's model and verdicts, compute-router decisions by difficulty tier, tournaments, acceptance tests, governance briefs and lessons, trust-boundary refusals, and cost per run. It reads local files only (GET /api/quality?days=N). See the dashboard guide.
Every state-changing route checks the signed-in user's role (viewer, operator, admin). Unknown or missing roles resolve to viewer, a GitHub admin of DASHBOARD_REPO is a dashboard admin, and an exposed dashboard requires GitHub OAuth (it refuses to start with PAT sign-in).
shipwright webhook setup owner/repo
shipwright webhook startIssue processing via GitHub webhooks instead of polling. setup registers the webhook on a repo and start runs the receiver.
shipwright pr review <pr#>
shipwright pr merge <pr#>
shipwright pr cleanupAutomated PR management: review based on predictive risk and coverage, auto-merge when gates pass, and closing stale PRs.
shipwright fleet discover --org myorgScan a GitHub organization and auto-populate fleet config with all repos matching criteria (language, topic, recent activity; archived repos are skipped). One command instead of manual registry building.
SQLite-backed state (shipwright db) with atomic transactions, alongside the JSON and JSONL artifacts that many scripts still read.
shipwright decompose analyze 42
shipwright decompose decompose 42AI-powered issue analysis: analyze scores complexity; decompose creates child issues with inherited labels/assignees and a dependency graph.
Cross-platform process supervision. Use systemd on Linux instead of tmux, same daemon commands:
shipwright launchd install # macOS launchd
# systemd service auto-generated on Linuxshipwright context gatherRich context injection for pipeline stages. Pulls together: contributor history, file hotspots, architecture rules, related issues, failure patterns. Injected automatically at each stage for smarter decisions.
Over 100 commands. Key workflows:
# Autonomous delivery
shipwright pipeline start --issue 42
shipwright daemon start --detach
# Agent teams
shipwright swarm status
shipwright recruit roles
shipwright standup today
shipwright guild list
# Proof and verification
shipwright scorecard --days 30
shipwright eval ratchet --incumbent base.json --candidate new.json
shipwright bench plan --tasks tasks.json --arms arms.json
shipwright verify score --base origin/main
shipwright acceptance verify-green --lock acceptance.lock.json
# Build strategy and context
shipwright tournament --goal-file goal.md --test-cmd "bun test" --attempts 3
shipwright route stats
shipwright repomodel localize --task goal.md
shipwright governance brief
# Quality gates
shipwright code-review scan
shipwright security-audit scan
shipwright testgen gaps
shipwright breaker status
# Observability
shipwright vitals
shipwright dora
shipwright stream
shipwright activity
# Multi-repo operations
shipwright fleet start
shipwright fix "feat: add auth" --repos ~/a,~/b,~/c
shipwright fleet-viz
# Release automation
shipwright version bump 4.1.0
shipwright changelog generate
shipwright deploys list
# Setup & maintenance
shipwright init
shipwright prep
shipwright doctor
shipwright upgrade --apply
# See all commands
shipwright --helpSee docs/reference/legacy-guide.md for the complete 100+ command reference organized by workflow. Full documentation: https://sethdford.github.io/shipwright.
25 team templates covering the full SDLC:
shipwright templates list| File | Purpose |
|---|---|
config/policy.json |
Central contract — risk tiers, merge policy, docs drift, browser evidence, harness SLAs |
config/policy.schema.json |
JSON Schema validation for the policy contract |
.claude/daemon-config.json |
Daemon settings, intelligence flags, patrol config |
.claude/pipeline-state.md |
Current pipeline state |
templates/pipelines/*.json |
9 pipeline template definitions |
tmux/templates/*.json |
25 team composition templates |
config/models.json |
Model aliases (opus, sonnet, haiku) and the default |
config/agent-permissions.json |
Least-privilege permission policy every agent runs under |
.shipwright/lessons/*.md |
Approved repository lessons for agent prompts (format) |
docs/adr/ |
Architecture decisions; accepted ones go into the build prompt (index) |
~/.shipwright/events.jsonl |
Event log for metrics |
~/.shipwright/routing/decisions.jsonl |
Compute-router decisions and outcomes |
~/.shipwright/verifier/model.json |
Trained merge-verifier weights (shipwright verify train) |
~/.shipwright/repo-model/ |
Repository world model cache, one file per repository |
~/.shipwright/costs.json |
Cost tracking data |
~/.shipwright/budget.json |
Budget limits |
~/.shipwright/github-cache/ |
Cached GitHub API responses |
Pipeline behaviour switches (SW_ACCEPTANCE, PIPELINE_ATTEMPTS, SHIPWRIGHT_VERIFIER, SHIPWRIGHT_ROUTER, SW_PATCH_HANDOFF, the ablation arms and more) are listed with their defaults in docs/reference/switches.md. ~/.shipwright is the default state directory; set SHIPWRIGHT_STATE_DIR to move it.
| Requirement | Version | Install |
|---|---|---|
| tmux | 3.2+ | brew install tmux |
| jq | any | brew install jq |
| Claude Code CLI | latest | npm i -g @anthropic-ai/claude-code |
| Bun | 1.2.19+ | curl -fsSL https://bun.sh/install | bash (dashboard and TypeScript commands) |
| Node.js | 20+ | For npm install and hooks |
| Git | any | For installation |
| gh CLI | any | brew install gh (GitHub integration) |
About 200 bash scripts (~117K lines, not counting tests) and a growing TypeScript core on Bun (src/). The TypeScript side is a modular monolith of bounded contexts (docs/architecture.md); the newest features (scorecard, eval, bench, verifier, tournament, router, acceptance tests, repo model, governance) are TypeScript-native and called from the bash pipeline. 174 shell test suites, including an E2E system test of the daemon→pipeline→loop→PR flow, plus dashboard and TypeScript test suites. Dashboard coverage is gated at 70% of lines. Bash 3.2 compatible — runs on macOS and Linux.
Core Layers:
Pipeline Layer
sw-pipeline.sh # 15-stage delivery orchestration
sw-daemon.sh # Autonomous GitHub issue watcher
sw-loop.sh # Continuous multi-iteration build loop
Agent Layer
sw-swarm.sh # Dynamic agent team orchestration
sw-pm.sh # Autonomous PM coordination
sw-recruit.sh # Agent recruitment system
sw-standup.sh # Daily team standups
sw-guild.sh # Knowledge guilds
sw-oversight.sh # Quality oversight board
sw-strategic.sh # Strategic intelligence
sw-scale.sh # Dynamic team scaling
... more agent scripts
Intelligence Layer
sw-intelligence.sh # AI analysis engine
sw-predictive.sh # Risk scoring + anomaly detection
sw-adaptive.sh # Data-driven pipeline tuning
sw-security-audit.sh # Security analysis
sw-code-review.sh # Code quality analysis
sw-testgen.sh # Test generation
sw-architecture-enforcer.sh # Architecture enforcement
Operational Layer
sw-fleet.sh # Multi-repo orchestration
sw-ci.sh # CI/CD orchestration
sw-webhook.sh # GitHub webhooks
sw-incident.sh # Incident response
sw-release-manager.sh # Release automation
... 20+ operational scripts
Observability Layer
sw-pipeline-vitals.sh # Pipeline health scoring
sw-dora.sh # DORA metrics dashboard
sw-activity.sh # Live activity streams
sw-replay.sh # Pipeline playback
sw-trace.sh # E2E traceability
sw-otel.sh # OpenTelemetry integration
... observability services
Infrastructure
sw-github-graphql.sh # GitHub GraphQL API client
sw-github-checks.sh # Native GitHub check runs
sw-github-deploy.sh # Deployment tracking
sw-memory.sh # Persistent learning system
sw-cost.sh # Cost intelligence
sw-db.sh # SQLite persistence
sw-eventbus.sh # Async event bus
Tools & UX
dashboard/server.ts # Real-time dashboard
sw-session.sh # tmux agent sessions
sw-status.sh # Team dashboard
sw-docs.sh # Documentation sync
sw-tmux.sh # tmux health management
Let Shipwright build it: Create an issue using the Shipwright template and label it shipwright. The autonomous pipeline will triage, plan, build, test, review, and create a PR.
Manual development: Fork, branch, then:
bun run check # typecheck, lint, architecture rules, TS and dashboard tests, docs
npm test # 174 shell suites, including the E2E system testMIT — Seth Ford, 2026.