agentctl in My Pocket

November 17, 2026

As I write this, my laptop has 34 Claude Code agents running across seven tmux sessions. A Terraform agent is planning a change for a client, a couple of Go engineers are working through agentctl tickets, a reviewer is reading a PR, and my primary agent is keeping track of all of them.

Until yesterday, all of that stopped when I got up from my desk.

Now it doesn't. My phone buzzes with "go-engineer blocked", I tap the notification, read the permission prompt, hit Yes, and the agent gets back to work. I can do that from the couch, the kitchen, or the passenger seat on the way to the grocery store.

The fleet waits for you

If you run agents, you know the problem. Agents don't work for an hour and hand you a finished thing. They work for four minutes and then ask whether they can run terraform plan. Or they finish, open a PR, and sit idle until somebody gives them the next job.

agentctl was already good at showing me who needed attention. The status bar, the window glyphs and the hub all exist so I can see at a glance which agents are blocked. But all of that assumed I was looking at my laptop. If I walked away for an hour, I came back to a row of agents that had been blocked for 55 minutes.

Not a cloud sandbox: my actual laptop

There are plenty of ways to run a coding agent from your phone now. Most of them start a fresh agent in a container somewhere else. That's fine for a quick fix in a public repo, but it isn't my setup.

My setup is the laptop. It has:

The phone app doesn't move any of that. It moves me. Every agent I see on my phone is the same Claude Code process in the same tmux window I'd see if I sat back down, with the same config and the same context. When I dispatch a new job from my phone, it launches on the laptop exactly as if I'd typed agentctl dispatch at my desk.

That's what makes it feel so different.

What it does

It's a web app that I've added to my iPhone's Home Screen, so it opens full screen like any other app. It does five things:

  1. Shows the fleet. Every agentctl session and every agent in it, grouped by project and sorted by what needs me: blocked first, then working, done and idle. Dispatched workers nest under the agent that started them. It updates live.
  2. Pushes when something needs me. A real iOS notification when an agent blocks, when one finishes (with or without a PR), and a reminder if one has been blocked for ten minutes. Quiet hours keep it from buzzing at 2am.
  3. Unblocks agents. When an agent is sitting on a permission dialog, the app shows the dialog text and a button for each option. I can also reply to an idle agent, interrupt a runaway one, or close a finished window.
  4. Starts work. Pick an agent, a project, and optionally a backend, model and effort level, type a prompt, and it's dispatched to the laptop.
  5. Gives me a real terminal. Tap "Live terminal" and I'm inside the agent's tmux window with a key bar for Esc, Tab, ^C and the arrows. It's the real thing, not a picture of it.

That last one is the escape hatch. Anything I'd normally do at my desk, I can do from the terminal. It's not pleasant on a phone screen, but it means nothing is out of reach.

How it works

It's all one new command, agentctl serve, which runs as a launchd agent on the laptop. The web app is embedded in the Go binary. There's no npm and no build step. It's plain HTML, CSS and JavaScript modules, with xterm.js vendored in for the terminal.

The plumbing reuses what agentctl already had:

I did start down the native road first. There was a design for a native iOS app and an experimental macOS companion app. A web app served from the binary turned out to do everything I wanted with a fraction of the moving parts, so the native design never got built and the Mac app got deleted.

Being careful about it

A web page that can approve shell commands on my laptop is a pretty big hole if it's done wrong, so this got more design time than anything else:

Built overnight, mostly by agents

The design was approved on the evening of November 16. It was split into six PRs: the server and pairing, the read API, push, the write API, the web app, and the live terminal. The first merged at 11:14pm. The live terminal merged at 9:26 the next morning.

Most of that work was done by agents running in agentctl, which were dispatched, reviewed and merged from... well, partly from my phone, once there was enough of it to use. It wasn't flawless. One change to how the pane preview renders broke the app, got reverted, and was redone properly an hour later. Then a hardening pass tightened push, replies and dispatch before I'd call it done.

Game changing

I don't use that phrase lightly, but this is the biggest change to how I work since I started running agents in parallel.

Before, the number of agents I could keep busy was capped by how long I could sit at my desk. Now it's capped by how often I glance at my phone, which, let's be honest, is constantly. Agents that would have spent an hour blocked get unblocked in a minute. Ideas I have away from the desk turn into a dispatched job and a PR waiting for me when I sit back down.

And because it's my real laptop and not a sandbox, I don't have to settle for less when I'm away. It's the same fleet, the same config and the same agents, just in my pocket.

Try it

agentctl serve is in agentctl now. If you're already running agentctl:

agentctl serve install   # run it under launchd
agentctl serve pair      # scan the QR codes with your phone

Then open the link on your phone, add it to your Home Screen, and turn on notifications in Settings. When you're ready to let it do more than watch, set "allow_write": true in the serve block of your config.

← All posts