Peripheral Tooling: What Coding Agents Built Best

Peripheral tooling built by coding agents running in a headless macOS test VM

One developer who shipped a pile of Mac apps with coding agents this year says the apps weren’t the best result. The small scripts and helper tools around them were. He calls this peripheral tooling, a term he borrows from Thorsten Ball, and says it is software he never had time to write by hand.

The pattern is simple. Spend ten minutes describing the exact wrapper you want, let an agent build it, and every later app and post gets faster. He lists five tools running on his Mac now.

testvm: a headless Mac for agents

The first problem was screen takeover. Whenever Claude Code or Codex tested a build, the app window popped up over whatever he was reading, and agents clicked around with AppleScript. With two or three working at once, the desktop was unusable.

His fix was testvm, a 574-line Bash script wrapped around Tart. The agent builds on the host Mac, copies the .app into a headless macOS virtual machine, and runs every click, keystroke and screenshot over SSH. A companion app called VM Peek shows the activity log.

The logs for November 17 to 24 show 44,670 commands. Claude Code ran 41,136 of them, Codex 2,310 and his own terminal scripts 1,224. The week included 4,980 app launches, 2,705 UI control inspections, 2,406 window screenshots and 11,313 AppleScripts. He says an afternoon of work paid for itself within the first week.

VM Peek showing two agents driving apps inside the headless test VM at once
Image: flaviocopes.com

Redaction and backdrops by script

Screenshots were the next chore. A Tailscale post still showed real IP addresses, and blurring text by hand is slow and sometimes reversible. An agent wrote redact-screenshot.swift, 126 lines that use macOS Vision OCR and CoreImage. By default it finds IPv4 and IPv6 addresses, accepts extra patterns through a flag, samples the average color under each match and paints a solid bar so the original pixels are gone. It needs no outside packages.

A second script, backdrop.mjs, replaces CleanShot X for the gradient-and-shadow look. Bare screenshots go into a folder per project, and the script trims the window, draws a gradient and shadow, and writes a WebP. The first batch took 101 screenshots from 96 MB of PNG to 11 MB. The folder now holds 2,112 bare screenshots across 285 folders, so a design change means editing one color table and rerunning.

The same approach produces social cards. 508 lines of JavaScript render 1200 by 630 images through headless Chrome, and the script now generates 733 cards from small definitions.

Architecture Dissector displaying the component map and inspector for Skill Cabinet
Image: flaviocopes.com

Maps for code nobody typed

When agents write most of the code, you stop remembering which service owns which table. His answer is Architecture Dissector and a command line tool called blueprint. A coding agent reads the project and writes structured architecture, flow and data maps, and saves snapshots at milestones with a command such as blueprint snapshot –version 1.0.0. The folder holds 21 mapped projects. Before changing a repo he hasn’t touched in a month, he checks the component map and version diff.

CLI Tools Cabinet showing installed command-line tools and recent command history
Image: flaviocopes.com

A manifest so agents know what exists

With thirty helper tools, a fresh agent session doesn’t know they are there and may write a throwaway Python script for something a local tool already does. So every tool he builds answers one command, capabilities –json. It prints a static manifest with the version, a one-sentence summary, four to ten tasks with example commands, and a changelog. It makes no network calls, never opens the GUI and returns in milliseconds.

A command called clitools collects them all. Thirty of his tools respond today, including testvm, things, notary, plausible, searchglass, seobot, postdeck and explainers. Agents check that list before writing new glue code.

Why the gains stack up

Each app helps its own users. A piece of peripheral tooling speeds up every app and post that follows. Before agents, the math rarely worked: half a day on an OCR redactor felt like procrastination next to thirty seconds in Preview. Across more than two thousand screenshots those seconds become days. Manual steps also stall agents, because an agent can’t click through Preview or CleanShot X while you’re using the desktop.

Some of the tools grew into products. VM Peek, Architecture Dissector and CLI Tools Cabinet all began as personal workflow tools and now sit on his apps page.

The habit to copy

His advice is practical. The next time you catch yourself repeating a boring five-step chore around an agent’s output, stop before asking for the next feature. Have the agent build a small piece of peripheral tooling for the chore first, give it a capabilities manifest, and let every future session find it.

Source: flaviocopes.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.