Many sessions at once, and what still needs me
Fifteen coding-agent sessions across two Linux boxes, one session that watches the rest, what it may answer for me, what it never may, and why a yes it passes on gets checked against what I typed.
The first time I listed every coding-agent session I had open there were fifteen, across my two Linux boxes, each in its own tmux window on its own repo or job. They kept getting stopped or hung up waiting for me to answer a stupid question.
So one small session now has a single job, which is the others.
What it does
A command lists every session on both boxes and reads what’s on each one’s screen, with anything that looks like a secret masked. It’s read-only. The first real run listed 15 sessions and read 15 screens. For each one it knows whether the session is busy or idle and what’s on its input line: nothing, a draft, or a dialog.
What it may answer without me
Three things. A question that a read-only look at the files can settle. Carrying on with work I’d already agreed. And getting work ready up to the point that needs me: written, tested and committed locally, in a separate worktree when other sessions share the checkout. Afterwards it tells me exactly what it sent and to whom.
It only types into a session that’s idle with an empty input line. A half-written line there is me typing, and it leaves that alone, along with anything showing a permission dialog or a menu. It doesn’t report a message as received until the next pass shows it on that session’s screen.
What always comes to me
A push to a repo other people use, a deploy, a post anywhere, anything live. Every sudo. Any delete, move, archive or prune, and any change to settings, hooks or permissions. For those last two groups it may not even ask another session to do them, and deletes aren’t left to that rule alone: a hook refuses the dangerous ones whoever asks. It can’t stop or close a session either. Stale ones go on a list.
What needs me arrives as that list, and where a session wants something typed by me, the list has the exact words.
A yes that was passed on
When I give a go in that session, it passes it on. The message it types into the other terminal looks exactly as if I’d typed it, so it has to open with a line saying it was typed by another session and not by my hands. Then come my words in quotes with the time I said them, then its own reading of what they cover, marked as its own.
The receiving session doesn’t take that message as approval for anything it’s holding. It reads the line I typed, in the other session’s transcript, and acts on what’s there.
One afternoon I’d said yes to two jobs in a single line. The session doing them was sent that line, found it in the transcript where I’d typed it, and did both. Later it was sent a third job, taking some database dumps out of a backup, on the grounds that a rule I’d already given covered them. That was the other session’s reading of my rule, and I hadn’t said it. The job meant rewriting a backup snapshot and pruning, which can’t be undone. The session held and said why. I typed a three-word yes, and then it ran: the rewrite, a prune that removed 3.0 GiB, and a check of the repository that found no errors.
Some sessions hold out for my own typed word whatever they’re sent, on a sudo step for example. The watching session doesn’t press and doesn’t send it again. It puts the words in front of me to type in that terminal.
Its first day
It was built on a branch and reviewed twice by an independent reviewer, with 2,186 tests passing when it merged. It had two more releases the same day, and the suite went to 2,294. Those added what the first afternoon had shown was missing: what to do when a session can’t be typed into, and sending two approved commits in one push.
There’s a brief mode now. A pass over fifteen sessions prints fifteen lines.
Featured projects
-
Apple News API
Publish articles and live coverage to Apple News from PHP, with the whole Apple News Format built from objects.
-
GitHub Auditor
Health, access and activity reports for more GitHub and Bitbucket repositories than you can keep in your head.
-
PrintMD
Markdown in, and a designed PDF, Word or PowerPoint file out. Its PDF service runs on your own computer.
-
Where Should I Live
Which city would leave you best off? Cities ranked by take-home pay, living costs, visas and the way you live.
-
Solar Calendar
Thirteen months of exactly four weeks, with the year starting on the first Monday on or after the spring equinox.
Latest writing
-
Rules a coding agent cannot talk its way round
The hook that reads every command a coding agent wants to run on my Linux boxes: what it refuses, the 27 proofs that its tests fail when a rule is taken out, and the four lines every report opens with.
-
Dozens of repos, one person
46 repositories and two Linux boxes with nobody else on them: the diary, the decision table, the rebuild guide and the job that keeps both sets of clones in step.
-
My desk from a phone or a tablet
GNOME remote desktop on two Linux boxes from two phones and a tablet: a headless session on the box nobody sits at, a mirrored screen on the one I do, and the sizes that make a desktop readable on a phone.
-
Old phones as home cameras
Three old Android phones record to a Raspberry Pi, a filter drops the minutes where nothing moved, and a small vision model on my own graphics card decides whether an alert is a person.