Hand a whole build to Claude Code. Come back to tested code.
TurkeyCode runs a whole build from one prompt while you are away. It drives the Claude Code you are already logged into through research, plan, build, test, fix and review. Plain code, not an AI, decides each next step, and every step must leave a valid file on disk or the run stops.
- You need: Node.js 20+ and Git, plus an agent CLI installed and logged in: Claude Code by default, or Codex CLI, Gemini CLI or OpenCode with
--agent. - You pay for: only your own agent usage (for example your Claude Pro or Max plan). TurkeyCode is free and MIT.
- What checks the work: separate QA agent sessions test each phase (web apps in a real browser via Playwright), code review runs before each merge, and plain code refuses to move on unless each step leaves a valid file on disk.
Start a build: npx turkeycode run plus a description of your app, in an empty folder.
npx turkeycode run "a todo app with user accounts"
- Settle the scope first. At a terminal it asks a few numbered scope questions; answer them. Or skip them: run
npx turkeycode scopefirst, or pass--specwith a spec file. - Then it runs on its own. No further input: it builds, tests, fixes and reviews without waiting for you.
Use Codex CLI, Gemini CLI or OpenCode? Add one flag: --agent codex, --agent gemini or --agent opencode. More
npx turkeycode run --agent codex "a todo app with user accounts"
What you need: Node.js 20+, Git and a logged-in agent CLI
On your machine
- Node.js 20 or later and Git
- An agent CLI, installed and logged in. Claude Code by default. Codex CLI, Gemini CLI or OpenCode also work via
--agent.
What you pay for: your agent usage only
- TurkeyCode itself: free, MIT licensed. No hosted service; it runs on your machine.
- Your agent usage. With a Claude Pro or Max login it uses your existing Claude CLI session, no API key. Those plans have usage limits, and a build uses them.
- Optional: deploying to your own DigitalOcean account (default droplet $6 a month, billed by DigitalOcean).
Quick start: one build
- Check you have Node.js 20+, Git and a logged-in agent CLI (Claude Code by default).
- Make an empty folder and go into it:
mkdir my-app && cd my-app - Start the build with
npx turkeycode runplus a description:npx turkeycode run "a todo app with user accounts" - Answer the scope questions, or skip them. At a terminal,
runfirst offers numbered options to pin down scope. Once you have picked, it builds with no further input and does not wait for you again. If nobody will be at the terminal, scope first or pass--spec(below).
npx turkeycode scope, which writes a spec without building, then run later with --spec pointing at that spec file. Passing --spec, or running with no terminal attached, skips the scope questions and the run is fully autonomous. A persona.md file lets scoping weigh options the way you would.
If no agent CLI is found, TurkeyCode prints its banner, runs preflight checks, and stops with exit code 1, telling you how to install Claude Code and log in. Do that, then run again.
While it runs
- Builds can take 30 to 60 minutes or more. A single phase build session is allowed up to 90 minutes.
- Claude Code sessions run with permissions skipped, so they never stop to wait for approval.
turkeycode statusshows where a build is. The log printsORCHESTRATION COMPLETEwhen it finishes.- Interrupted?
turkeycode resumecontinues from the last checkpoint. - The README recommends starting long builds detached and watching
build.log. Itssetsid nohupexample is for Linux;setsidis not on macOS.
What has checked the work when you come back
- Separate sessions, not the builder. Each agent session gets one scoped job: build one phase, run one QA tier, or fix all issues at once. The session that wrote the code is not the one that tests it.
- File gates. Every step must leave a specific file with valid content on disk. Missing or invalid means the run stops, not a warning.
- Pre-QA check. Installs missing prerequisites, starts Docker services, checks compilation and confirms the server starts.
- QA with zero blockers. A phase passes only with zero blockers, with up to 3 QA attempts per phase. Web QA drives the app with Playwright and Chromium, which the QA session installs itself.
- Code review, then merge. The plan has as many phases as the work needs. Each phase is merged only after QA and code review.
- Fixes and polish. Blockers are fixed in one session. Cosmetic warnings go to one polish pass at the end, which re-verifies the build and reverts any cleanup that breaks compilation or boot.
- Evidence on disk. Build state, QA reports, reviews and screenshots are kept in a
.turkeyfolder in your project.
It builds and detects Node, Python, Go, Ruby, Rust, PHP, static sites and Docker projects.
What runs on your machine
- TurkeyCode writes no code itself. It launches your agent CLI in print mode, one scoped job per session.
- Claude Code runs with
--dangerously-skip-permissions. Use a folder and machine where you accept that. - It removes
ANTHROPIC_API_KEYfrom the agent's environment by default, so your subscription login is used. To use an API key instead, also setTURKEYCODE_USE_API_KEY=1. - On the Claude backend, build and blocker-fix sessions are pinned to
claude-fable-5; other phases use opus, sonnet or haiku tiers. - Git: it creates a repository with a
mainbranch if there is none. With no remote it skips PRs and merges phases locally;--no-pushkeeps everything local.
Not on Claude Code? Switch with one flag
npx turkeycode run --agent codex "a todo app with user accounts"
Built-in backends: claude (default), codex, gemini, opencode. Each must be installed and logged in. Other print-mode agent CLIs can be added in ~/.turkeycode/agents.yaml without code changes.
Install
You don't need to install: npx turkeycode run works on its own. To install globally:
npm install -g turkeycode
Then run it as turkeycode or turkey. As a non-root user with npm's default global folder, this can fail with a permissions error (EACCES). In that case use npx.
After the build
turkey deployships a web app to a droplet in your own DigitalOcean account. TurkeyCode has no hosting of its own. First build withnpx turkeycode run "<description>". To build with nobody answering, runnpx turkeycode scopefirst or pass--spec; otherwiserunasks scope questions at the terminal. Then deploy.turkey deliverpushes non-web projects to your GitHub with release binaries, usingghauth.- With Jira environment variables set,
run-ticketbuilds an existing ticket andstoryfiles and runs a new one. - The repository includes Claude Code skills for running and monitoring builds and for scoping in chat. They come from the repo, not the npm package.
What TurkeyCode is not
- Not a hosted app builder. There is no website where you describe an app and it goes live. You need a CLI, Node, Git and your own logged-in agent.
- Not an editor plugin or autocomplete. It does not pair with you as you type. It runs whole builds in the terminal while you are away.
- Not a coding model. It orchestrates an agent you already have.