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.
npx agentmods add instructions/droidrun/mobile-harness/agents-mdgit clone --depth 1 https://github.com/droidrun/mobile-harnessWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00879 | $0.00879 |
| Opus 5 | $0.00439 | $0.00439 |
| Sonnet 5 | $0.00176 | $0.00176 |
| Haiku 4.5 | $0.00088 | $0.00088 |
Grade A, and why
mobile-harness AGENTS.md scanned grade A with 1 finding 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 2d ago.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Treat raw ADB, Android Portal HTTP curl, and iOS Portal curl as setup, diagnostics, or recovery paths only. How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mobile Harness
This repository tells an AI agent how to operate Android and iOS devices through existing control surfaces.
Normal device control always goes through from mobilerun_core import Mobilerun.
Do not import local drivers directly for ordinary agent work.
Load Order
- Update once per session, before platform work (
<harness-root>is the directory containing thisAGENTS.md):git -C <harness-root> pull --ff-only<harness-root>/.venv/bin/python -m pip install -U "mobilerun-core[local]" mobilerun-core-local mobilerun-sdkThe explicitmobilerun-core-localandmobilerun-sdkentries keep those runtime packages upgraded even when they are already satisfied transitive dependencies. Agents should still import onlymobilerun_core. If<harness-root>/.venvdoes not exist yet (a fresh clone or a fresh skills-CLI copy), skip this step and readinstall.mdfirst. Skip the pip step if the libraries are pinned. Run the git pull only if<harness-root>/.gitexists; without it (for example a copy installed with the skills CLI),git -Coperates on an enclosing repository — runnpx skills updatefrom the project where the skill was installed instead. If offline, continue with the current version. On any other failure, readUPDATE.md.
- Decide the target platform before acting.
- For Android work, read
platforms/android/GUIDE.md. - For iOS work, read
platforms/ios/GUIDE.md. - Do not load all files.
- When the foreground app id is known, read only that app card if it exists:
- Android:
apps/android/<package>/CARD.md - iOS:
apps/ios/<bundle-id>/CARD.md
- Android:
- Read platform recovery only after a control, setup, state, or connectivity failure.
- Read the credentials guide under
core/credentialswhen a screen asks for login, API keys, OTP, 2FA, payment, passcode, or other secrets. - Write to
<harness-root>/credentials/<app-id>.mdonly when the user explicitly asks for local credential files. - Read
core/memory/GUIDE.mdbefore reading or writing files under<harness-root>/memory/.
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.
- 2d ago First seen · 50 lines · 879 tokens per session scan A b3f720e4db8c
mobile-harness AGENTS.md is an instructions file published in the GitHub repository droidrun/mobile-harness (338 stars, last pushed 8d ago), licensed MIT. It adds 879 tokens to every session, about $0.0044 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
MobiAI-Core CLAUDE.md
Instructions for ArisGuimera/MobiAI-Core, covering mobiai — mobile development ai ecosystem, bootstrap and principles.
freetube CLAUDE.md
Instructions for leshkodev/freetube, covering claude.md, 1. what this project is, 2. non-negotiable constraints, 3. tech stack (locked) and 4. project structure.
ConsultMe CLAUDE.md
Instructions for Tarek-Bohdima/ConsultMe, covering claude.md, project context, common commands, module graph and conventions enforced by tooling.
claude-status CLAUDE.md
Instructions for gmr/claude-status, covering claude.md, project overview, build & test, platform & language and dependencies (spm).
DensityToggle CLAUDE.md
Instructions for channelramble/DensityToggle, covering density toggle - wear os display density control, goal, current status, how it works and how auto mode decides (v5).
phone-mcp CLAUDE.md
Instructions for premex-ab/phone-mcp, covering claude.md, project overview, build commands, architecture and module layout.