How I run an engineering team where every person works through coding agents on their own remote server. Below are the decisions that made it work and the mistakes behind most of them.
The short version
- Every person gets their own remote server, and their agents live there.
- I have one too. My agent sets up the other servers and fixes them when something breaks.
- Access goes one way: my agent can log in to a developer's server, and they can't log in to mine.
- Everyone signs in with their own accounts: AI subscription, code hosting, Telegram bot. Nothing of mine is stored on their server.
- Every grant is written down together with the way to revoke it, so offboarding means working through that list.
- Agents message each other through a small bus, and people can read and join those threads.
- Developers ship to production themselves, and only a short list of things comes to me.
Why a server per person
The agents keep going after you close your laptop. Long tasks, test runs and reviews finish overnight.
All the servers are set up the same way: same OS, runtimes, browsers and scripts. If I fix something on one, I fix it on all of them.
When someone gets stuck, my agent logs in, looks around, fixes the setup and writes down what it did. Usually that's faster than a call.
Each server has a fixed address, so the dev and production hosts can allow-list one address per person. Secrets also stay off laptops, which get lost and stolen.
Start with a mid-size cloud server and add swap. Builds, browser tests and a few agents at once use a lot of memory. When a server runs out, it kills processes at random, and the agent loses its work with no useful error.
T3 Code as the main workspace
Our default agentic development environment is T3 Code. It runs as a service on every server, and the desktop and phone apps reach it through a relay. You don't need a VPN, SSH or an open port.
We ended up mobile-first almost by accident. From my phone I start tasks, answer an agent's questions, read diffs, look at previews and approve releases, and all the heavy work stays on the server. I open the laptop for long, focused sessions.
It also lets people who don't write code use the same setup. Our content person has never used SSH. They open the app and their agents work on their own server.
Developers who prefer a terminal still use SSH. I'd suggest mosh with tmux, so a bad connection doesn't kill the session.
Setting up a new server
My agent does this on the first login, from the same checklist every time:
- Update the system.
- Lock down SSH: keys only, password login off. Test a new login before closing the old session. Then make sure nothing turns password login back on, because some cloud images do that at first boot.
- Create a normal work user with sudo and run the agents as that user. Some agent tools refuse their autonomous mode as root, browsers need unsafe flags as root, and a personal user is easy to remove later.
- Install the team's toolchain, the coding agent, T3 Code and a headless browser. Agents need a real browser to check their own UI work.
- Run the agent server as a service so it survives logouts and reboots.
- Make sure environment variables load in non-interactive shells. That's what agents use. A token that only loads in an interactive shell is invisible to them, and it takes a while to work out why.
- Run a smoke test: build one repo, take a headless screenshot of the dev site, send a test message to Telegram.
After that the person signs in with their own AI account, and their agent works through an onboarding file.
The workspace pack
Each new person gets a folder that their agent reads first. I keep the master copy and push updates from it. It holds:
- a map file with the repos, rules, commands and standards;
- a decision-rights file that says what this person decides alone and what comes to me;
- an onboarding checklist for the agent's first day;
- a few docs: architecture, releasing, testing, posting updates;
- a few scripts for notifications, screenshots and database work;
- the repos they work on, cloned next to the docs.
Credentials, server addresses, tokens and personal notes stay out of it, and so does anything about repos outside their scope.
Their copy will drift from the master over time, because their agent corrects its own rules as it learns. Compare the two before overwriting anything.
Access
Access grows in steps, and I decide each one. A typical order:
- Their own server.
- The repos they work on, with write access to the dev branch.
- The dev environment: deploys and the dev database.
- Read-only access to production data.
- Production deploys.
- Production config, data fixes and logs.
I keep a grants log for each person, with one line per grant: date, system, scope, and how to revoke it. At the bottom there's a "not granted" line, so "can they do X?" takes one look to answer. Start the log with the first server.
For production, a developer gets a key that can run a fixed set of commands: status, deploy, roll back, read logs, change a config value. That's enough to release on their own, and it still gives them no shell and no way to read the secrets. Every config change gets validated before it reaches the live service.
Database access goes through limited roles: read-only by default, with a query timeout and a connection limit. When someone needs write access, every write gets logged.
Two things to check along the way. Before giving root on a box, look at where that box's keys lead, because root there also means root on every host those keys open. And on hosts that run containers, watch user IDs: a new user can end up with the same ID as the containers, and then stopping "that user's processes" stops the containers too.
My server and the agent's memory
My agent works across every repo, so my server needs the most order.
Code checkouts sit in one place. Docs, scripts, reports and the agent's memory sit in another. The docs folder is the knowledge base: rules, the release playbook, architecture, the backlog, a changelog and a note per feature. Files stay short, and ideas get their own file so the backlog only holds real work.
The agent's memory is one fact per file, with an index that loads into every session. Each rule says why it exists and how to apply it. Docs and memory are mirrored to a private git repo, which gives me a backup and a history of how the rules changed.
Every two weeks the agent cleans up its memory. It reads the recent conversations, deletes what's wrong or out of date, merges duplicates and moves what it learned into the docs. Without that, memory goes stale fast: paths move, access changes, and old rules keep getting applied.
Git worktrees
Two agents in the same checkout will break each other's work. We once found one agent's edit inside another agent's commit. These are the rules we use now:
- One worktree per feature branch, all in one known folder.
- Shared branches are never checked out in a worktree. A commit hook blocks it.
- Worktrees get removed after the merge. With dependencies installed, each one is large.
- The main checkout goes back to its default branch at the end of a session.
- Deploys run from the default branch only.
A weekly cleanup job removes merged worktrees and lists the rest.
A few traps we hit. A stale local checkout made agents rebuild a feature that already existed, so fetch before deciding something is missing. Shared dependencies break when a branch adds new ones; install properly in one worktree and share that. A local production build can pick up env files that point at production, so point local tests at dev on purpose. And background agents can die with the parent session, so long-running agents should commit after every small step.
Server resources
CPU and memory are the first limits you hit.
Keep heavy agents (installs, test suites, builds) to a few at a time. Light ones, like reading code or taking screenshots, can run in larger numbers. Watch the load and cut back when it climbs. Run one heavy process at a time: we once started a batch of verification agents in parallel, each with its own install, tests and build. The server froze, the agent server crashed, and every result was lost.
Worktree sessions sometimes leave dev servers running for days, so look for them and kill them. Give each sub-agent its own scratch folder too. When two agents write the same temp file, it looks like tampering, but it's only a name clash. Heavy test suites can go to throwaway cloud machines; I wrote about that in Cloud machines for agents.
I use the strongest model to plan and check, and a cheaper one to write the code. I write the spec, the cheaper model builds it, and I review the result. Anything an agent says about production, I check myself. A sub-agent once told me a setting wasn't on production. It was, and acting on that would have shown real users a wrong number.
Developers need the same habits. Someone running dozens of sub-agents with hundreds of skills loaded will hit the session limit before lunch. A few rules help: a cap on agents at once, one ticket per agent, a small set of skills, the strongest model only in the main thread, and a weekly cleanup of the server.
How the agents talk to each other
Agents on different servers and different AI accounts can't see each other, so they share one mailbox.
The bus is a small serverless app with private storage. It does three things: send a message, list the inbox, and mark a message as read. Each agent has its own key, and the key identifies the sender, so nobody can pretend to be someone else. Messages have a type: ask, task, fyi, reply or decision.
The protocol is short. One topic per message, a few lines, full links. A message stays in the inbox until the reader marks it as read. The receiving agent treats a message as a request and decides what to do with it. Secrets, tokens and infrastructure details never go on the bus, because the bus keeps messages and people read them. I broke this once by sending a dev access link. When the other agent asked for it again, I refused and reported my own mistake.
A scheduled job checks the inbox every minute. An empty inbox costs nothing because no model runs. When a message arrives, a headless agent starts and answers while the person is away. It sorts every message into one of three groups:
- No reply needed, like an fyi or a closed thread: mark it read.
- Can be answered from facts, by reading code, git or a pull request without changing anything: check, reply, mark it read. It doesn't answer from memory alone.
- Needs the person, like a decision, a change, production or a secret: reply "queued", add one line to the person's work queue, mark it read.
After a run the inbox is empty, and an alert fires if a message waits too long.
People join through a web chat behind a team login, and the agent replies in the same thread. One thing that catches people out: a bus message addressed to a person goes to that person's agent.
Telegram
Most of my conversation with my agent happens in Telegram. I have a private channel where it posts when it finishes something: what changed, the links to check, a screenshot if there's something to see, and what it needs from me, if anything. When it needs a yes or no, the post has buttons. I tap one on my phone and the work continues.
So I rarely keep a terminal open just to see what's happening. I read the channel like a chat and open T3 Code when I want to step in.
We split channels by audience:
- a private channel between you and your agent, for finished work, questions and cleanup lists, written like a conversation (once it reads like a log dump, nobody reads it);
- a team channel for uptime and incidents only, without a daily "all green" post;
- a release-notes channel for production changes, in one fixed format.
A release note looks like this:
🔥 [hotfix] · 🟢 low risk · @releaser
One line: what changed, in plain words.
1–3 short sentences: the effect for users, and what you already tested.
🧪 QA: required — <what to test> (5 min · 🖥 desktop + 📱 mobile) · TICKET-501
For the QA line, the agent scores the change from 0 to 10. Money, sign-in and balances weigh the most, followed by how many users see the change and how much it was already tested. A high score means manual QA with a ticket and a short test plan. A low score means no manual QA, plus a few words on why. The agent has to pick one.
pencil.md
Reports, specs, reviews and plans are too long for a Telegram post. For those we use pencil.md. The agent writes Markdown, publishes it with one API call and gets a link back. The link goes into Telegram, a ticket or a bus message, it reads fine on a phone, and the same token lets you edit the page later. This article started there as a draft.
Environments and releases
Make dev and production easy to tell apart from the link alone. A different top-level domain works well.
Keep dev releasable at all times. If a release ships the whole dev branch, everything on dev goes out with it, so unfinished work stays on its own branch or sits behind a flag from day one.
An agent releases only when a person says "release it" for that specific work. Dev merges and dev deploys need no permission.
"Release-ready" means one thing for us: merged to dev, deployed to dev, checked on dev, ticket and roadmap updated, release pull request open.
Every change has a ticket, and the ticket is the log. The developer's agent tests before dev and on dev, then writes the evidence into the ticket: where it tested, how, what it checked, the result with screenshots, and what it didn't check. Without that evidence, the change doesn't ship.
CI runs the tests on merges to shared branches. Running them on every commit got slow and expensive. The production branch requires them, slow suites are split into shards, and someone keeps an eye on the bill, since CI providers round every job up.
After every production deploy, a short smoke test runs before the announcement. It goes through the key flows with a test account and checks the error tracker for anything new.
The dev site is private, and its gate should refuse visitors without access. Our first version redirected them to the same page on production. An agent without access could run a "dev" test against production and never notice.
Who decides what
Developers decide almost everything themselves. The rest reaches me in a single message.
Developers decide copy, product and design choices, what goes into a release and when, tickets, the dev environment, CI setup, the tools on their server, and production config and data fixes within their access.
What comes to me:
- Money logic, as a yes or no.
- A production write outside the developer's access.
- Legal text.
- Spend.
- Access only I can grant.
- A production incident.
Two rules make this work. First, sensitive code is defined as a list of folders. A pull request comes to me only when it touches a file in one of them, and the request is one short message with the task list and the logic of each sensitive change. Second, the releaser owns the batch. Whether to split it, in which order to ship and on which day are their calls.
When an agent sends me nine "decisions", it's handing the work back to me. My standing instruction to agents is to decide by the written product rules, act, and tell the developer "decided: do X".
Monitoring
An event watcher looks for new errors, ticket comments, pull request comments, team chat messages and new error patterns in the logs. When there's nothing new, no model runs. It groups events into batches, runs one agent at a time and has an hourly cap. The agent either deals with it or sends me one Telegram message with OK, No and Mute buttons.
An uptime watchdog checks production around the clock. Each incident is one message, updated in place, plus one more when everything recovers. Before we had that rule, a single outage could fill the channel.
Alert when checks stop running, too. A test robot that skips half its checks can still report "OK", so we count the checks that didn't run and alert on that number.
The roadmap page
The ticket tracker has too much detail for planning, so we keep a separate page: one row per person, a time axis, one bar per batch of work. An item counts as released once it's checked on production; a merge isn't enough. Each person has three items at most, and new work waits in a backlog lane until someone has room.
Worth doing from the start
- Two-factor login for the whole code-hosting org and the hosting team, before the first invite.
- Branch protection on dev as well as production.
- Tokens in files only their owner can read.
- Gates that block access when they fail.
- The grants log, from the first server.
- The decision-rights file, written before the first release.
Hand it to your agent
Point your coding agent at this page, or at this site's MCP server (https://bulgakov.xyz/mcp, tool get_util, slug team-dev-servers). Ask it to set up each new team server from one checklist, keep a grants log with revoke steps, give production access as a fixed set of actions, and follow the worktree rules.


