Skip to Content
turbo-12f
Reference

CLI reference

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

Reference

factory/cmd/ builds twelve binaries. Four (t12, t12-ui, t12-adapter, t12-container) load ~/.config/t12/env at startup via envfile.Load(envfile.Path()), and t12-bench grade loads it on demand.

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.

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

factory/bin/t12 repo init --name bakery-blog
factory/bin/t12 ask --project-dir ~/t12/bakery-blog "I want a blog for my bakery"
factory/bin/t12 confirm --conversation <id> --acceptor Lan --name bakery-blog
factory/bin/t12 run --conversation <id>
factory/bin/t12 watch --conversation <id>
factory/bin/t12 release signoff --conversation <id> --by Lan
factory/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.

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), and the home registry is projects.json. The first open of an older home renames them; see Layout migration.
  • 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, --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, --by observer, --releaseRuns the orchestrator pipeline (T12_AUTONOMY aware) and records outcomes; --release runs release checks only.

Binaries

BinaryRoleNetwork boundaryLoads envfile
t12Main CLI for v2 requests and legacy v1 runsLinks no net/http (TestTheCoreAndTheCageProgramsLinkNoNetworkCode); spawns git, docker, harnesses (agy, omp, claude), subprocess adapters (ghcli, ghissue, ghrepo, fbreport), 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-benchFactoryBench grader (grade, tokens, summarize) for hidden checks and pass@k/pass^k statsOffline (links no net/http; executes checks via served.App)grade only
t12-cageLinux Landlock + PID/user namespace wrapper (internal/cage)Offline (links no net/http); Landlock denies TCP unless --network is passedNo
t12-containerWraps bin/t12 inside read-only --network none Docker containerOffline (links no net/http; --network none)Yes
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 driver with optional factorybench emitLinks 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 CLIOffline (links no net/http); runs git, gh, t12, t12-runner, t12-adapterNo

Legacy v1 commands

Legacy v1 pipeline

These commands drive the older per-task runs/<task-id>.json flow (model.Version = 8) slated for removal at cutover G1. Direct new work to the v2 commands above.

Next steps

On this page