> LOCAL-FIRST GOVERNANCE KERNEL

Turn AI-assisted work into governed delivery.

A repo-owned ledger, human approval gates, and auditable evidence for every AI-assisted change — on Claude Code or Codex.

  • Repo-owned ledger
  • Human gates
  • Auditable reports

Six toolkits, one command install · Local-first: ledger and artifacts stay in your repo · Free core, MIT-licensed

sdtk — governed runFull demo
Real capture: run pauses at a human gate, artifacts land on disk
  1. IDEA
  2. SPEC
  3. DESIGN
  4. CODE
  5. SHIP
  6. REMEMBER

The SDLC chain your AI runs through — click any node to explore

SDTK Knowledge Graph

The full pipeline, five agents wiring 17 artifact templates together.

  1. PM - Product

    3 docs
    PROJECT_INITIATIONPRDBACKLOG
  2. BA - Business

    2 docs
    BA_SPECFLOW_ACTION_SPEC
  3. ARCH - Architect

    5 docs
    ARCH_DESIGNDATABASE_SPECDESIGN_LAYOUTAPI_ENDPOINTSAPI_DESIGN_DETAIL
  4. DEV - Dev Plan

    3 docs
    FEATURE_IMPL_PLANCODE_WORKFLOWREVIEW_PACKET
  5. QA - Testing

    4 docs
    TEST_CASESQA_RELEASE_REPORTCONTROLLER_ACCEPTANCERELEASE_NOTES
  1. CONTROL

    Orchestrator·Routes

  2. SPEC

    PM·Product

  3. SPEC

    BA·Business

  4. SPEC

    ARCH·Architect

  5. BRIDGE

    DEV·Spec · Code · Ops

  6. RELEASE

    QA·Testing

> ONE KERNEL. SIX TOOLKITS. YOUR RUNTIME.

A real SDLC chain, not a chat thread — with a ledger, gates, and evidence at every step.

One orchestrator classifies every request and routes it to the right toolkit — brainstorm, spec, design, build, or ship. The PM → BA → ARCH → DEV → QA pipeline is just one of the routes. Whatever the route, the kernel keeps the truth: workflow state, approvals, and evidence live as files in your repo. Claude Code and Codex are the runtimes — the governance is SDTK's.

> UNGOVERNED AI WORK DOESN'T COMPOUND

AI can generate all day. Can you audit any of it?

  • The agent did something — but there's no record of what ran, what was skipped, or why.
  • Your AI chat forgot the spec. Your repo forgot the decisions. Nothing connects.
  • Output lands as a wall of diffs with no evidence attached — review becomes "trust me".
  • Every session starts with re-explaining the project instead of continuing it.

> ONE FRONT DOOR. THE RIGHT WORKFLOW, AUTOMATICALLY.

You don't pick the workflow. Describe the work — the Orchestrator routes it.

The SDTK Orchestrator now classifies every request and sends it to the right pack — brainstorm, build, spec, or ship. No more forcing a quick bug fix through a full spec pipeline. The PM -> BA -> ARCH -> DEV -> QA chain is just one of the routes.

  • You type

    Analyze why the auth module is slow

    Brainstorm / discoveryClarify the problem before any code
  • You type

    Fix the login validation bug

    SDTK-CODEstart -> build -> verify -> ship
  • You type

    Design & spec the notification feature

    SDTK-SPECPM -> BA -> ARCH -> DEV -> QA
  • You type

    Deploy v2 to production

    SDTK-OPSplan -> deploy -> verify

> ARTIFACTS, NOT CHAT HISTORY

What you actually get — real files in your repo, not lost messages.

Every SDTK phase writes concrete artifacts to your project tree. Click a tab to see a real sample of what lands on disk.

Generated path

docs/product/PRD_ORDER_TRACKING.md

PM phase output: goals, scope, success metrics — written from the discovery brief.

Produced by SDTK-SPEC
PRD_ORDER_TRACKING.md
# PRD: Order Tracking

## Goal
Reduce "where is my order" support tickets by 40%
via customer self-serve tracking.

## Success metrics
- Tracking page p95 load < 500 ms
- 70%+ of tracking inquiries deflected from support
- Zero PII leak in tracking page

## Scope
- In: customer self-serve tracking page, status polling
- Out: carrier-side integration, refund flow

All artifacts live in your repo. None of this leaves your machine.

> FIVE PHASE TOOLKITS, EACH WITH A JOB

Each toolkit owns one phase of the lifecycle. Together, they cover idea to ship.

SDTK-SPEC

Live + MIT

Your PM, BA, Architect, and QA — as installable skills

Sample output

17-file scaffold + PM-QA gates

SDTK-DESIGN

Live + MIT

Static MVP prototype your code agent can hand off to

Sample output

docs/design + prototype + handoff

SDTK-CODE

Live + MIT

Governed coding + trust layer — guardrails, ship-readiness, and Sleep Readiness

Sample output

Verified PR + guardrails + sleep plan/report

SDTK-OPS

Live + MIT

Deploy with a runbook + smoke + sign-off in one flow

Sample output

Release runbook + smoke report

SDTK-WIKI

Live + MIT

Your project memory — so the next session doesn't start from zero

Sample output

wiki/ + graph + context pack

> BEYOND THE PIPELINE

Not every part of SDTK owns one phase.

SDTK-WIKI and SDTK-AGENT are always-on capabilities every other toolkit can call on. SDTK-BRAIN stands fully apart: a standalone second-brain vault tool that shares SDTK's viewer — and nothing else.

MemoryLive + MIT

SDTK-WIKI

Your project memory — so the next session doesn't start from zero

Every decision, spec, and lookup gets indexed into a local graph. Every other toolkit reads it so context survives between sessions.

OrchestrationLive + MIT

SDTK-AGENT

Durable multi-step agent workflows with human approval gates

The kernel's orchestration surface: chains multi-step runs into one file-backed ledger — pausable and resumable from any process, gated by human approval where it matters. Dispatches through pluggable adapters (manual, shell, sdtk-cli, and a Hermes Kanban dry-run planner); the kernel keeps the ledger and gates.

StandaloneLive + MIT

SDTK-BRAIN

Your personal second-brain vault — a separate tool, not a pipeline stage

A standalone local-first vault CLI: immutable raw/ sources compiled into a markdown wiki/ knowledge layer your agent reads and maintains. Not part of the sdtk-kit umbrella — install it on its own (npm i -g sdtk-brain-kit). No LLM, no network, no telemetry.

> TRUST & SAFETY

Not another agent runner — the governor that decides if it's safe to let one run.

Claude, Codex, and friends execute. SDTK is the local trust layer around them: deterministic capabilities that make it safe to let an AI build, verify, and ship — even while you sleep.

Guardrails

Trust at the action boundary

Classify every command allow / ask / deny, and lock edits to a declared file scope — before anything runs.

$ sdtk-code guardrails check --command "rm -rf ."

Observability

Trust through transparency

An explainable ship-readiness score (no fake readiness) plus a reconstructable trust trace of what happened and why.

$ sdtk-code readiness --feature-key ORDER_TRACKING

Memory

Trust in project context

A budgeted, source-linked context pack from your local wiki — reference, not a raw-prompt dump — so the agent starts grounded.

$ sdtk-wiki context --topic checkout

Governance kernel primitives

Shipped in sdtk-agent-kit — the same spine every workflow runs on

Run ledger

Every multi-step run lives at .sdtk/agent-runtime/runs/<run_id>/ — state, events, evidence, approvals, and reports on disk, not in a chat.

$ sdtk-agent run status --run-id <run_id>

Human gates

A human_gate stage blocks everything downstream until a person writes an approval decision — approved, rejected, or needs_changes.

$ sdtk-agent gate approve --run-id <run_id> --gate <gate_id> --approved-by <name>

Durable reports

run report renders the whole run — every task, gate decision, and evidence file — into one reviewable Markdown record.

$ sdtk-agent run report --run-id <run_id>

Benchmark discipline

The kernel ships against a gold benchmark (30/30 cases) that requires fail-closed observations — a suite that never says NO is invalid.

$ sdtk-agent workflow validate --file workflow.json

External runtimes plug in through an adapter contract. The shipped Hermes Kanban adapter is dry-run only — it compiles the exact card plan a live dispatch would create, never calls a gateway, and refuses mode:"live" (fail-closed). Live dispatch is roadmap, gated behind recovery verbs and independent review.

Sleep Readiness Governor

Can I sleep while the AI runs?

Before any agent runs overnight, SDTK assembles a bounded plan and grades it as a pre-flight dry run — executing nothing. It says NO first with the exact fixes needed, then YES once they're real.

NOT_READY30 / 85 — FAIL

Scope not declared — the agent could touch any file; scope_lock has nothing to enforce.

READY_TO_SLEEP75 / 85 — PASS

The plan is bounded, readiness is PASS, and test obligations are present.

$ sdtk-code sleep plan --feature-key CLIENT_EXPORT
$ sdtk-code sleep report --feature-key CLIENT_EXPORT

Dry-run only — writes plan + report, nothing executed. Free preview; real unattended execution is a future Pro capability.

Local-first, deterministic, zero-dependency. Trust artifacts stay local: .sdtk/trust/ and docs/trust/.

> QUICKSTART

From zero to scaffold in 90 seconds.

Runtime:
  1. 01

    Install

    npm install -g sdtk-kit

    Installs all six SDTK CLIs in one command

  2. 02

    Set up your runtime

    sdtk init --runtime claude

    One command sets up the suite: runtime skills for the toolkits that use them, plain init for the rest

  3. 03

    Scaffold your product's SDLC docs

    sdtk-spec generate --key SHOPEASE --name "ShopEase MVP"

    17 traceable SDLC files for your product or MVP (use a feature key for a single feature), ready for the /pm phase

Next → open Claude Code and run /orchestrator — just describe what you want, it classifies the request and runs the right workflow

Full install guide ->

FAQ

Answers before you install

Claude and Codex execute; they don't govern. They forget your project when the tab closes, and what they did survives only as chat history. SDTK puts a real SDLC chain (PM → BA → ARCH → DEV → QA), a file-backed ledger, human gates, and a local memory layer behind them — so every session starts grounded and everything the AI does leaves reviewable artifacts in your repo.

Built for engineers who need AI-assisted work they can audit — on Claude Code or Codex.

6 toolkits·17-file scaffold·5 phase gates·local-first ledger

> GOVERNED. AUDITABLE. RESUMABLE.

Stop trusting chat history. Give your AI-assisted work a ledger, gates, and evidence.