agent-device
AGENTS.md4.9k starsChanged 2 months agoMITView on GitHub
agent-device is a CLI and daemon for automating Apple, Android, HarmonyOS, Vega, Linux, and web targets. A long-lived daemon owns sessions; registry-derived commands route to platform runtimes. Load only the procedures relevant to the task: Versioned CLI help owns command semantics. Read the relevant topic when behavior is unclear; normal app-driving startup follows the skill's routing card. - Classify interaction dispatch paths in packages/contracts/src/interaction-guarantees.ts and verify each claim against the native implementation. - Delegation on error proves no success-path parity.…
- Reads credentials
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about callstack/agent-device
- @github-trending-js.bsky.social“📦 callstack / agent-device ⭐ 3,411 (+34) 🗒 TypeScript CLI to control iOS and Android devices for AI agents”Bluesky · Jul 17, 2026 · 5 likes
- @yug1224.com“AIエージェントにモバイル端末の操作や検証をさせるためのコマンドラインツールっぽい モバイルアプリ開発の自動テストやデバッグ効率化に使えそう yug1224 starred callstack/agent-device…”Bluesky · Jul 27, 2026 · 4 likes
- @yug1224.com“AIエージェントにモバイル端末の操作や検証をさせるための自動化ツールっぽい スマホアプリ開発のテスト効率化に使えそうかな yug1224 starred callstack/agent-device…”Bluesky · Jul 27, 2026 · 3 likes
- @technews4869.bsky.social“github.com/callstack/agent... GitHub - callstack/agent-device: CLI to control iOS and Android devices for …”Bluesky · Jul 27, 2026 · 2 likes
- mym0404/react-native-kakao“ci: align iOS runtime and screen wait budgets”GitHub · Sep 25, 2026 · 1 reactions
The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 39
Talked about on GitHub and Bluesky (39 times).
On GitHub · 35
- Sep 25, 2026ci: align iOS runtime and screen wait budgets — mym0404/react-native-kakao1 reaction · 2 comments
- Oct 6, 2026claude-code-plugins.github.callstack.agent-device: 0.21.18 → 0.21.22 — sudosubin/agents.nix0 reactions
- Oct 6, 2026[No QA] docs: point agent-device skill at built-in help — Expensify/App0 reactions
- Oct 4, 2026claude-code-plugins.github.callstack.agent-device: init at 0.21.18 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.callstack.agent-device: 0.21.12 → 0.21.18 — sudosubin/agents.nix0 reactions
30 more on GitHub
- Oct 2, 2026chore(deps): bump the production-dependencies group across 1 directory with 3 updates — harukary/local-dev-mcp0 reactions
- Sep 30, 2026Update skill: /callstack-agent-device (safe risk) — aiskillstore/marketplace0 reactions
- Sep 30, 2026Update skill: /callstack-dogfood (safe risk) — aiskillstore/marketplace0 reactions
- Sep 28, 2026chore(deps): bump agent-device from 0.21.6 to 0.21.15 — tester-army/e2e0 reactions · 5 comments
- Sep 28, 2026expo: integrate Argent or agent-device — rifandani/fe-monorepo0 reactions
- Sep 27, 2026fix(deps): update mobile non-major — Take111/ec-learning0 reactions
- Sep 26, 2026agent-skills.github.callstack.agent-device: init at 0.21.12 — sudosubin/agents.nix0 reactions
- Sep 24, 2026feat(agent-device): Callstack's app-automation server, pinned at 0.21.14 — forgeprint/forgeprint0 reactions
- Sep 23, 2026chore(deps-dev): bump agent-device from 0.21.0 to 0.21.5 — mitsuharu/react-native-sunmi-printer-library0 reactions
- Sep 20, 2026fix(deps): update mobile non-major — Take111/ec-learning0 reactions
- Sep 18, 2026chore(deps): bump the production-dependencies group across 1 directory with 2 updates — harukary/local-dev-mcp0 reactions · 1 comment
- Sep 17, 2026chore(deps): update dependency agent-device to v0.21.18 - autoclosed — govoel/voel0 reactions
- Sep 16, 2026chore(deps-dev): bump agent-device from 0.20.10 to 0.21.0 — mitsuharu/react-native-sunmi-printer-library0 reactions
- Sep 12, 2026chore(deps): bump the production-dependencies group with 3 updates — harukary/local-dev-mcp0 reactions · 1 comment
- Sep 11, 2026Compact and ultra-compact modes — leancodepl/marionette_mcp0 reactions · 1 comment
- Sep 10, 2026fix: clear completed recording state before parking — appandflow/stim0 reactions · 1 comment
- Sep 1, 2026Research agent-device CI hardening for the observed infra flakes — thiagobrez/react-native-reorderable0 reactions · 2 comments
- Aug 19, 2026Add code-mode adapter for agent-device's typed SDK — inKibra/gitspace.sh0 reactions
- Aug 5, 2026chore(deps): bump the minor-and-patch group across 2 directories with 3 updates — IgorGanapolsky/mac-yolo-safeguards0 reactions · 5 comments
- Aug 2, 2026Update dependency agent-device to v0.20.5 - autoclosed — govoel/voel0 reactions
- Jul 27, 2026chore(deps): bump the minor-and-patch group in /hermes-mobile with 2 updates — IgorGanapolsky/mac-yolo-safeguards0 reactions · 5 comments
- Jul 23, 2026Update 147 repository links that have moved 🤖🤖🤖 — punkpeye/awesome-mcp-servers0 reactions · 1 comment
- Jul 13, 2026chore(deps): bump the minor-and-patch group in /hermes-mobile with 4 updates — IgorGanapolsky/mac-yolo-safeguards0 reactions · 2 comments
- Jul 7, 2026chore(deps): bump the minor-and-patch group across 1 directory with 5 updates — IgorGanapolsky/mac-yolo-safeguards0 reactions · 7 comments
- Jul 7, 2026chore(deps): bump the minor-and-patch group in /hermes-mobile with 10 updates — IgorGanapolsky/mac-yolo-safeguards0 reactions · 5 comments
- Jul 6, 2026test(android): evaluate Callstack agent-device for APK layout smoke checks — xodapi/vimit0 reactions · 4 comments
- Jun 26, 2026chore(deps): update dependency agent-device to v0.19.1 - autoclosed — govoel/voel0 reactions
- Jun 18, 2026[APP] Evaluate mobile agents — timothyrusso/HolidAI0 reactions · 2 comments
- Jun 6, 2026content(mcp): add Agent Device MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
- May 11, 2026[Server Submission]: agent-device — cline/mcp-marketplace0 reactions
On Bluesky · 4
- Jul 17, 2026📦 callstack / agent-device ⭐ 3,411 (+34) 🗒 TypeScript CLI to control iOS and Android devices for AI agents — @github-trending-js.bsky.social5 likes and reposts
- Jul 27, 2026AIエージェントにモバイル端末の操作や検証をさせるためのコマンドラインツールっぽい モバイルアプリ開発の自動テストやデバッグ効率化に使えそう yug1224 starred callstack/agent-device… — @yug1224.com4 likes and reposts
- Jul 27, 2026AIエージェントにモバイル端末の操作や検証をさせるための自動化ツールっぽい スマホアプリ開発のテスト効率化に使えそうかな yug1224 starred callstack/agent-device… — @yug1224.com3 likes and reposts
- Jul 27, 2026github.com/callstack/agent... GitHub - callstack/agent-device: CLI to control iOS and Android devices for AI agents — @technews4869.bsky.social2 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- agent-deviceSkill
- android-emulatorSkill
- dogfoodSkill
- ios-simulatorSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Keep control-flow narration and review history out of implementation comments.
- Distinctive: line 39
Keep metadata at response level when it applies to the whole snapshot.
- Very specific: line 41
Before preserving a compatibility shape, run git tag --contains <commit>.
- Distinctive: line 46
Read the declaration rather than maintaining a prose copy:
- Distinctive: line 78
Add compatibility or fallback behavior only when explicitly requested or approved.
- Distinctive: line 80
Keep changes within one command family or module group unless the task explicitly crosses a boundary.
- Very specific: line 95
Use pnpm; never add package-lock.json.
- Very specific: line 133
Keep this file to repository traps and routing.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
agent-device is a CLI and daemon for automating Apple, Android, HarmonyOS, Vega, Linux, and web
targets. A long-lived daemon owns sessions; registry-derived commands route to platform runtimes.
Task routing
Load only the procedures relevant to the task:
| When the task involves | Read |
| Domain vocabulary | CONTEXT.md, docs/agents/domain.md |
| Architecture decisions | docs/adr/README.md |
| Tests or gate selection | docs/agents/testing.md |
| Writing, auditing, or sweeping tests; dispatching test-audit subagents | docs/agents/test-audit.md |
| Selector capture, polling, or interaction fast paths | docs/agents/selector-capture.md |
| Adding or changing a CLI flag | docs/agents/cli-flags.md |
| Opening or reviewing a PR | docs/agents/pull-requests.md |
| Apple runner changes or manual device verification | docs/agents/device-verification.md |
| Writing issues or PRDs, and triage labels | docs/agents/issue-tracker.md, docs/agents/triage-labels.md |
| Web backend setup or diagnostics | docs/agents/web-backend.md |
Versioned CLI help owns command semantics. Read the relevant topic when behavior is unclear; normal app-driving startup follows the skill's routing card.
Incident-derived principles
- Classify interaction dispatch paths in
packages/contracts/src/interaction-guarantees.tsand verify each claim against the native implementation. - Delegation on error proves no success-path parity. A fast path may succeed on a candidate the shared rules would refuse.
- Prove both paths are reachable before measuring a fast path against its baseline.
- Repair recurring failures at the owning type, registry, or construction path; do not add guards that reconstruct another source of truth.
- Keep control-flow narration and review history out of implementation comments. Encode invariants in names, types, boundaries, and tests; reserve comments for public API docs, tool directives, and non-obvious constraints that cannot be encoded.
- Key behavior on typed reasons and details, never error text; do not copy existing message sniffs.
- Keep metadata at response level when it applies to the whole snapshot. Append warnings through the shared response builder; never replace prior warnings.
- Before preserving a compatibility shape, run
git tag --contains <commit>. Unreleased API has no external compatibility obligation.
Declaration sites and enforcement
Read the declaration rather than maintaining a prose copy:
- commands and their surface, runtime-use, batch, and timeout traits:
packages/command-registry/src/registry.ts - daemon route ownership and request-policy traits:
src/daemon/daemon-command-registry.ts - interaction paths and guarantees:
packages/contracts/src/interaction-guarantees.ts - canonical command names:
packages/command-registry/src/catalog.ts - device runtime-use declarations and fact admission:
packages/command-registry/src/registry.ts,src/daemon/runtime-admission.ts, andsrc/platform-runtime-gateway.ts - common command input fields, and which surface may write an input key (model, operator, retired):
src/commands/common-input-fields.tsandsrc/commands/input-audience.ts
Shared selector parsing and matching belongs in @agent-device/selectors; daemon-side request
cancellation and progress in @agent-device/host-kit/request, and the caller's per-call abort guard
beside the transports it serves in src/daemon-client/daemon-client-transport.ts; cross-layer
contracts in packages/contracts/src; CLI flags in src/commands/cli-grammar; cross-surface schema
composition in src/commands/schema.
Resolve registry completeness failures at the missing declaration. Diagnose other gate failures
at their reported invariant; do not suppress them or add an allowlist to get a pass. Build interaction
responses through buildInteractionResponseData; change cross-language rules through golden tables
under contracts/fixtures/.
Hard repository rules
- Plain
.mjspackaging fixtures that cannot import TypeScript execution helpers keep child-process use local and preferexecFile. - Apple target changes keep the kernel device model, runtime-fact admission, dispatch resolution, Apple discovery, and xctestrun preparation in sync.
- iOS simulator-set scoping must never hide the host macOS desktop target.
- Skills stay minimal routing cards.
- Add compatibility or fallback behavior only when explicitly requested or approved. Otherwise, complete the migration and remove superseded paths.
- Keep changes within one command family or module group unless the task explicitly crosses a boundary. Platform-neutral work does not license inspecting every platform implementation.
Module and test topology
- Name modules for the domain question they answer and colocate machine-readable claims with their enforcement. Internal barrels are legacy; add barrels only at package boundaries.
- Files past 1,000 lines are architecture debt; split them before adding behavior, unless they are generated or fixture data.
- Tests mirror source topology one-to-one. Split a source module and its test together; do not add to
the legacy
interaction.test.tsor platformindex.test.tsaggregations. Pure moves carry their tests unchanged; rename-only hunks owe no new coverage.
Toolchain and worktree traps
- Use
pnpm; never addpackage-lock.json. OXC owns lint and format. Runpnpm formatrepository-wide, not path-scoped. - A fresh worktree requires
pnpm install --frozen-lockfile && pnpm build. Until then package and optional-peer resolution may point at another checkout and produce false failures. - Worktrees never receive
.env; no repo code reads it. When a command needs a host credential, source the main checkout's copy by absolute path (set -a && . /path/to/main/checkout/.env && set +a) instead of copying it in or writing it into the worktree. - Parallel work needs disjoint edit ownership and distinct devices. Run one full gate per host; concurrent subprocess-backed suites can produce contention timeouts.
- The layering scan reads tracked files only. Stage a new module before trusting its result.
- Fallow baselines are path-keyed. Move the matching baseline entry when renaming a file; never bulk regenerate baselines to accept unrelated findings.
Runtime and diagnostics seams
Diagnostics use @agent-device/host-kit/diagnostics. Request diagnostics belong in the session request log;
session artifact paths come from src/daemon/session-artifact-paths.ts. App/device logs remain in app.log;
Apple runner and xcodebuild output remains in runner.log.
Normalize failures with normalizeError and preserve hint, diagnosticId, logPath, and typed
details. An interaction taking five seconds or more is a daemon-log question: inspect runner
restart, stale-session recovery, accessibility failure, transport retry, and timeout evidence.
Optional probes and caches are best-effort only when the feature contract says so. Their budgets must be shorter than the required operation they precede.
Selector and replay invariants
Element interactions support selector and @ref, then record a selector chain after resolution.
Replay failures may re-resolve that chain only to produce a ranked divergence suggestion; ADR 0012
retired silent script rewriting.
Selector keys stay centralized in @agent-device/selectors; is predicates use
evaluateIsPredicate. On macOS, snapshot rectangles are absolute in window space and point actions
translate through the interaction root frame. Prefer selector or ref tests over raw coordinates.
Documentation ownership
Keep this file to repository traps and routing. Put task procedures in docs/agents/, decisions in
ADRs, and command semantics in versioned help. Link to executable registries instead of duplicating
their rules. CONTEXT.md is glossary-only: no implementation paths, decisions, or migration status.
Behavior changes update owning help/metadata and user docs. Report docs or skill changes when relevant.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

