← All skills

simyard

v0.1.2MITLooking after your Mac

Every agent building an iOS app wants its own simulator, and mine had left 42 of them holding 172 GB. This keeps every agent on one shared pool of eight: borrow one, build and test on it, hand it back wiped, and never touch one another agent is using.

Install
/plugin install simyard@fledgeling-plugins

Needs the marketplace added first — how to do that.

Reach for it when

Keep every agent on a Mac to one shared pool of at most 8 iOS simulators: lease a device before building or testing (through the simyard MCP server's queue when it is available, which grants time-boxed turns and tells you when it is yours), pass its UDID everywhere, release it when the task ends, and never boot, create or clone a simulator outside the pool.

Not for

Not for physical devices, and not for whole-disk cleanup beyond simulators (use mac-doctor:mac-doctor).

What ships with it

Easily confused with

simyard gives every coding agent on a Mac one shared pool of eight iOS simulators. An agent borrows a simulator, builds and tests on it, and hands it back wiped; nobody makes a new one for a task, and nobody touches one another agent is using.

Why it exists

Every agent that builds an iOS app wants its own simulator, and none of them clean up after themselves.

On my Mac on 29 November I counted 42 simulators holding 172 GB. Five were running at once, using between 8.6 and 11.3 GB of memory each. 38.9 GB of that disk was a wallpaper snapshot cache that iOS writes on every boot and never deletes. Xcode's build folders had 342 entries, and 261 of them were one project, because Xcode keeps a separate copy for every checkout an agent works in.

None of that was a bug. It's what you get when every agent does the sensible thing for itself.

How it works

The pool is eight simulators, made once: six iPhones and two iPads by default, on the newest iOS that supports each. Eight is also the most that can run at once.

An agent working on an iPhone or iPad app follows four steps:

  1. Check there's room. simyard.py preflight says no when eight simulators are already running, or when less than 25% of the Mac's memory is free.
  2. Borrow one. simyard.py acquire leases a free simulator, boots it and prints its ID. The agent passes that ID to everything: xcodebuild, Xcode's own MCP server, and RocketSim for tapping through the app.
  3. Keep it to yourself. The lease means no other agent gets that simulator, and nobody can wipe it out from under you.
  4. Give it back. simyard.py release removes the apps it installed, resets the keychain, shuts it down and clears the wallpaper cache.

When lots of agents test at once, pair it with simyard-mcp, the same pool run as a queue: an agent asks for a simulator for so many minutes, gets one now or a place in line with a time to check back, and is told when its turn is up. The skill tells agents to use it whenever its tools are there.

Two more commands deal with the mess already on the Mac. retire lists every simulator outside the pool that's been idle for a day and isn't named in your project's scripts, and deletes them only once you've said yes. tidy clears wallpaper caches and simulators whose iOS version is genuinely gone.

It never touches a running simulator it doesn't own. A simulator carries no owner tag, so there's no way to tell a forgotten one from one a UI test is halfway through. simyard tells you about it and leaves the call to you.

One thing it caught while I was building it

Partway through, the iOS 27.1 runtime on my Mac got re-registered and unmounted while still installed. Its 16 iPhone Duo simulators started showing as "unavailable". The standard cleanup advice, xcrun simctl delete unavailable, would have deleted all 16 working simulators, about 74 GB of app state.

So simyard only deletes a simulator when the iOS version it runs on is actually missing from the Mac, and it does it one simulator at a time.

Install

/plugin marketplace add fledgeling-co/fledgeling-plugins
/plugin install simyard@fledgeling-plugins

Then, once per Mac:

python3 <skill folder>/scripts/simyard.py init                                  # 6 iPhones, 2 iPads
python3 <skill folder>/scripts/simyard.py init --spec "iphone:5,ipad:2,iPhone Duo:1"
python3 <skill folder>/scripts/simyard.py retire --code ~/Dev                   # what can go, nothing deleted yet

Note: if simslim is installed, init slims each simulator, which sim-guard measured at 382 MB and 57 processes idle against about 3.5 GB and 130 for a stock one. If it isn't, simyard runs stock simulators and tells you once how to add it.

The skill also covers giving Claude Code or Codex access to Xcode (xcrun mcpbridge, plus the Intelligence setting you flip yourself), and a block to drop into each project's AGENTS.md so every agent in that repo uses the pool.

Does it actually work?

The honest answer: the scripts are tested; the skill's effect on an agent hasn't been measured yet.

I chose not to run a comparison of agents with and without the skill for this first version. What was checked:

  • All 14 self-tests pass against a fake xcrun. They cover pool creation, re-running init without duplicates, the limit of eight, the memory floor, separate leases per agent, stale leases, the release wipe, refusing another agent's simulator, retire dry runs and deletes, and tidy keeping the unmatched simulators.
  • I broke the script's safety checks in 4 copies, one at a time, and a test caught each; so the checks can actually fail.
  • The read-only commands ran against my real Mac.

Three test prompts are written for the comparison when it happens. EVALS.md has the detail and what would settle it.

Credit

simyard is built on sim-guard by An Nayal (MIT): the pool, the preflight and the wipe on release are its ideas. I raised its limit from two to eight and added leases. The Xcode steps come from Apple's Giving external agents access to Xcode and Extending and customizing agents. Driving the app is left to RocketSim by Antoine van der Lee.

For cleaning up the rest of the Mac (caches, worktrees, Docker), use mac-doctor.