Skip to content
Back to skills

Agent Sim

ASecurity

Test and drive iOS apps in an iOS simulator on a Linux machine with the agent-sim CLI. Use when asked to run, test, check or demo an iOS app (.ipa or simulator .app), reproduce an iOS bug, or look at an iOS screen, and the machine is Linux with agent-sim installed.

  • 683 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentgoreact

Works with

  • terminal
  • cli
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add Developing-Gamer/agent-sim --skill agent-sim --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Sim?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Sim
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/developing-gamer-agent-sim/badge)](https://www.skillsdirectory.com/skills/developing-gamer-agent-sim)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-sim
description: Test and drive iOS apps in an iOS simulator on a Linux machine with the agent-sim CLI. Use when asked to run, test, check or demo an iOS app (.ipa or simulator .app), reproduce an iOS bug, or look at an iOS screen, and the machine is Linux with agent-sim installed.
---

# agent-sim

`agent-sim` runs Apple's iOS simulator runtime on Linux (through x86Sim) and drives it from the command line.
Every command takes `--device NAME` (default `p`, or `$AGENT_SIM_DEVICE`).

## The loop

1. `agent-sim status`: is a phone running? If not, `agent-sim up` (15-40 s).
2. `agent-sim install path/to/App.ipa` (or a simulator `.app`, a `.tar.gz` or `.zip` holding one such as an EAS Build artifact, or an http(s) URL of any of these), then `agent-sim launch <bundle id>` (add `--env KEY=VALUE` and `-- -arg value` to pass environment variables and launch arguments).
   `agent-sim apps` lists installed apps and their bundle ids.
3. `agent-sim snapshot`: read the screen. One element per line:
   `@e4 button "Sign in" id="login.submit" (201,640)`: reference, role, label, value/id, center point.
4. Act:
   - `agent-sim tap @e4` (reference from the last snapshot), `agent-sim tap "Sign in"` (text), `agent-sim tap 201 640`
     (screen points)
   - `agent-sim type "me@example.com"`: tap the field first; `\n` presses Return
   - `agent-sim scroll down` (shows what is below), `agent-sim swipe x1 y1 x2 y2`
   - `agent-sim press home`
   - `agent-sim open https://example.com` or a deep link
5. `agent-sim wait "Welcome" --timeout 20` instead of sleeping; `--gone` waits for something to disappear.
6. Snapshot again after every action: references change when the screen does.

## Tips

- Prefer `snapshot` over `screenshot`; use `screenshot -o screen.png` to check visual details or to show a human.
- System alerts (permission prompts) appear first in the snapshot; answer them with `tap "Allow"` or
  `tap "Don't Allow"`.
- A tap on an element that does not react: check it is not `disabled` in the snapshot, or scroll it into view.
- App Store downloads are encrypted and cannot be installed; use an Ad Hoc / Development export or a simulator
  build.
- To give an app documents to open, `agent-sim files push report.pdf --to Inbox` copies them into the Files app's
  On My iPhone (`files ls`, `files rm` to check and clean up); then pick them in the app's document picker.
- `agent-sim pool take` hands out an already booted phone when several agents share a machine; give it back with
  `agent-sim pool release NAME`.
- `agent-sim screenshot --compare baseline.png --diff diff.png` checks for a visual change (exit 1 on a mismatch);
  `agent-sim env --appearance light --status-bar-time 9:41` first makes the screen repeatable.
- `agent-sim artifacts collect DIR --bundle-id ID` saves the screen, its text, the app's logs and the phone's state
  when reporting a bug.
- As an MCP server (`agent-sim mcp`) the same commands are tools, and actions return the next snapshot.

## A real Mac (when Xcode or Apple's own Simulator is needed)

If `agent-sim mac status` lists a Mac (docs/MAC.md), it is a real macOS 26 VM on this machine:

- `agent-sim mac -m NAME up` boots it and waits for SSH; `agent-sim mac -m NAME ssh 'xcodebuild -version'` runs
  commands there (passwordless sudo).
- Its screen: `agent-sim mac -m NAME snapshot` (OCR text with `@e` references), `click @e3` or `click "Terminal"`,
  `type "text\n"`, `key cmd+space`, `screenshot -o mac.png`.
- With Xcode installed, `agent-sim mac -m NAME sims pool 2` boots simulators, and every phone command takes
  `-d 'mac:NAME/agent-sim 1'` to act on Apple's Simulator there instead of an x86Sim phone.
- `agent-sim mac install` and `agent-sim mac xcode` accept Apple's licenses for macOS and Xcode, so the first time they
  ask for a confirmation. Ask your user to confirm it; don't pass `--accept-apple-licenses` for them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.