Skip to Content
turbo-12f
Reference

CLI reference

Every binary under cmd/, exit codes, signal handling, v2 t12 subcommands (including t12 db), and legacy v1 commands.

Reference

cmd/ builds thirteen binaries. Four (t12, t12-ui, t12-adapter, t12-container) load ~/.config/t12/env at startup via envfile.Load(envfile.Path()).

Every t12 command except profile-check needs DATABASE_URL (the Neon database): without it the command stops with db.ErrNoDatabaseURL. t12 db reads it itself. Records live in the database, so --home DIR is only the scratch root for worktrees and caches.

Every v2 verb defaults --home DIR to $T12_HOME or ~/t12/home, except t12 repo auth, t12 config check|explain, and t12 eval run (no --home), while t12 eval seams|capture require --home. On t12 db, only import reads --home; t12 try sweep takes it but does not use it.

Intake

Ask & confirm

Start a conversation (t12 ask), connect repos (t12 repo), and lock specs (t12 confirm).

Build

Run & approve

Execute lanes (t12 run), stream progress (t12 watch), and approve policy stops (t12 approve).

Ship

Release & preview

Verify gates (t12 release), merge to main, and serve locally (t12 preview).

Operate

UI, config & SRE

Host the web app (t12 ui), manage users (t12 access), and monitor URLs (t12 sre).

Common commands

export DATABASE_URL=postgres://...   # the pooled Neon connection string
bin/t12 db status
bin/t12 repo init --name bakery-blog
bin/t12 ask --project-dir ~/t12/bakery-blog "I want a blog for my bakery"
bin/t12 confirm --conversation <id> --acceptor Lan --name bakery-blog
bin/t12 run --conversation <id>
bin/t12 watch --conversation <id>
bin/t12 release signoff --conversation <id> --by Lan
bin/t12 release merge --conversation <id> --by Lan

Exit codes, signals, and dual v1/v2 dispatch

  • Exit codes: 0 = success; 1 = failure, blocking gate/lock, or failed verification (errFailed); 2 = bad usage (errUsage).
  • Signals (SIGINT / SIGTERM): Stops tracked child process groups (SIGTERM, 2s, SIGKILL) and exits 128 + signal (preview removes its container; t12-ui drains HTTP for 5s).
  • Conversation aliases: Every v2 conversation verb accepts --conversation ID with --request ID as a legacy alias, and t12 request aliases t12 conversation.
  • Dual dispatch: t12 status --task-id <id> and t12 report without --conversation/--request route to v1 (flag.FlagSet / set.Visit); pass --conversation <id> for v2.
  • Home guard: Every home command refuses to run if the t12 binary sits inside --home.
  • Database: t12 opens DATABASE_URL and applies pending migrations before a command runs, so t12 db migrate is only needed to migrate on its own.

Renamed flags and paths

  • Flags: --product-dir is now --project-dir, t12-cc --product is now --project, and t12-wizard --product-repo is now --project-repo. The old spellings are no longer accepted.
  • Paths: The repo config is .t12/config.json (the old .t12/product.json is still read). The project registry is the projects table; t12 db import also reads an older home's projects.json or products.json.
  • Not the profile: .t12/project.json is the profile that t12 profile-check validates. It is a different file from .t12/config.json.

v2 conversation commands

CommandKey flagsPurpose
t12 ask--home, --project-dir | --repo | --draft, --type, --issue, --image, --conversation, --answer, --resumeStarts or continues a repo-backed Context creator conversation with up to 5 images (5 MiB) or 5 (1..20) GitHub issues.
t12 confirm--conversation ID, --acceptor NAME, --name SLUG, --project-dir, --githubChecks start gate and toolchain, scaffolds or verifies an adopted repo, runs Project Gate, and commits OpenSpec on staging.
t12 run--conversation ID, --skip-review, --answer TEXT, --lane L, --sprint N, --by observer, --releaseRuns the conversation's flow (team by default, or classic; it prints flow: <name> (<steps>) and records it) with T12_AUTONOMY applied, and records outcomes; --release runs release checks only.

Binaries

BinaryRoleNetwork boundaryLoads envfile
t12Main CLI for v2 requests and legacy v1 runsLinks no net/http outside internal/db (TestTheCoreAndTheCageProgramsLinkNoNetworkCodeButTheDatabaseClient); reaches Neon over its HTTPS SQL API; spawns git, docker, harnesses (agy, omp, claude), subprocess adapters (ghcli, ghissue, ghrepo), t12-ui, t12-adapterYes
t12-uiWeb server (internal/ui) serving SPA, API, SSE, Observer, SMTPImports net/http and net/smtp; binds 127.0.0.1:8790 by defaultYes
t12-adapterHost adapter for forges, issues, trunk jobs, skills, Context7, SREImports net/http; holds host tokens and makes outbound HTTP callsYes
t12-cageLinux Landlock + PID/user namespace wrapper (internal/cage)Network code is the database client only; Landlock denies TCP unless --network is passedNo
t12-containerWraps bin/t12 inside read-only --network none Docker containerNetwork code is the database client only; the container reaches the database through a unix-socket broker (T12_DB_BROKER) the host runs, so DATABASE_URL stays outsideYes
t12-cloud-workerGitHub Actions worker that runs one cloud action per job (ask, answer, issues, init-project, connect, confirm, run, poll-decisions, progress-report, release-merge, try-publish, config-set, config-decide)Reads and writes the same database as the Vercel function; links net/httpNo
t12-neon-localTest-only shim that answers Neon's POST /sql over a local PostgreSQLListens on loopback; reached only through T12_DB_ENDPOINT; never used in productionNo
t12-jobLegacy v1 trunk runner (cubic, sentry, sonarqube)Links net/http transitively via internal/adapters/common; delegates HTTP calls to t12-adapterNo
t12-mutateStandalone Go mutation testing and test-pruning toolOffline (links no net/http)No
t12-queueLegacy v1 task queue dispatcher launching sibling t12Links net/http transitively via internal/adapters/common; launches lanes via sibling t12No
t12-runnerLegacy v1 inner-loop driverLinks net/http transitively via internal/adapters/common and internal/skills; spawns harnesses and t12-adapterNo
t12-ccLegacy v1 standalone Context creator CLILinks net/http transitively via internal/adapters/common and internal/skills; spawns omp sessionsNo
t12-wizardLegacy v1 guided workspace CLILinks net/http only through the database client; runs git, gh, t12, t12-runner, t12-adapterNo

Legacy v1 commands

Legacy v1 pipeline

These commands drive the older per-task run record (runs table, model.Version = 8) slated for removal at cutover G1. Direct new work to the v2 commands above.

Next steps

On this page