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: 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)
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" (or "master" / "staging" on adopted repos)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 under <home>/decisions/. When a non-Operator changes a Safety key, it writes a pending proposal under <home>/proposals/config-*.json until an Operator approves it.

KeyKindDefault or constraintSafetyDescription
schemanumber1 (1..1, read-only via t12 config set)NoFile layout schema version.
roles.default.harnesschoiceT12_HARNESS or "agy" (agy, omp, claude)NoDefault agent harness for all roles.
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 Strategist reroutes findings.
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).

autonomy.level resolution

Preferences.ResolveAutonomy(override) (internal/project/autonomy.go) lets T12_AUTONOMY (injected by t12 ui from <home>/access/mode.json) 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
T12_ENV_FILE~/.config/t12/envt12, t12-ui, t12-adapter, t12-container, t12-bench gradeOverrides the host environment file path.
T12_HOME~/t12/homet12, t12-uiOverrides the default v2 state home when --home is omitted (~ expanded).
T12_ROOT/var/lib/t12 / ~/t12docker-compose.yml, bootstrap-cages.shShared host/container root for home/, cache/, and repos.
T12_OSV_CACHE~/t12/cache/osvredteam, setup.sh, bootstrap-cages.shOffline OSV vulnerability database dir (~/.cache/t12/osv fallback).
T12_ADMIN_SOCKET<home>/admin.sockt12-uiOverrides Unix socket path for --status, --drain, --shutdown.
T12_TIMED_LOCK/tmp/t12-timed-run.lockinternal/runnerOverrides machine-wide flock file serializing timed unit runs.

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) are managed by the factory and should not be set manually.

Stripped variables (sandbox.IsForbiddenEnvKey)

Next steps

On this page