Route of one change
All layers Structure in black, one change in green, decisions in red.
- IsolationEach change gets its own git worktree, so parallel agents do not share a checkout.
- Change controlEach pull request goes through CI and review.
- Least privilegeOps monitoring is read-only by default.
- EscalationOnly real decisions go up to the Main Captain, which sends them to me.
- Cost controlCloud machines run only for a narrow web QA exception or a task I approve.
- Captain
- An AI agent that directs a crew of threads.
- Crew
- The threads a Captain starts, one per change.
- Capy Dock
- A systemd user service on the VPS that links about 19 repository folders for the agents.
- PStack
- The engineering skills and review rules the agents follow.
I run my AI agent work on one self-managed Linux VPS. The machine runs a Main Captain, a Project Captain for each product repository, and a VPS Ops Captain. Each Captain directs a crew of threads. The Main Captain routes work and sends decisions to me.
I give each product repository a Project Captain. It owns that repository's issues, starts one crew thread per change, and follows each pull request through CI and review. It takes only real decisions up to the Main Captain.
Capy Dock runs as a systemd user service and links about 19 repository folders on the VPS. Agents read and change local code in those folders. Recurring work runs on systemd user timers instead of cloud automations. An upstream repository sync timer is one example. The timer starts the sync on the VPS, so no cloud machine is needed.
Web QA uses two browsers. The Orca embedded browser lets me watch an agent click through a live site as it works. Headless Playwright records evidence from the test runs.
I route models by task difficulty across Claude and Codex subscriptions. A small edit and a hard debugging task do not use the same model.
Engineering conventions live in PStack skills and review rules.
What this taught me
Agents need the same basic controls as any other system: isolated workspaces, clear triggers, and scoped evidence from web QA runs. Read-only monitoring by default keeps the VPS Ops Captain separate from changes. I would keep these controls in any agent setup I build.