/callstackincubator:agent-devicefrom callstackincubator
Automates interactions for iOS simulators/devices and Android emulators/devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing, scrolling, or extracting UI info on mobile targets.
Ships in callstackincubator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For exploration, use snapshot refs. For deterministic replay, use selectors. For structured exploratory QA bug hunts and reporting, use ../dogfood/SKILL.md.
Use this skill as a router, not a full manual.
devices -> pick target -> open.open -> snapshot -i -> press/fill -> diff snapshot -i -> closeopen <app> -> logs clear --restart -> reproduce -> network dump -> logs path -> targeted grepreplay -u <path> -> verify updated selectorsagent-device open Settings --platform ios
agent-device snapshot -i
agent-device press @e3
agent-device diff snapshot -i
agent-device fill @e5 "test"
agent-device close
agent-device open MyApp --platform ios
agent-device logs clear --restart
agent-device network dump 25
agent-device logs path
Logging is off by default. Enable only for debugging windows.
logs clear --restart requires an active app session (open <app> first).
agent-device replay -u ./session.ad
# Client points directly at the remote daemon HTTP base URL.
export AGENT_DEVICE_DAEMON_BASE_URL=http://mac-host.example:4310
export AGENT_DEVICE_DAEMON_AUTH_TOKEN=<token>
# Allocate lease
curl -sS "${AGENT_DEVICE_DAEMON_BASE_URL}/rpc" \
-H "content-type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{"jsonrpc":"2.0","id":"alloc-1","method":"agent_device.lease.allocate","params":{"runId":"run-123","tenantId":"acme","ttlMs":60000}}'
# Use lease in tenant-isolated command execution
agent-device \
--tenant acme \
--session-isolation tenant \
--run-id run-123 \
--lease-id <lease-id> \
session list --json
# Heartbeat and release
curl -sS "${AGENT_DEVICE_DAEMON_BASE_URL}/rpc" \
-H "content-type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{"jsonrpc":"2.0","id":"hb-1","method":"agent_device.lease.heartbeat","params":{"leaseId":"<lease-id>","ttlMs":60000}}'
curl -sS "${AGENT_DEVICE_DAEMON_BASE_URL}/rpc" \
-H "content-type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{"jsonrpc":"2.0","id":"rel-1","method":"agent_device.lease.release","params":{"leaseId":"<lease-id>"}}'
Notes:
AGENT_DEVICE_DAEMON_BASE_URL makes the CLI skip local daemon discovery/startup and call the remote HTTP daemon directly.AGENT_DEVICE_DAEMON_AUTH_TOKEN is sent in both the JSON-RPC request token and HTTP auth headers.--debug does not tail a local daemon.log; inspect logs on the remote host instead.agent-device devices
agent-device devices --platform ios --ios-simulator-device-set /tmp/tenant-a/simulators
agent-device devices --platform android --android-device-allowlist emulator-5554,device-1234
agent-device ensure-simulator --device "iPhone 16" --ios-simulator-device-set /tmp/tenant-a/simulators
agent-device ensure-simulator --device "iPhone 16" --runtime com.apple.CoreSimulator.SimRuntime.iOS-18-4 --ios-simulator-device-set /tmp/tenant-a/simulators --boot
agent-device open [app|url] [url]
agent-device open [app] --relaunch
agent-device close [app]
agent-device install <app> <path-to-binary>
agent-device reinstall <app> <path-to-binary>
agent-device session list
Use boot only as fallback when open cannot find/connect to a ready target.
For Android emulators by AVD name, use boot --platform android --device <avd-name>.
For Android emulators without GUI, add --headless.
Use --target mobile|tv with --platform (required) to pick phone/tablet vs TV targets (AndroidTV/tvOS).
Isolation scoping quick reference:
--ios-simulator-device-set <path> scopes iOS simulator discovery + command execution to one simulator set.--android-device-allowlist <serials> scopes Android discovery/selection to comma/space separated serials.--device, --udid, --serial); out-of-scope selectors fail with DEVICE_NOT_FOUND.Simulator provisioning quick reference:
ensure-simulator to create or reuse a named iOS simulator inside a device set before starting a session.--device <name> is required (e.g. "iPhone 16 Pro"). --runtime <id> pins the runtime; omit to use the newest compatible one.--boot boots it immediately. Returns udid, device, runtime, ios_simulator_device_set, created, booted.TV quick reference:
open/apps use TV launcher discovery automatically.snapshot, wait, press, fill, get, scroll, back, home, app-switcher, record and related selector flows).back/home/app-switcher map to Siri Remote actions (menu, home, double-home) in the runner.pinch, settings, and push.agent-device snapshot -i
agent-device diff snapshot -i
agent-device find "Sign In" click
agent-device press @e1
agent-device fill @e2 "text"
agent-device is visible 'id="anchor"'
press is canonical tap command; click is an alias.
agent-device appstate
agent-device clipboard read
agent-device clipboard write "token"
agent-device keyboard status
agent-device keyboard dismiss
agent-device perf --json
agent-device network dump [limit] [summary|headers|body|all]
agent-device push <bundle|package> <payload.json|inline-json>
agent-device trigger-app-event screenshot_taken '{"source":"qa"}'
agent-device get text @e1
agent-device screenshot out.png
agent-device settings permission grant notifications
agent-device settings permission reset camera
agent-device trace start
agent-device trace stop ./trace.log
agent-device batch --steps-file /tmp/batch-steps.json --json
agent-device perf --json (or metrics --json) after open.snapshot -i; scope/depth only when needed.find "<query>" click --json returns { ref, locator, query, x, y } — all derived from the matched snapshot node. Do not rely on these fields from raw press/click responses for observability; use find instead.fill for clear-then-type semantics; use type for focused append typing.install for in-place app upgrades (keep app data when platform permits), and reinstall for deterministic fresh-state runs.install/reinstall: Android .apk/.aab, iOS .app/.ipa..aab requires bundletool in PATH, or AGENT_DEVICE_BUNDLETOOL_JAR=<path-to-bundletool-all.jar> with java in PATH..aab optional: set AGENT_DEVICE_ANDROID_BUNDLETOOL_MODE=<mode> to control bundletool build-apks --mode (default: universal)..ipa: extract/install from Payload/*.app; when multiple app bundles are present, <app> is used as a bundle id/name hint.appstate is session-scoped; Android appstate is live foreground state. iOS responses include device_udid and ios_simulator_device_set for isolation verification.open responses include device_udid and ios_simulator_device_set to confirm which simulator handled the session.clipboard read / clipboard write <text> are supported on Android and iOS simulators; iOS physical devices are not supported yet.keyboard status|get|dismiss report keyboard visibility/type and dismiss via keyevent when visible.network dump is best-effort and parses HTTP(s) entries from the session app log file.settings faceid|touchid <match|nonmatch|enroll|unenroll>; Android supports settings fingerprint <match|nonmatch> where runtime tooling is available.--target with --platform (ios, android, or apple alias); target-only selection is invalid.push simulates notification delivery:
trigger-app-event requires app-defined deep-link hooks and URL template configuration (AGENT_DEVICE_APP_EVENT_URL_TEMPLATE or platform-specific variants).trigger-app-event requires an active session or explicit selectors (--platform, --device, --udid, --serial); on iOS physical devices, custom-scheme triggers require active app context.website/docs/docs/commands.md under App event triggers.settings permission <grant|deny|reset> <camera|microphone|photos|contacts|notifications> [full|limited]alert wait then alert accept/dismiss — accept/dismiss retry internally for up to 2 s so you do not need manual sleeps. See references/permissions.md.full|limited mode applies only to iOS photos; other targets reject mode.fill/type may require an ADB keyboard IME on some system images; only install IME APKs from trusted sources and verify checksum/signature.--save-script, prefer explicit path syntax (--save-script=flow.ad or ./flow.ad).--tenant, --session-isolation tenant, --run-id, and --lease-id together.AGENT_DEVICE_IOS_SIMULATOR_DEVICE_SET (compat IOS_SIMULATOR_DEVICE_SET) and
AGENT_DEVICE_ANDROID_DEVICE_ALLOWLIST (compat ANDROID_DEVICE_ALLOWLIST).AGENT_DEVICE_DAEMON_BASE_URL / --daemon-base-url instead of relying on local daemon metadata or loopback-only ports.agent-device binary over on-demand package execution.npx --yes agent-device@<exact-version> --help).~/.agent-device; replay scripts write to explicit paths you provide.AGENT_DEVICE_DAEMON_SERVER_MODE=http|dual on the host plus client-side AGENT_DEVICE_DAEMON_BASE_URL, with AGENT_DEVICE_HTTP_AUTH_HOOK and tenant-scoped lease admission where needed.--activity (unsupported combination).boot as default first step instead of fallback.references/batching.md (opens in a new tab)references/coordinate-system.md (opens in a new tab)references/logs-and-debug.md (opens in a new tab)references/perf-metrics.md (opens in a new tab)references/permissions.md (opens in a new tab)references/remote-tenancy.md (opens in a new tab)references/session-management.md (opens in a new tab)references/snapshot-refs.md (opens in a new tab)references/video-recording.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin callstackincubator8 skills in this plugin
/dogfoodSystematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams./githubGitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks./Other plugins' skills for the same job