abudzar.work

Running AI agent crews on one self-managed VPS

Each change runs in its own git worktree and goes through CI and review. Ops monitoring is read-only by default. Cloud machines run only for a task I approve.

Route of one change

Inspect a layer

All layers Structure in black, one change in green, decisions in red.

Schematic of one self-managed Linux VPS: the Main Captain sends decisions to me; under it sit a Project Captain for each product repository and a VPS Ops Captain with read-only monitoring by default. One change moves from repository issues to a crew thread, its own git worktree, a pull request, then CI and review. Only real decisions go up from the Project Captain to the Main Captain.ONE SELF-MANAGED LINUX VPSMain Captainroutes workProject Captainfor each product repositoryVPS Ops Captainread-only monitoring by defaultRepository issuesthe Project Captainowns themCrew threadone per changeOwn git worktreeno sharedcheckoutPull requestthe Project Captainfollows itCI and reviewmesends decisionsonly real decisions Schematic of one self-managed Linux VPS: the Main Captain sends decisions to me; under it sit a Project Captain for each product repository and a VPS Ops Captain with read-only monitoring by default. One change moves from repository issues to a crew thread, its own git worktree, a pull request, then CI and review. Only real decisions go up from the Project Captain to the Main Captain.ONE SELF-MANAGED LINUX VPSMain Captainroutes workProjectCaptainfor each productrepositoryVPS OpsCaptainread-onlymonitoringby defaultRepository issuesthe Project Captainowns themCrew threadone per changeOwn git worktreeno shared checkoutPull requestthe Project Captainfollows itCI and reviewmesends decisionsonly realdecisions
  • 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.

ServiceCapy DockA systemd user service that links about 19 repository folders
Recurring worksystemd user timersOne example: an upstream repository sync timer
Web QATwo browsersOrca embedded browser: watch liveHeadless Playwright: recorded evidence

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.