One repository passport. Zero drift across quality, queues and exact-SHA releases.
Built for Bun, TypeScript and autonomous coding agents.
One .passport.json binds Biome & GritQL quality gates, a single-slot shared node queue, and immutable exact-SHA releases with probes and rollback.
Built to be adopted straight from an AI session (Claude Code, Codex, Cursor, Antigravity). Paste this once into your agent:
Adopt StitchDevKit in this repository: read https://raw.githubusercontent.com/max-listov/stitchdevkit/main/llms.txt, create .passport.json, route heavy scripts through devkit-run --kind <kind>, and verify with devkit-doctor --run-queue .
Tip
LLM-native by design: llms.txt maps all 33 entrypoints, 9 CLIs and 38 architecture specs · AGENTS.md & CLAUDE.md encode every invariant · devkit-doctor --json returns machine-readable diagnostics.
![]() StitchKit Contract-first SDK |
![]() StitchWire Private node mesh |
![]() StitchMux Agent control plane |
StitchDevKit Quality & release engine |
|---|---|---|---|
| One API contract → HTTP, MCP, AI tools, CLI and client. | Link build and runtime hosts over a private mesh. | Run and coordinate coding-agent sessions across repos. | Quality gates, shared node queues and exact-SHA releases. |
Architecture boundary: docs/VISION.md
Tasks move through inbox/ → planned/ → in-progress/ → done/ as Markdown cards with typed frontmatter, append-only participants stamps and checked local links. devkit-quality backlog refuses any closed card with open acceptance items, missing verification proof or a directory/status mismatch (backlog contract).
Production never mutates a live checkout in place: DevKit builds an immutable artifact pinned to an exact Git SHA, runs type and migration safety pre-checks, verifies HTTP/MCP health probes before atomic cutover, and writes a durable rollback-ready receipt (release engine).
| Area | What StitchDevKit enforces |
|---|---|
| Policy & lint | One .passport.json + Biome 2.6 & GritQL rules across every repo |
| Backlog & docs | Typed inbox → planned → in-progress → done contracts, authorship stamps & link checks |
| Shared queue | One bounded node slot (devkit-run) + cgroup v2 so parallel runs never OOM-crash |
| Exact-SHA releases | Immutable SHA builds, migration safety, HTTP/MCP probes, atomic cutover & rollback |
| Browser bundles | Dedicated zero-node: /browser & /primitives subpaths |
| Live observation | Typed run-progress/v1 (%, stage, ETA) & durable verifiable receipts |
flowchart LR
P[".passport.json<br/>Identity & Policy"] --> Q["Quality Gates<br/>Biome · GritQL · Backlog"]
Q --> A["Shared Node Queue<br/>One slot · cgroup v2 · Priority"]
A --> R["Exact-SHA Release<br/>Probes · Atomic Cutover · Rollback"]
R --> O["Live Observation<br/>Progress · Receipts · Epochs"]
bun add -D stitchdevkit
# or with npm / Node >= 24:
npm install --save-dev stitchdevkitFor verified standalone host tarball installation (verifies the Ed25519 signature on SHA256SUMS against the embedded public key and checks SHA-256 before extraction; pass --pubkey <file> to override the key):
curl -fsSL https://raw.githubusercontent.com/max-listov/stitchdevkit/main/contrib/install.sh \
| bash -s -- --prefix /usr/local/lib/stitchdevkit --version v0.294.0GitHub Release SHA256SUMS files are signed with Ed25519 (SHA256SUMS.sig) using the pinned release key (keyId: stitchdevkit-release-2026-ed25519):
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAOVrFh/nmG6zF3h77cA9CNVjP3Y96frJxSjaG4L5qd4w=
-----END PUBLIC KEY-----
- Rotation policy: Dual-signed overlap across at least one minor release before retiring a
keyId; public key pins are published inREADME.mdand signedmanifest.json. - Offline root key ring (
stitch-release-keys/v1): Releases can also ship a pairedrelease-keys.json+release-keys.json.sigsigned by an offline Ed25519 root key. Pass--root-pubkey <file>tocontrib/install.shor--root-public-key <file>todevkit source --github-releasesto verify key expiry, revocation, repository binding and (ondevkit updateapply) an anti-rollback floor; seedocs/architecture/publication.mdfor the full contract.
{
"schemaVersion": 1,
"identity": {
"repositoryId": "acme/my-app",
"project": "my-app",
"productName": "My App"
},
"rules": {
"biomeProfile": "strict"
}
}{
"scripts": {
"gate": "devkit-run --label my-app-gate --kind gate -- bun run gate:raw",
"test": "devkit-run --label my-app-test --kind test -- bun test",
"build": "devkit-run --label my-app-build --kind build -- bun run build:raw"
}
}devkit-doctor --run-queue . # verify queue wiring and .passport.json alignment
devkit-quality check . # run Biome, boundary and semantic checksNote
devkit-run reads identity.project straight from .passport.json — pass --label and --kind, and skip redundant --project flags.
import { evaluateQuality } from 'stitchdevkit/quality';
import { createHttpProbe } from 'stitchdevkit/release';
import { readNodeQueue, readNodeRunProgress } from 'stitchdevkit/release/run-observation';
const verdict = await evaluateQuality({ root: process.cwd() });
const probe = createHttpProbe({
id: 'health',
url: 'http://127.0.0.1:3000/health',
expectedStatus: 200,
phase: 'post-activation',
});
const [queue, progress] = await Promise.all([readNodeQueue(), readNodeRunProgress()]);Runnable examples: quality-check.ts · release-project.ts · run-admission.ts
Compiled .js + strict .d.ts (Bundler & NodeNext, skipLibCheck: false). Applications pick their own StitchKit version independently.
| Entrypoint | Runtime | Role |
|---|---|---|
stitchdevkit |
Node / Bun | Core accountability, finite command runner, suite manifests & receipts |
stitchdevkit/quality |
Node / Bun | Quality verdict, Biome 2.6 presets, GritQL plugins, passport, backlog & policy |
stitchdevkit/release |
Node / Bun | Exact-SHA release engine, probes, migration safety, supervisors & run admission |
stitchdevkit/runtime |
Node / Bun | Zero-weight application runtime heartbeat & release identity binding |
stitchdevkit/fs |
Pure node:* |
Exact-mode filesystem helpers (zero external dependencies) |
stitchdevkit/primitives |
Browser-safe | Wire primitives, semantic versions, passport identity & epoch parser |
stitchdevkit/release-transition |
Browser-safe | Zod-only release transitions, incident cards & transition journal |
stitchdevkit/release/artifacts/browser |
Browser-safe | Release content contracts & changelog parser (zero node: / oxc-parser) |
stitchdevkit/quality/backlog/browser |
Browser-safe | Backlog, participant, relation, research, passport & waiting-on contracts |
stitchdevkit/quality/requirements |
Browser-safe | Release requirements, conformance corpus & task-result proof contracts |
stitchdevkit/release/run-observation |
Node / Bun | Live node queue, named runs, progress, memory pauses & workload runner |
stitchdevkit/release/read-only |
Node / Bun | Lightweight read-only node observation contracts, client & local delivery |
stitchdevkit/release/node-control |
Node / Bun | Revision publication, route fragments/logging, node jobs & runtime plans |
stitchdevkit/release/artifacts |
Node / Bun | Changelog, release content, task-result builds, consumer updates & maintenance |
All 33 subpaths and 9 CLI binaries
Remaining subpaths: stitchdevkit/canonical-json-web, stitchdevkit/program-stitchkit, stitchdevkit/darwin-native-packaging, stitchdevkit/vendored-archives, stitchdevkit/pm2-predecessor-maintenance, stitchdevkit/release/adapters, stitchdevkit/release/epochs, stitchdevkit/release/read-only/wire-client, stitchdevkit/release/probes/mcp, stitchdevkit/release/library, stitchdevkit/release/npm, stitchdevkit/release/publication, stitchdevkit/quality/biome, stitchdevkit/quality/biome-core, stitchdevkit/quality/biome-tailwind, stitchdevkit/quality/plugins/*, stitchdevkit/quality/passport, stitchdevkit/quality/backlog, stitchdevkit/quality/policy.
CLI binaries: devkit-doctor, devkit-verify, devkit-quality, devkit-update, devkit-vendored, devkit-run, devkit-apps-install, devkit-release, devkit-artifact-gate.
| Capability | Linux x64 | macOS arm64 | Notes |
|---|---|---|---|
Quality (biome, GritQL, passport, backlog) |
Supported | Supported | Bun & Node 24+ |
| Release engine, probes, static sites, PM2 | Supported | Supported | Exact-SHA immutable releases |
| Shared node run admission & cgroup v2 | Supported | Limited | cgroup v2 scopes require Linux systemd |
| macOS desktop signing & notarization | — | Supported | Requires codesign & notarytool |
Requires Bun 1.4.5 and Git (no root privileges or fleet config needed):
bun install --frozen-lockfile
bun run check # cold tsc across packages, scripts, tests & examples
bun run lint # Biome format, imports & project rules
bun test --isolate packages/sdk/test/doctor.test.ts # single test file in isolation
bun run gates # full snapshot gate with coverage floorsRelease suite, consumer updates & publication safeguards
Source manifests keep "private": true so accidental npm publish from source fails with EPRIVATE; publishable artifacts are assembled strictly inside dist/.
bun run release <version> --message <file> # publish DevKit: prove, tag, sign, GitHub Release, npm
bun run pack:release dist/release v<version> # pack clean tree into archive + manifests
devkit consumer-update /path/to/consumer --issuer <origin> # update an adopted consumer checkout
bun run publication:snapshot --out /tmp/devkit-snapshot # deterministic history-free source snapshot
bun run publication:snapshot --verify /tmp/devkit-snapshot # verify SOURCE_MANIFEST.json digests & modes
bun run publication:notices:check # verify THIRD_PARTY_NOTICES.txt
bun run publication:stage-npm # assemble publishable dist/npm-package
bun run publication:assemble # build dist/public-release/{release,rollback}
bun run publication:guard # verify npm metadata & source private guard
bun run gen:llms:check # verify llms.txt is currentSigned host tarball install: contrib/install.sh · docs/architecture/publication.md
| Path | Start here |
|---|---|
| Adopting in a repo | .passport.json · Quality · Run Queue · Releases · Breaking Changes · llms.txt |
| Operating & hacking | Vision · Boundaries · Release Engine · Control Plane · CONTRIBUTING.md · CLAUDE.md |
Full architecture & decision reference (38 architecture docs + ADR)
passport.md— Current shape of.passport.json, naming history and schema/reader boundaryquality-adoption.md— Biome, GritQL plugins, semantic policy and quality evidencebacklog-contract.md— Task-link grammar, checker with repair mode and conformance corpusrepository-content-evidence.md— Versioned quality declarations and bounded read-only checkout receiptsepochs.md— Observation epochs as Markdown journals in the repositoryconsumer-accountability.md— Receipt, gate attestation and self-verification
shared-run-admission.md— One node slot, workload lifetime and enforcement envelope for all launchersproject-runs.md— Node-owned lifecycle for project runs, system services, native apps, open targets and simulatorshost-apps-operator.md— Interactiveappsoperator surface, commands and exact restartsdev-stands.md— Parking and waking dev stands across hot, idle, cold and pinned statesnode-control-plane.md— Node-local releases, immutable serving, environment placement, routing inventory and federated actionsnode-owned-logging.md— Route declarations, effective-context verification, writer receipts and scanner migrationnode-update.md—devkit update, automatic Linux/macOS schedules, progress, JSON and previewdev-delivery.md— Fast reversible working-tree dev delivery (dev:deliver,dev:restore,dev:status) kept to inner nodes by the shared zone markrelease-observation.md— Stable identity, durable journal, lifecycle events, verdicts and external availability evidenceapplication-lifecycle-evidence.md— Correlated stop-to-ready attestations independent of supervisor timing
release-engine.md— State machine and core/integration boundaryrelease-adoption.md— Full integration of release tooling into a consumer repositoryrelease-origin.md— Signed content-addressed origin, its writer, readers and replicasrelease-acceleration.md— Parallel dependency waves, persistent caches and selective activation without dropping gatesrelease-cards.md— Terminal release transitions as typed data, thin formatters and atomic incident journalproduct-release.md— Release unit versioning, immutable delivery and observable placementselective-publication.md— Publication intent, serving baselines and immutable compositionmanaged-application-runtime.md— Canonical release passport, component gates and bounded application-state projectionmanaged-deployment.md— One declaration, verified producer artifacts and exact supervisor bindingsproduction-runtime-manifest.md— Typed desired runtime state sealed into exact releasesruntime-generation.md— Per-generation environment/boot declarations, PM2/systemd verification and rollbackmigration-safety.md— Destructive migration verdictsstatic-site-release.md— Releasing prebuilt static sites with directory routes and node probesdesktop-release.md— Signing nested macOS binaries, notarization, Gatekeeper verification and update packagesartifact-channel.md— CLI and local MCP artifact distribution channels: publication lag gate, isolated publication and delivery probetask-result-publication.md— Immutable implementation identity, build evidence and publication journal resolver
package-boundaries.md— Separate APIs of one package and installation boundariesrelease-suite.md— Packer, manifests, integrity and the stages that publish DevKitrelease-library.md— Library publication primitive: tags, packages, proofs, signer and the shared stagesconsumer-adoption.md— Suite updater and transactional rollbackpublication.md— History-free source snapshots, license notices, dist-only npm packaging and signed installspublication-readiness.md— Separating reusable source bytes from private evidence and history reviewCONSUMER_BREAKING_CHANGES.md— Version-to-version consumer migration guide2026-08-14-consumer-agnostic-devkit.md— Architectural decision on the ownership boundary between DevKit and consumers
Contributing · Security · AGENTS.md · CLAUDE.md · MIT License · Third-Party Notices






