Why we run Tilt in manual mode for development with AI tools
TL;DR
Taproot is a complicated system with dozens of moving parts, and a tool called Tilt runs all of them on my laptop at once.
When I upgraded to a new MacBook, the whole thing was up and running in under fifteen minutes. At most companies I've worked for, a setup like this takes days or weeks.
Tilt used to rebuild everything every time a file changed, which kept my laptop running hot. Now it waits until a change is finished.
When the AI tool finishes a change, it rebuilds with one command, and if something breaks it's told exactly where to look.
Why I run the stack with Tilt and AI tooling
Taproot is a complex stack, and setting up a local development environment for it should be hard. With Tilt and the way we have AI tooling set up, I upgraded to a new MacBook and had the entire stack up and running locally in under fifteen minutes. At most of the jobs I've had, it would take days, if not weeks, to set up a similar stack. Developer experience is important, and AI + Tilt = MAGIC.
Manual mode fixed a different problem. With Tilt rebuilding on every save, my laptop was constantly churning, the MacBook was hot, and I didn't want my lap to be hot. I don't need to heat my house with my MacBook. I have a furnace for that.
I started using Tilt and Docker before I started using AI to write code. At first I had Tilt rebuild every time a file changed. That worked well when I was writing code myself. Having a C# API in watch mode felt magical.
AI tools edit differently. One change might touch a contract, its implementation, a regenerated client, and the frontend before the application can run again. With Tilt rebuilding on every save, the local cluster kept trying to build and deploy work the AI tool was still in the middle of.
So we turned automatic rebuilds off. Tilt still runs the whole Taproot stack in Docker and local Kubernetes, but nothing rebuilds until the change is ready and someone asks for it. When the AI tool finishes a change, it runs a rebuild script that waits for everything to settle.

Tilt's view of the local Taproot stack. Every resource has its own trigger button, and nothing rebuilds until someone presses one or runs the rebuild script.
What runs in our local dev environment
Taproot has an editor and admin app, a .NET API, a generator that builds published sites, and an image processor. Behind them sit PostgreSQL, file storage, and email. A feature like image upload crosses several of those pieces, so getting a file picker to appear in the browser proves very little. We need to see the upload, the processing, and the finished image work together.
Docker Compose (opens in a new tab) runs the supporting services: PostgreSQL, PgBouncer, Mailpit for email, and MinIO for file storage. The application services run in local Kubernetes through Docker Desktop (opens in a new tab). Counting helpers and setup jobs, Tilt is tracking 34 resources in the screenshot above, and starting and updating those by hand would be a job of its own. Tilt (opens in a new tab) puts them in one place, with status and logs for each.
The setup lives in the repository next to the code. When the application gains a dependency or its build changes, we review the environment change with the feature that needs it.
Local Kubernetes keeps us close to production
Production runs on DigitalOcean Kubernetes. Locally, the application services run in Kubernetes too, deployed from the same base manifests. Kustomize (opens in a new tab) overlays hold the differences: dev for Tilt (plus a scale-to-zero variant) and prod for DigitalOcean. When we change how a service is configured or how it talks to another service, that change runs locally before it reaches production.
We carry the awkward parts over too. The local stack serves HTTPS because secure cookies and some browser APIs depend on it. Our Tiltfile also has a scale-to-zero option that installs KEDA (opens in a new tab), the autoscaler production uses, so we can try scaling behavior locally.
It still isn't production. Local capacity is different, MinIO and Mailpit stand in for production file storage and email, and some compilation and code generation happen on the host machine. Containers narrow the differences between machines without removing every host dependency, and none of this replaces testing.
Why did rebuild-on-save stop working?
Tilt's default is to watch files and update the affected resources as soon as something changes. Between an AI tool's edits, though, the source tree is often inconsistent: the contract has changed, but the client hasn't been regenerated yet. Automatic rebuilds thrashed the local cluster with every one of those intermediate states.
Ignore rules help with part of this. We use them so test files and caches never trigger a build. An ignore rule can't tell a finished source change from a half-finished one, though, and the AI tool is the only one who knows when its change is complete. So the root Tiltfile puts every resource under manual update control (opens in a new tab):
trigger_mode(TRIGGER_MODE_MANUAL)Tilt still notices edits and marks resources as pending in its UI. It just doesn't act on them until something triggers a rebuild.
That puts a responsibility on whoever checks the work. Saving a file doesn't update the running app, so a feature has to be rebuilt before anyone looks at it in a browser. Otherwise you can end up inspecting yesterday's behavior while looking at today's source code.
The AI tool rebuilds with one command
When a change set is ready, the AI tool runs a script from the repository:
devenv/tilt-rebuild.sh # everything with pending changes
devenv/tilt-rebuild.sh taproot-www # just the named resource
devenv/tilt-rebuild.sh --all # every resourceThe script confirms Tilt is running, reads each resource's state with tilt get uiresources, and triggers the pending ones with tilt trigger. Then it keeps checking, because a build that generates files can leave another resource pending. It stops after two quiet checks in a row. If anything ends in an error, it exits non-zero and prints the tilt logs command for that resource, so the AI tool knows where to look.
The rules for using it live in our AGENTS.md, which every AI tool on the project reads. If you want to try this, these lines are the part worth copying:
1. Before anything needing the live stack, run `tilt get session`. If Tilt is
down, ask the user to run `tilt up`; never start a second one or
`kubectl apply` / `docker build` around it.
2. When a change set is ready, run `devenv/tilt-rebuild.sh` (everything pending),
`devenv/tilt-rebuild.sh taproot-www` (named), or `--all`; until then the
cluster serves the previous build.
3. Acceptance happens in the user's real Chrome: agent-embedded browsers do not
reliably resolve or trust `*.test` hosts. Hand the user a checklist.After the rebuild, the AI tool hands me a checklist and I test the feature in my own Chrome, because the browsers built into AI tools don't reliably resolve or trust our local .test hosts.
When several AI tools work at once
Each extra AI tool session gets its own git worktree. They can change code in parallel, but they never touch the main checkout or Tilt. Only the session in the main checkout rebuilds the stack, and when a milestone's branch is finished, I review it in Tilt from the main checkout before the pull request opens. Without that rule, one AI tool could rebuild the app while another was halfway through checking it.
It also fits our move to a monorepo: a change that spans the API and the frontend lands in one branch, and Tilt runs that branch as one system.
What it costs
Docker Desktop and local Kubernetes take a real share of the machine, and images take time to build. In the screenshot, rebuilding taproot-www took about 41 seconds, which adds up fast when every intermediate save sets one off.
Watching the wrong files causes its own trouble. A build that writes into its own watched files marks itself pending again every time it succeeds. Our design system's build does this today (it writes a generated icon file into its own watched source folder), so the rebuild script recognizes the pattern and reports it as settled instead of looping until it times out.
The configuration also needs upkeep as the application changes. For a smaller application, Docker Compose and a few documented commands may be enough. Tilt starts paying for itself when coordinating the pieces eats time you wanted to spend on the product.
For another part of that workflow, read how we generate Taproot's clients from a shared contract. It follows one API operation from its definition to the browser code that calls it.