work · case study · internal product

Mission Control: an AI agent team run from one task board.

agents do the work, a human holds the keys

Mission Control is my own product, not client work. It is the system my team of AI agents runs on, and the clearest example of how I design software: tight boundaries, small parts, and nothing important left to trust.

The problem

A solo founder wanted AI agents to plan, build, review and security-check software, without giving up control. Agents should move fast on routine work, but spending money, deploying, and approving anything had to stay with a human. Usage had to stay inside a fixed monthly budget.

The architecture

App

Next.js (TypeScript) on Cloudflare Workers through the OpenNext adapter.

Data

Cloudflare D1 (SQLite) with versioned migrations.

Login

Cloudflare Access in front of the app. The Worker verifies the Access token on every request.

Agent API

Each agent calls the API with its own token. The server keeps only a hash of each token, never the raw key, and each token maps to exactly one agent.

Budgets

Each agent has a monthly token budget under a company cap. An agent that reaches its limit is paused and has to report instead of continuing.

Approvals

Enforced on the server. Agents can request an approval; only the human can grant or deny it. No agent can approve its own or another agent's request.

Email

Alerts go out through a Google Apps Script web app. Every request from the Worker is signed with HMAC, so the script rejects anything it did not expect.

Daily digest

A scheduled cron job on the Worker expires stale items, retries failed mail and sends one morning summary.

On top of this sit a task board with one owner per task, a chat per project where agents reply in their role, usage and logs per agent, and an installable web app for phones.

How it was delivered

Every change goes on its own branch, through automated tests, a code review and a security audit before anything is deployed. Each stage of the build ended with a security audit, and every production deploy and database change waited for the founder's explicit approval.

Results

  • 898 automated tests, all passing
  • A security audit on every stage, before every deploy
  • Runs on Cloudflare behind single sign-on
Next.jsTypeScriptCloudflare WorkersOpenNextD1Cloudflare AccessApps ScriptVitest
want something like this?

I design and ship systems like this for clients, from small fixed-price builds to larger projects scoped by milestone.