mullane.info

Housekeeping for the agents

2026-12-05 · homenet

I sat down this afternoon meaning to ask the agent what was next, and got distracted by HANDOFF.md instead. It’s supposed to be the agent’s own note to itself: what comes next, what’s waiting on me, what we still have to build. Over three weeks it had grown to 42 KB, most of it session diaries and things that were finished, and every session loaded the whole thing before doing anything. So I asked for it to be cleaned up, with the condition that the rest of the documentation should hold whatever a given task actually needs.

That part went smoothly. Nearly everything in HANDOFF already lived in a host README, so the agent checked each item against the repos (and against the live machines where that was cheap: the 3D printer turned out to be back on its reservation, deskliam’s ARP fix was already in place), moved the few facts that existed nowhere else into the right files, archived the old text verbatim in .historical/, and rewrote HANDOFF as a queue. It’s 45 lines now: checks that are due, with dates; the work in order; what waits on me. Each line points at the README with the details. The session skill and the agent instructions now say that’s all it’s for, which should keep it from growing back.

The surprise came out of one of its questions. It asked whether I’d re-installed my copy of fleet-sudo after the controller rename, and I was fairly sure I had. I hadn’t, and it turned out I couldn’t have done it properly anyway. fleet-sudo is the script that turns on the agent’s temporary root across the fleet with my smart card, and it runs as me, so the copy I run is root-owned and lives in /usr/local/bin. The documented way to update that copy was to run the installer, as root, from the shared working tree. The shared tree is the one the agent can write to. That’s the exact hole the root-owned copies were meant to close, and it had been sitting in our own instructions since November.

The fix rides on something that already worked. My desktop config runs from my own clones of the desktom and workbench repos, and a small script, review-pull, fetches them, shows me the diff and asks before fast-forwarding. Now it also keeps a clone of the homenet repo of my own and handles the seat copies from that: it shows me any change to the installer before running it, asks before running the installer’s read-only diff, shows what would change in /usr/local, and asks once more before sudo. It also links itself into ~/.local/bin on its first run, so it’s just review-pull now, on desktom and laptom both. I’d wondered about moving it into workbench, but workbench is public and this script names my GitLab and the homenet repo, so it stays where it is.

With the sudo window open, the agent also put the missing terminfo on deskliam and removed Docker from the two media hosts, which have run on Podman since last week. About 7.5 GB of old image layers went with it.

Since we were already changing how the agents work, I asked for two more things. The first was that unrelated tasks in one session go to subagents, mostly to save tokens. The old rule said the opposite (work inline, subagents only for read-only checks), so the new one comes with fences: each subagent owns only the repos its brief names, one at a time on the network, it never turns sudo off and never asks me anything directly. The second was a look at whether any skills should run by default. The answer was more or less the reverse. I’d installed a handful of plugins from claude.ai assuming they’d simply be available, but some of them load at the start of every session. Superpowers in particular injects about 500 words up front telling the agent to load a skill before any response, and the Hugging Face skills were listed three times over.

I’d added superpowers on purpose, assuming it was more thorough than what we had, so I asked for a comparison before turning it off. The agent handed that to a subagent (the new rule’s first outing), and the result was clear enough. Most of it either repeats rules homenet already has in a stricter form (checking before calling something done, the git finish, the subagent rules) or contradicts them: worktrees against our one shared checkout, design documents in a folder of its own against READMEs as the record, approval gates before any plan against the way I actually work, which is often overnight. Four ideas were worth keeping, and they fit in a few sentences: find the root cause before fixing anything, and stop to rethink after three failed fixes; never call something done without a check run in this session, and name the check; check a subagent’s work against the diff and the live state rather than its report; and when a request leaves a real choice open, lay out the options once, otherwise just do it. I added a fifth that had come up along the way: search for an existing tool or skill before building a new one. Then I disabled the plugins for this project in /plugin.

The last change was cosmetic, or so I thought. I’d read that AGENTS.md has become the common instruction file for coding agents (Codex, OpenCode, pi and the rest), and asked to switch every project under /srv/projects to it. This version of Claude Code supports it natively, as long as there’s no CLAUDE.md in the same directory, but the agent wanted to see it load before renaming twelve repos’ worth of files. Its first test said AGENTS.md didn’t load. Neither, it turned out, did a plain CLAUDE.md in the same place: Claude Code ignores project instruction files entirely for a project under /tmp, which is where the scratch test lived. Moved to a directory in the agent’s home, both the root file and a nested one loaded fine, and a fresh session in the real tree read the renamed file and could quote the branch-naming rule back. Nothing else in our tooling referred to the old name except documentation and two comments.

So by the end of the afternoon: HANDOFF is a short queue, review-pull keeps my root-owned copies honest from a clone I’ve read, unrelated work goes to subagents with fences around them, the agents carry five more working rules and a lighter plugin set, and every project’s instructions live in AGENTS.md. A fresh session now starts with the homenet skills listed by name and nothing loaded until a task asks for it, which is what I’d assumed was happening all along.