Skip to content
← All work

My studio's platform and HQ

Fronesis

The platform behind my one-person software studio. HQ runs seven AI agent teams in parallel off one task board, with WhatsApp sends and git pushes waiting for my approval. Every app ships through the same container pipeline, with secrets kept off disk.

  • TypeScript
  • Claude Code
  • Docker
  • OpenBao
Fronesis HQ: the owner and a SQLite task board feed seven AI teams working in parallel; outward actions go through hq propose and wait for the owner's approval. A self-restarting runner and the Ops hub's read-only API sit underneath.
AI teams on one task board
7AI teams on one task board
of 270 tasks done (28 Nov 2026)
252of 270 tasks done (28 Nov 2026)
HQ commits in the first month
326HQ commits in the first month
apps on one deploy path
4apps on one deploy path

Why I built it

Fronesis is my one-person software studio. The work around the code (finding and researching clients, drafting outreach, marketing, operations) needs people. HQ hands that work to AI agents organised like a team with a manager, each with a narrow role, rather than one chat window doing everything.

The business side is early, with its first clients. This page is about the engineering.

What it does

  • HQ runs seven teams (Chief, Sales, Research, Marketing, Dev, Dev 2 and Ops) in parallel off one task board, from a CLI and a web dashboard.
  • Teams hand work to each other with hq add and ask each other questions with hq ask, both through the board.
  • Anything outward-facing, such as a WhatsApp message or a git push, goes through hq propose and waits for my approval.
  • Ops is a private CRM and billing hub that HQ reads for context (for example GET /today).
  • The platform builds, ships and runs every app, including this portfolio, the same way.

How it works

HQ

HQ is a TypeScript CLI and dashboard on Node 24, about 38,000 lines, with the task board in SQLite. Every task is a headless Claude Code session started with its team's persona, tool permissions, model and budget. Each team has its own permission switches and role, and spend is capped per month and per run in US dollars and in turns.

A team that wants to send a WhatsApp message or push code files a proposal with hq propose, and the action waits for my approval.

The runner is a macOS LaunchAgent. It can restart itself, waits for running tasks to finish before it does, and if an update fails its 60-second health check it rolls back to the previous version.

Ops

Ops is a private Hono and SQLite hub for clients, leads and billing. HQ reads it through a read-only API: each team gets its own scoped token, and the API allows 60 requests a minute.

The platform

Every app (fronesis.id, Ops, HQ and this portfolio) is a Docker image. On a push to main, GitHub Actions tests and builds it, pushes it to Docker Hub and writes the new tag into a compose-collections repo. Komodo deploys the stacks from that repo on one VPS. Caddy, through caddy-docker-proxy labels, routes traffic to each container, and dockroute creates the Cloudflare DNS records automatically. Email goes out through Resend.

How every app ships. Build, on every push to main: GitHub Actions lints, typechecks, tests and builds the Docker image; Docker Hub stores it tagged with the commit; the compose-collections repo holds every app's compose file; Komodo pulls and deploys the stack on the VPS. On the VPS: Cloudflare DNS records created automatically by dockroute, Caddy routing by container label through caddy-docker-proxy, the app container, and a bao-agent sidecar that logs in with the app's AppRole and injects secrets at runtime. Secrets path: OpenBao is reachable only over Tailscale; each app has its own KV v2 path, AppRole and read-only policy. Komodo holds only the AppRole IDs, and secrets never touch disk on the VPS.

Secrets live in OpenBao, which is reachable only over Tailscale. Each app has its own KV v2 path, its own AppRole and a read-only policy. A bao-agent sidecar next to each app logs in with that AppRole and injects the secrets at runtime, so Komodo only ever holds AppRole IDs and the secret values never touch the VPS's disk.

Why this stack

SQLite and Hono keep each service a single process with a single file of state, which one person can run and back up. Claude Code already has the tool permission model HQ needs, so each team is a configuration of personas, permissions, models and budgets on top of it. On the platform side, one image-per-app pipeline means a new app costs a compose file and a few labels, not a new deploy process.

The hard part

Letting agents work unattended without letting them act on the world unattended. The answer is layered: per-team permissions and budgets limit what a session can do, the board makes every handoff and question visible, and the approval gate puts a person in front of messages and pushes. The runner has to be just as careful with itself, since a bad HQ update would stop all seven teams; that's why it waits for running tasks and rolls back on a failed health check.

Results

As of 28 November 2026, the teams have run 270 tasks and finished 252 of them. HQ reached 326 commits in its first month. Four apps ship through the same pipeline, and no app's secrets are stored in Komodo or on the server's disk.

What I'd do differently

  • One VPS runs everything. It is cheap and simple, and it is also a single point of failure. A second host is the next step.
  • The board is a single SQLite file on one Mac. That suits one owner; more people would need a shared database.