Install turbo-12f
Set up the pinned toolchain, Docker cages, the Neon database, credentials file, and factory binaries on macOS or Linux.
Install turbo-12f, compile the factory binaries, point them at a Neon database, and verify your AI coding harness.
Clone the checkout
Fetch the repository and enter the root folder.
Run setup.sh
Install pinned tools, Docker cages, and factory binaries.
Connect the database
Put your Neon connection string in DATABASE_URL.
Verify your harness
Sign in to agy or omp and confirm it replies ready.
Prerequisites
- macOS (26 or later): Install Xcode Command Line Tools when prompted, plus Colima with
dockerCLI (auto, orT12_CONTAINER_ENGINE=colimaandT12_COLIMA_PROFILE=t12) or Docker Desktop (no Homebrew needed). - Linux (
x86_64orarm64): Havegit,curl, and a reachable Docker daemon (sudo systemctl enable --now dockerandsudo usermod -aG docker "$USER", then re-login). - Database: A Neon Postgres project. The factory keeps all of its state there and has no local mode.
- Access: GitHub access to the
cone-labs/turbo-12frepository.
Install the factory
Clone the repository
Clone the repository with the GitHub CLI and change into the checkout directory. setup.sh also works from a checkout you cloned another way.
gh repo clone cone-labs/turbo-12f
cd turbo-12fRun the setup script
Run scripts/setup.sh from the repository root. The script is safe to rerun if it pauses for an interactive prompt (Xcode tools, gh auth login, or browser sign-in).
scripts/setup.shExpected output
When setup finishes, it prints:
Done. The factory is in <DIR> (branch <BRANCH>), binaries in bin.If a unit test failed, setup still prints Done. after warning some unit tests failed, then exits with status 1.
- Pinned runtimes (
mise): Installsmiseinto~/.local/binand pins Go1.27.4, Node26.13.1, Bun1.4.5,gh2.103.2,agy1.5.13, andomp19.1.0. - GitHub auth & env file: Signs into
ghif needed, sets git auth, and creates~/.config/t12/env(0600) withT12_SANDBOX_ADAPTER=dockerand commentedDATABASE_URLandT12_PROJECT_ENV_KEYlines; it warns whenDATABASE_URLis still unset. - Docker cages: Starts a
t12Colima VM on macOS if needed, buildst12-web-blog:2, and pulls pinned runtime and scanner images (DEBIAN_MIRRORoverridesdeb.debian.org). - Offline vulnerability cache: Downloads the npm OSV database to
~/t12/cache/osv/osv-scalibr/npm/all.zipso security scans work offline. - Factory build & tests: Builds the
t12 uiweb bundle, compiles every factory binary intobin/, and runs the fast Go unit tests.
Setup does not touch the database. It checks the harness named by T12_HARNESS (agy when unset) and stops with instructions when that harness is not signed in yet.
Connect the Neon database
Create a Neon project and copy its pooled connection string (the host name contains -pooler). Add it to ~/.config/t12/env together with a master key that seals saved connections and project variables:
openssl rand -base64 32DATABASE_URL=postgres://<user>:<password>@<endpoint>-pooler.<region>.aws.neon.tech/neondb?sslmode=require
T12_PROJECT_ENV_KEY=<the base64 value printed above>t12 ui and every t12 command that reads or writes state stop at startup with DATABASE_URL is not set when the variable is missing. The first start applies the schema, so you can also create it explicitly:
bin/t12 db migrateDatabase ready
t12 db migrate prints db: applied migrations [...]; schema is at version N the first time and db: schema is current (version N) afterwards. bin/t12 db status prints db: schema version X of N, where X is the version it found and N the latest.
Keep the key safe and the databases apart
Losing T12_PROJECT_ENV_KEY makes every stored connection and project variable unreadable. Give staging and production factories separate databases, never one shared string.
Older versions kept state in ~/t12/home. Load that folder into the database once, then treat the folder as disposable scratch (worktrees, caches, and cages):
bin/t12 db import --home ~/t12/home --dry-run
bin/t12 db import --home ~/t12/homeThe dry run reads and verifies the folder and writes nothing.
Choose and verify an AI harness
The two supported connections are agy and omp. Pick one and sign in on the host; the t12 command line uses that sign-in. In t12 ui each person connects their own agy or omp under Connections instead (see Host and share the web app).
Every new project records its active harness and model in .t12/preferences.json, and you can switch later with t12 config set (key roles.default.harness). An Operator can also pick the factory-wide agent in t12 ui.
agy with gemini-4-neon and medium reasoning is used automatically when T12_HARNESS, T12_MODEL, and T12_THINKING are unset.
- Run
agyonce in a terminal, complete the Google sign-in in your browser, and exitagy. - Optionally pin the defaults in
~/.config/t12/env:
T12_HARNESS=agy
T12_MODEL=gemini-4-neon
T12_THINKING=medium- Verify the harness responds with
ready:
agy --model gemini-4-neon --effort medium -p "Reply with the single word: ready"Claude Code is retired in the web app
t12 ui offers only agy and omp, and a saved claude setting runs through omp on the same Anthropic model. The command line still accepts T12_HARNESS=claude with an absolute CLAUDE_CONFIG_DIR in ~/.config/t12/env; t12 does not expand ~ or $HOME there.
Host tuning and optional settings
Intel Mac users
Add T12_UNIT_LIMIT_S=30 to ~/.config/t12/env. Starting npm and vitest inside Colima on Intel Macs takes 5–9 s against the default 10 s unit limit.
t12 and t12-ui exit at startup if ~/.config/t12/env has permissions wider than 0600. Shell environment variables always override file values, and agent sessions never see this file.
- Context7 docs lookup: Set
CONTEXT7_API_KEYto give planning and review agents authenticated library docs access. - Email sign-in links: Set
T12_SMTP_*keys as shown in Host and share the web app. - Sign in with GitHub: Set
T12_GITHUB_CLIENT_IDandT12_GITHUB_CLIENT_SECRETas shown in Host and share the web app. - Scratch folder: Set
T12_HOMEto move worktrees and caches away from~/t12/home. It holds nothing the database does not.