- Open source
- Apache-2.0
- Self-hosted on Docker or Kubernetes
CI/CD for work done by coding agents.
codetiller takes a task from your tracker, runs a coding agent in a sandbox that holds none of your credentials, verifies the result in a fresh container and opens a draft pull request. People decide what runs and what merges.
Works with
- Claude Code
- GitHub
- Docker
- Kubernetes
- JS / TS
- Go
- Python
01The problem
An agent on a laptop has your keys, your network and your tests.
That is fine for one engineer watching one agent. It does not hold for a team that hands agents real tickets. codetiller treats the agent as an untrusted worker and puts plain, deterministic code around it.
Agent on its own
With codetiller
Agent on its ownIt runs where your tokens and SSH keys are.
With codetillerThe sandbox holds no credential. The model key stays in a gateway, the GitHub token with the factory.
Agent on its ownIt can reach anything your machine can reach.
With codetillerOne route out: the model API, through the gateway. Dependency installs read the package registries and nothing else.
Agent on its ownThe tests pass, because the agent changed the tests.
With codetillerA test that passed before and no longer runs fails verification. Changed test config and CI files are named in the verdict.
Agent on its ownIt says it is done. You find out in review.
With codetillerThe full suite runs on a clean export in a fresh, offline container before anything is pushed.
Agent on its ownSpend is whatever the agent decided to do.
With codetillerEach run has one model and one budget, enforced in the gateway and not by the agent.
Agent on its ownA new prompt or skill “feels better”.
With codetillerA change to how agents work is measured on a benchmark, against the noise of rerunning the same thing.
02How it works
A task moves through six stations. The agent is one of them.
Everything around the agent is plain code: checkout, verification, the pull request. A task outlives its runs, so questions, answers and review feedback stay with it.
01
A task comes in
An issue that carries your label becomes a task; so does one you create by hand. Importing never starts work: only a human queues a run.
State: IMPORTED
01/06intakeT-41IMPORTEDacme/shop · issue #412
Rate-limit the export endpoint
Exports over 10 000 rows should answer 429 with a Retry-After header.
tiller↓ imported once, by its label
T-41waiting for a human to queue a run02
Preflight sizes it up
Before the first run, a read-only agent estimates the files and concepts the work touches and lists blocking questions. Too large or unclear stops and asks you; a big task comes with a proposed split.
Limits per repository:
.factory/factory.yaml02/06preflightT-41QUEUEDFiles the work touchesabout 6 of 10Domain concepts2 of 3Blocking questionsnoneProposed splitnot neededwithin limits: the run starts
03
The agent works in a sandbox
An ephemeral container on a network with no route out, a workspace that survives between runs, one model and one budget. The agent ends a run with a summary, or with questions for a human.
State: RUNNING, then REVIEW or WAITING_FOR_HUMAN
03/06run 1T-41RUNNINGagent container · network tiller-agents
✓Model gatewayreachable✕Internetno route✕GitHub token, model keyabsentBudget, counted by the gateway$0.42 of $5.00TILLER: DONEAdded a limiter to the export route, with tests.
04
The factory verifies
The commit is exported clean into a fresh, offline container and the full suite runs. Only tests that passed at the base commit count, and one that stopped running counts as a failure. Type check and lint run on the same export.
Nothing is pushed before this passes
04/06verificationT-41RUNNINGclean export · fresh container · network none
Passing at the base commit137✓Passing now138✓Failed0✓Removed or skipped0✓Type check, lintokverified: the branch may be pushed
05
A draft pull request opens
With the factory's own token, never the agent's. The pull request carries the verdict, the changed files that decide how the work is checked and, when you enable it, the notes of a second, read-only reader.
State: PR_OPEN
05/06pull requestT-41PR_OPENDraftacme/shop #58
Rate-limit the export endpoint
tiller/41 → main · Closes #412
✓Verification138 tests, checks okChanged check filesnoneSecond reader1 note06
You review, the agent resumes
Comment
/tiller …on the pull request and the agent picks up its session with your text. The factory verifies again and pushes to the same pull request. Merging stays with you.Merged → COMPLETED, closed → CANCELLED
06/06reviewT-41COMPLETEDmaintainer, on the pull request
/tiller use the shared limiter in lib/limits instead of a new one
👀 picked up
codetiller
Run 2 is verified and pushed to this pull request: 139 tests passed.
↓ merged by the maintainer
03Trust boundary
The agent is untrusted. The boundary is measured, not assumed.
tiller audit runs probes inside the agent, install and verification containers, exactly as the factory configures them, and reports each fact. Run it on every host: container networking differs between them.
Who can reach what
- agentmodel gatewaymodel API
allowedone model, one budget; the gateway adds the key
- agentinternet
no routenot by name, not by IP, no outside DNS
- installregistry proxyregistries
read-onlyan install runs code the agent chose: it may read, never publish
- agentGitHub, your secrets
nothing to usethe factory pushes and opens pull requests, from outside the sandbox
agent container
tiller audit, agent container (shortened)No credential in the sandbox
The agent's API key is the name of its run: random, worth nothing outside the gateway.
Budget enforced outside the agent
The gateway counts spend from the model API's answers and refuses further calls once the budget is spent.
The cluster is not taken on trust
On Kubernetes, every sandbox pod first proves it cannot reach the cluster API. Only then does it run the command.
04Verification
Deleting the test does not pass the test.
Verification compares against the task's base commit. What an agent might do to get a green run is what it looks for.
- Removed or skipped tests fail
- A test that passed at base and no longer runs is a failure, named in the verdict. Only a human can accept a removal.
- Changed checks are called out
- Test config, CI workflows, package scripts, lint and type config are listed in the verdict and on the pull request. When the suite reads a file the change touched, it runs a second time with that file as it was.
- More than the tests
- The repository's type check, lint and build run offline on the same clean export. What CI would be the first to say is said before anything is pushed.
- A second reader, if you want one
- A read-only agent reads the diff against the task and reports what tests cannot say. Advisory, never a gate: it is an agent reading agent-written code.
- tests
- 137 passed, 0 failed
- removed
- 1 test that passed at the base commit no longer runsexport.test.ts › export › rejects a request over the limit
- pushed
- nothing
- next
- back to the agent, with what failed
05Evals
Know whether a change to your agents helped.
Skills, prompts and models change how agents work. codetiller runs them on a benchmark of real tasks from a repository and compares the results paired, task by task.
- 01
A difference counts only when it holds across tasks and exceeds rerun noise: what the same two configs give when they do not differ.
- 02
tiller gateprints the verdict and its evidence as markdown, for the pull request of a skill or config change. - 03
Every run writes a manifest: commits, config hash, model, image, prompt and skill hashes. A run can be rebuilt and compared later.
- tasks solved+9 pp *counts
- cost per solved task−18 % *counts
- duration per run−3 %within noise
06Install
One Linux machine with Docker. Or a namespace in your cluster.
The install script does everything through Docker and puts nothing else on the host. The factory, its database and every workspace live in one working directory.
git clone https://github.com/TT-Labs/codetiller && cd codetiller
deploy/install.sh # builds the images, starts the factory, runs tiller doctor
# put ANTHROPIC_API_KEY and TILLER_GITHUB_TOKEN into /var/lib/tiller/.env, then:
docker compose -f deploy/compose.yaml restart
docker compose -f deploy/compose.yaml exec tiller tiller doctor
docker compose -f deploy/compose.yaml exec tiller tiller repo add <owner/name># after building and pushing the two images (see the guide):
kubectl apply -f deploy/kubernetes/namespace.yaml
kubectl -n tiller create secret generic tiller-secrets \
--from-literal=ANTHROPIC_API_KEY=... --from-literal=TILLER_GITHUB_TOKEN=... \
--from-literal=TILLER_GATEWAY_ADMIN_TOKEN="$(openssl rand -hex 32)"
kubectl apply -k deploy/kubernetes
kubectl -n tiller exec deploy/tiller -- tiller doctor
kubectl -n tiller exec deploy/tiller -- tiller auditgit clone https://github.com/TT-Labs/codetiller && cd codetiller
pnpm install && pnpm build # keys go into .env in the clone
pnpm tiller setup # builds the sandbox image, runs tiller doctor
pnpm tiller repo add <owner/name>
pnpm tiller ui # the dashboard and the workerNo published images yet: the install builds them from the clone.
Then ask the installation whether it is ready
tiller doctor measures what a task needs: the runtime answers, a container sees a workspace where the factory put it, credentials are set, each repository is reachable. It makes no model call.
ready
07Open source
Free, open, and yours to run.
codetiller is licensed under Apache-2.0. There is no hosted service, no account and no licence key: you clone it, run it on your machines and bring your own model key.
Read what you run
The factory holds your GitHub token and your model key. The gateway that guards them is one file without dependencies; the whole boundary is there to be read and audited.
Nothing leaves but model calls
No telemetry and no control plane somewhere else. Model usage is billed by your provider, on your key, capped per run.
Built in the open
Issues, the roadmap and what is not built yet are public. Agents, work sources and stacks that are missing are the places to contribute.
08Status
What works today, and what does not yet.
codetiller is young. The core path is tested end to end; the second list is what a team should know before adopting it.
Works today
- A task from issue to draft pull request, with Claude Code
- GitHub: issue intake, review comments, following the repository's CI
- JS/TS, Go and Python repositories, onboarded with one command
- Docker on Linux, and Kubernetes on one node
- Benchmarks, paired comparison and the eval gate
- Dashboard: tasks, timelines, transcripts, diffs, metrics
Not built yet
- Sign-in and roles: access is by one API token
- A GitHub App identity: a personal token today
- Other agents: Codex, OpenCode, local models
- Published images and a Helm chart
- Runs spread over several cluster nodes
- Services for tests (databases), private registries, JVM
- Skills shared across an organization
09Questions
Asked before installing
Which agents does it run?
Claude Code today. The agent sits behind an adapter and transcripts are stored in a harness-neutral form, so others can follow; Codex and local models are planned, not built.
Where does my code go?
Nowhere new. The factory runs on your machine or in your cluster. Code reaches the model API through the gateway, as it does when an engineer uses the agent, and no other host.
What does it need from GitHub?
A token that can read issues, push branches and open pull requests on the repositories you add, plus read access to checks if the factory should follow CI. tiller doctor says what is missing, per repository.
Does it merge anything?
No. It opens draft pull requests. Queuing a run and merging are human actions.
What does a run cost in model usage?
What the model API charges, capped by the budget of the run. The gateway does the counting, and the Metrics page shows cost per delivered task.
Can it run on a shared server?
Give it a machine of its own. On Docker, the factory's container holds the Docker socket, which is root on that host; the factory is trusted, and nothing it starts gets the socket.
How is it licensed?
Apache-2.0. The source is on GitHub; you run it yourself and pay only your model provider.
Start with one repository.
Install, add a repository, queue the first task. tiller doctor tells you when the installation is ready.