Skip to Content
turbo-12f
Reference

Configuration reference

Schemas for .t12/config.json and .t12/preferences.json, fixed rules, env file format, and environment variables.

Reference

Project repo (`.t12/`)

  • .t12/config.json: The project's config: stack, commands, globs, and branch names (project.Parse rejects unknown keys).
  • .t12/preferences.json: Autonomy, budgets, slots, and merge policy (updated via t12 config set).
  • .t12/project.json: The profile, with the rules every task of the project shares (profile.Parse, checked by t12 profile-check). It is not the project's config.

Local host (`~/.config/t12/env`)

  • Host credentials & tuning: DATABASE_URL, harness choice, Docker engine, SMTP, and API tokens.
  • Strict permissions: Must be mode 0600 (envfile.Load exits otherwise). Process env vars override file values.
# Minimal ~/.config/t12/env (chmod 600)
DATABASE_URL=postgres://user:password@ep-example-pooler.region.aws.neon.tech/neondb
T12_HARNESS=agy
T12_MODEL=gemini-4-neon
T12_THINKING=medium
T12_SANDBOX_ADAPTER=docker

.t12/config.json

A repo written before the rename keeps .t12/product.json, which is still read when .t12/config.json is absent.

KeyKindReqDefault or constraintSafetyDescription
schemanumberNo1 (1..1)NoFile layout schema version.
nameslugYes^[a-z0-9][a-z0-9-]*$NoProject slug name.
typechoiceYesweb-blog or web-appNoProject type selecting the default catalogue.
stacktextYesNon-empty stringNoSummary of the project technology stack.
repositorytextNoowner/repo slug (^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$)NoConnected GitHub repository for adopted/linked projects.
cage_imagetextNoNon-empty (golang:1.27, t12-web-blog:2, or project.Detect stack image)NoDocker image for caged commands and installs.
branches.stagingtextNo"staging" (or "t12-staging" on adopted repos)NoBranch where verified lanes merge first.
branches.maintextNo"main" (on an adopted repo: its current branch, else main or master)NoRelease branch merged only after human sign-off.
delivery.targetchoiceNo"cloudflare-workers"NoDeployment target identifier.
commands.installcommandYesNon-empty argv listNoInstalls dependencies (runs with network access).
commands.buildcommandYesNon-empty argv listNoBuilds the project.
commands.lintcommandYesNon-empty argv listNoRuns static lint checks.
commands.typecheckcommandYesNon-empty argv listNoRuns static type checks.
commands.unitcommandYesNon-empty argv listNoRuns the full unit test suite.
commands.unit_filescommandYesArgv list containing {files} onceNoRuns named unit test files.
commands.mutatecommandNoArgv list containing {mutate} onceNoRuns changed-line mutation tests (reports/mutation/mutation.json).
commands.e2ecommandNoNon-empty argv listNoRuns browser E2E scenarios (reports/e2e/results.json).
commands.servecommandNoNon-empty argv listNoStarts project against a fresh local DB in cage.
serve_urltextNoNon-empty stringNoURL where commands.serve listens (expects /healthz).
commands.deploy_dry_runcommandYesNon-empty argv listNoBuilds the deployable artifact and stops before upload.
globs.testpathsYesNon-empty list of valid globsNoGlobs identifying test files.
globs.sourcepathsYesNon-empty list of valid globsNoGlobs identifying project source files.
deslop.exclude_pathspathsNoNon-empty list of valid globsYesPaths omitted from Deslop checks (Operator approval required).

commands.* must be argv arrays, never shell strings; project.CheckCommand blocks shell metacharacters in argv[0] and flags like --dangerously-skip-permissions, --no-sandbox, and --bypass-sandbox.

project.Detect picks node:26-bookworm, oven/bun:1, golang:1.24-bookworm, python:3.12-slim, or rust:1-bookworm, while StackTags tags effect (effect/@effect/*), cloudflare-workers, typescript, javascript, nodejs, go, python, and rust.

.t12/preferences.json

Safety-group preference approvals

t12 config set updates .t12/preferences.json on staging and records a decision in the decisions table. When a non-Operator changes a Safety key, it stores a pending proposal document until an Operator approves it.

KeyKindDefault or constraintSafetyDescription
schemanumber1 (1..1, read-only via t12 config set)NoFile layout schema version.
flowchoice"team" (team, classic)NoThe steps each part runs. team: Tech Lead plans, Developer builds, QA runs the tests, the screens and one review, DevOps runs the merge policy, merge and deploy dry run. classic: Analyzer, Engineer, QC, UI check, Deslop, Red team, Code review, merge policy, merge, deploy dry run, SRE. A conversation keeps the flow it started with; one whose parts ran before flows existed keeps classic.
roles.default.harnesschoiceT12_HARNESS or "agy" (agy, omp, claude)NoDefault agent harness for all roles. t12 ui offers only agy and omp; a saved claude choice runs through omp on an anthropic/ model.
roles.default.modeltextT12_MODEL (or "gemini-4-neon" for agy)NoDefault model identifier for all roles.
roles.default.thinkingchoiceT12_THINKING or "medium" (agy: low..xhigh, claude: low..max, omp: off..max)NoDefault reasoning effort ("default" resets to harness default).
roles.<group>.harnesschoiceUnset (inherits roles.default)NoPer-group harness override (review, judge, explorer, observer).
roles.<group>.modeltextUnset (inherits roles.default)NoPer-group model override (review, judge, explorer, observer).
roles.<group>.thinkingchoiceUnset ("default" or harness levels)NoPer-group reasoning effort override (review, judge, explorer, observer).
budgets.retry_tokens_per_tasknumber2 (0..5)YesPooled retry tokens per task when a blocking finding sends a lane back to the Analyzer step (the Strategist agent decides only in the classic flow).
budgets.fix_attempts_per_lanenumber3 (1..5)YesMechanical fix attempts given to Engineer within one lane.
budgets.diff_cap_linesnumber800 (T12_DIFF_CAP_LINES, 0..10000)NoMax added source lines per candidate before splitting (0 disables).
budgets.wait_hoursnumber0 (-1..720; 0 is 24 hours, -1 never)NoHours a conversation may wait on a person before it is paused (stops costing resources until someone acts).

autonomy.level resolution

Preferences.ResolveAutonomy(override) (internal/project/autonomy.go) lets T12_AUTONOMY (injected by t12 ui from the approval-mode document) override .t12/preferences.json, computing budgets as max(configured, levelFloor).

LevelFixAttempts floorRetryTokens floorStepRetriesAnswerQuestionsPartsWaitMatchesWait
review0 (configured)0 (configured)00truetrue (even if policy is "auto")
default0 (configured)0 (configured)00falsemerge_policy.mode != "auto"
auto4321falsemerge_policy.mode != "auto"
turbo5543falsefalse (data-loss still waits)

Fixed rules (project.FixedRules)

~/.config/t12/env format

Strict 0600 permissions required

envfile.Load (internal/envfile/envfile.go) exits immediately if group or world permissions are set (chmod 600 required). A missing file is ignored without error.

  • Syntax: Skips blank lines and # comments, strips optional export , splits on the first =, and trims outer quotes.
  • Literal paths: Values never expand ~ or $HOME; pass full paths like /Users/<you>/.config/t12/claude.
  • Precedence: Existing process environment variables (os.LookupEnv) override file entries.

Environment variables

VariableDefaultUsed byDescription
DATABASE_URLRequiredt12, t12-ui, t12-cloud-worker, Vercel function, t12-container (host side)Pooled Neon postgres:// connection string. Without it a process stops with db.ErrNoDatabaseURL. Stripped from child processes; staging and production use separate databases.
T12_PROJECT_ENV_KEYEmptyinternal/projectenv, internal/connectionsBase64 (or 64 hex digits) of 32 random bytes. Seals project variables and each person's connections; never stored in the database.
T12_SHARED_CREDENTIALSOffinternal/connections, internal/ui, t12-cloud-worker1, true, yes, or on lets an Operator without own connections use the factory's own GitHub and agy/omp credentials. Everyone else connects their own.
T12_GITHUB_CLIENT_ID, T12_GITHUB_CLIENT_SECRETEmptyt12-ui, internal/connections, t12-cloud-workerThe GitHub App's pair. Both set turns on Sign in with GitHub and lets runs refresh people's GitHub tokens.
T12_GITHUB_OWNEREmptyt12-ui, t12-cloud-worker, cloud backendOwner for new repositories made on the factory's shared GitHub token. A person with their own GitHub always uses their own login.
T12_OPERATOR_EMAIL, T12_OPERATOR_PASSWORDEmptyVercel functionWhen the database has no Operator, creates or promotes this account with this password on the first request.
T12_UI_SUMMARY_STOREOnt12-uiSet off to stop storing ui-home-summary documents. They are only a cache, so deleting them is safe.
T12_DB_ENDPOINTEmptyinternal/db, testsSends SQL to another endpoint than the one DATABASE_URL's host serves: https, unix://, or http to loopback only. Tests use it for t12-neon-local.
T12_DB_BROKERUnsetinternal/dbUnix socket of the host's database broker. t12-container sets it inside the container; do not set it by hand.
T12_TEST_DATABASE_URLEmptyinternal/db/dbtestTest database (t12_test; the name must contain test). Database tests skip when it is unset; never reads DATABASE_URL.
T12_TEST_DB_SCHEMAUnsetinternal/dbScopes a child t12 to one test schema; set by dbtest, not by hand.
T12_TEST_PG_HOME, T12_TEST_PG_PORT, T12_TEST_SHIM_PORT~/.local/share/t12/pg, 54328, 54329scripts/test-db.shWhere the local test Postgres lives and the ports of Postgres and the t12-neon-local shim.

Internal runtime variables (T12_TASK_ID, T12_ROLE, T12_ROLE_KIND, T12_SESSION, T12_WORKTREE, T12_GUARD_POLICY, T12_CAGE_EXEC, T12_DOCS, T12_PROBE_SECRET, T12_UI_PROGRESS, T12_GH_TOKEN) and the worker workflow's T12_INPUT_* inputs are managed by the factory and should not be set manually.

Stripped variables (sandbox.IsForbiddenEnvKey)

Next steps

On this page