argent-device-interact

argent-device-interact is a skill for Claude Code, Codex from software-mansion/argent. It costs 44 tokens per session (800 once invoked), scanned A, original, Apache-2.0.

A common control interface for interacting with an iOS simulator, Android emulator, or Chromium app, such as a browser or Electron desktop app.

In plain words
What is it for?
Use it to tap, swipe, scroll, type, press hardware buttons, open URLs, manage Chromium tabs, wait for interface changes, and take screenshots.
Why use it?
It lets the same interaction approach work across different device types instead of requiring separate controls for each platform.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to tap, swipe, scroll, type, press hardware buttons, open URLs, manage Chromium tabs, wait for interface changes, and take screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/software-mansion/argent/argent-device-interact
About the project

Argent is a toolkit that lets an AI assistant control and inspect iOS, Android, TV, Electron, and Chromium applications through simulators, emulators, physical devices, or desktop connections. It is for developers who want an agent to interact with interfaces, reproduce issues, test features, debug applications, or run profiling tasks. The catalogue add-ons expose Argent's device-control and development workflows to coding agents.

software-mansion/argent · 3,292 stars · on GitHub · argent.swmansion.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add software-mansion/argent --skill argent-device-interact
Clone the repo
git clone --depth 1 https://github.com/software-mansion/argent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for argent-device-interact

README.md
[![agentmods](https://agentmods.dev/badge/skills/software-mansion/argent/argent-device-interact/github.svg)](https://agentmods.dev/skills/software-mansion/argent/argent-device-interact)
Your own site
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-device-interact"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-device-interact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for argent-device-interact

Your own site · 80×15
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-device-interact"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-device-interact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 800 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 29 Nov 2026
  • Snyk fail 3 Dec 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 8 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 194
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 196
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 203
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Prompt Injection · line 88
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 91
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 92
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 94
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Excessive Agency · line 202
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00800
Opus 5.5 $0.00018 $0.00320
Sonnet 5.5 $0.00009 $0.00160
Haiku 4.5 $0.00004 $0.00080

Measured yesterday against content hash 6b564ee8592f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

argent-device-interact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/argent-device-interact/SKILL.md · 31 lines

How it starts

The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Each tool's description carries its parameters, defaults, and return shape. This skill covers routing and gotchas those descriptions don't state.

Target Routing

  • Get a udid from list-devices (or boot-device if none is ready). Full setup: argent-ios-simulator-setup / argent-ios-device-setup / argent-android-emulator-setup.
  • Before driving a specialized target, read the matching instructions below:
    • Physical iPhone (kind: "device"): argent-ios-device-setup and argent-ios-device-interact
    • Mac app (platform: "macos"): argent-macos-app-interact
    • TV (runtimeKind: "tv" or platform: "vega"): argent-tv-interact
    • Chromium / HarmonyOS / foldables (foldable: true): references/chromium.md, references/harmonyos.md, references/foldables.md
  • Load any deferred tool's schema (e.g. gesture-custom, gesture-pinch, gesture-rotate) before its first call so numbers don't serialize as strings.
  • If delegating device tasks to sub-agents, ensure they have MCP permissions.

Core Rules

  • Open apps directly: use launch-app or open-url, never tap home-screen icons. Use restart-app for clean in-memory state.
  • Use the returned element tree: interaction tools already attach a downscaled screenshot and --- Elements after action (describe) --- with normalized [0,1] tap frames. Tap at a line's tap=(x,y) when it has one, else at the frame center. Call describe only when no fresh tree covers the current screen. Never derive routine tap coordinates from pixels.
  • Tree & screenshot IDs: full trees/screenshots carry a Tree id / Screenshot id. When unchanged or slightly changed, a later result references that id (unchanged note or -/+ diff); call describe or screenshot if that earlier result isn't in context. An identical tree does not mean the action did nothing.
  • Batch known steps: use run-sequence when multiple consecutive steps are known ahead of time (scroll sweeps, type + enter, form fill + submit).
  • Text entry: tap the field first (keyboard with no focus is a silent no-op). keyboard takes either text or key, not both. Keep keyboard as default; reserve paste for real paste flows (OTP, long tokens). Use {{secret:<NAME>}} placeholders for credentials and navigate/submit before capturing non-secure fields.
  • Wait server-side: never poll screenshot or describe in a loop. Use await-ui-element, or use await-screen-idle before tapping moving UI.
  • Dialogs: describe exposes simulator/emulator system & permission dialogs; prefer answering the app's dialog over settings-permissions.
  • Screenshots: keep the default downscaled capture for UI checks; do not pass scale: 1.0 as a tapping/readability aid.

Read the full file on GitHub · 31 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 6b564ee8592f
  2. 6d ago Changed · -73 lines · -39 tokens per session 882aad97bf79
  3. 8d ago Changed · +2 lines c177b5826df1
  4. 9d ago Changed f51e4770485a
  5. 11d ago Changed · +1 lines 3fc452bd635e
  6. 12d ago Changed a07e67462cf0
  7. 16d ago Changed fc1aa1e606c2
  8. 23d ago Changed · +1 lines 490d83d04b59
  9. 26d ago Changed · -302 lines · +5 tokens per session 1e6317c32769
  10. 1mo ago First seen · 402 lines · 78 tokens per session scan A d9b41e9aede6

Subscribe to this mod's changes

argent-device-interact is a skill published in the GitHub repository software-mansion/argent (3,292 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 800 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

argent-device-interact compared with skills from other repositories

argent-device-interact next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
argent-device-interactsoftware-mansion/argentSkill3.3ktodayApache-2.0A44Claude Code, Codex
truesheet-usagelodev09/react-native-true-sheetSkill2.1ktodayMITA171Claude Code, Codex
react-nativeericrisco/rsc-harnessSkill707yesterdayMITA90Claude Code, Codex
uniwinduni-stack/uniwindSkill1.8ktodayMITA130Claude Code, Codex
Detox Mobile TestingPramodDutta/qaskillsSkill2531mo agoMITA48Claude Code, Codex
migrate-nativewind-to-uniwinduni-stack/uniwindSkill1.8ktodayMITC82Claude Code, Codex
react-native-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A62Claude Code