Skip to content
codetiller
  • Loading the index…
  • 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.

One task, from issue to pull requestT-41IMPORTED
›intakeacme/shop#412 Rate-limit the export endpoint
·preflightabout 6 files, 2 concepts, no blocking questions
·run 1claude-sonnet-5-5, network: gateway only
·verify138 passed, 0 removed, typecheck ok, lint ok
·draft pr#58 opened as a draft, verdict attached
·reviewapproved and merged by a maintainer

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 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.

  1. 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-41IMPORTED

    acme/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 run
  2. 02

    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.yaml

    02/06preflightT-41QUEUED
    Files the work touchesabout 6 of 10
    Domain concepts2 of 3
    Blocking questionsnone
    Proposed splitnot needed

    within limits: the run starts

  3. 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-41RUNNING

    agent container · network tiller-agents

    ✓Model gatewayreachable
    ✕Internetno route
    ✕GitHub token, model keyabsent
    Budget, counted by the gateway$0.42 of $5.00

    TILLER: DONEAdded a limiter to the export route, with tests.

  4. 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-41RUNNING

    clean export · fresh container · network none

    Passing at the base commit137
    ✓Passing now138
    ✓Failed0
    ✓Removed or skipped0
    ✓Type check, lintok

    verified: the branch may be pushed

  5. 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_OPEN

    Draftacme/shop #58

    Rate-limit the export endpoint

    tiller/41 → main · Closes #412

    ✓Verification138 tests, checks ok
    Changed check filesnone
    Second reader1 note
  6. 06

    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-41COMPLETED

    maintainer, 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

$tiller audit

agent container

okegress_httpsno route to the internet
okegress_ipno route to the internet by IP
okdnsno outside DNS (exfiltration channel)
okhost_apicannot reach the factory API on the host
okmodel_apimodel API reachable (HTTP 200)
okmodel_keyagent holds no model key
okgateway_proxygateway refuses to proxy other hosts
okgateway_modelgateway forwards only the model of the run
okgateway_adminan agent cannot open a run or raise a budget
okdocker_socketabsent
oksecret_envno token or secret in the environment
okuidnot root
Output of 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.
The agent's changesrc/export/export.test.ts
describe('export', () => {
it('rejects a request over the limit', async () => {
const res = await exportRows({ rows: LIMIT + 1 })
expect(res.status).toBe(429)
})
it.skip('rejects a request over the limit', () => {})
})
The factory's verdict
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 gate prints 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.

candidate vs baselinererun noise
  • tasks solved+9 pp *counts
  • cost per solved task−18 % *counts
  • duration per run−3 %within noise
−300+30
Illustration, not a measurement: a paired comparison of two configs.

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>

Full guide: install on a Linux server

No 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.

$tiller doctor
okdocker29.1.3
okgitgit version 2.47.1
oksandbox imagecodetiller/base:dev (3f9a1c2b7d04)
okworkspaces/var/lib/tiller: the same files for tiller and a container, written by both
okdatabaseschema version 1
okdisk212.4 GB free in /var/lib/tiller
okmodel keyANTHROPIC_API_KEY is set
okforge tokenTILLER_GITHUB_TOKEN is set
okrepo acme/shopreadable, role allows a push, CI readable

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.