RIPDPI: Agent for Claude Code

.claude/agents/android-test-runner.md

android-test-runner is an agent for Claude Code from po4yka/RIPDPI. It costs 38 tokens per session (956 once invoked), scanned A, original, BSD-3-Clause.

An Android test runner that runs instrumentation tests, UI journeys, and command-line journey suites on an emulator or device. It also collects failure files for investigation.

In plain words
What is it for?
Use it to run Android UI and device tests, manage emulator slots, select the tested variant, and capture artifacts after failures.
Why use it?
Android tests can depend on the exact app variant, device, and emulator setup, making failures hard to reproduce manually. The runner uses the repository's current build and device configuration.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is po4yka/RIPDPI's own configuration. It tells Claude Code how to work on RIPDPI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything RIPDPI configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/ci/run-android-e2e-emulator.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to po4yka/RIPDPI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/po4yka/RIPDPI/main/.claude/agents/android-test-runner.md
Clone the repo
git clone --depth 1 https://github.com/po4yka/RIPDPI

Made for: Claude Code.

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 android-test-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/po4yka/ripdpi/android-test-runner/github.svg)](https://agentmods.dev/agents/po4yka/ripdpi/android-test-runner)
Your own site
<a href="https://agentmods.dev/agents/po4yka/ripdpi/android-test-runner"><img src="https://agentmods.dev/badge/agents/po4yka/ripdpi/android-test-runner/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 android-test-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/po4yka/ripdpi/android-test-runner"><img src="https://agentmods.dev/badge/agents/po4yka/ripdpi/android-test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 956 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.
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.00038 $0.00956
Opus 5.5 $0.00015 $0.00382
Sonnet 5.5 $0.00008 $0.00191
Haiku 4.5 $0.00004 $0.00096

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

Security

Grade A, and why

android-test-runner 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.

.claude/agents/android-test-runner.md · 78 lines

How it starts

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

You are the Android test orchestrator for RIPDPI. Derive task names and matrix details from the current Gradle model, justfile, and .github/workflows/ci.yml; never infer an unflavored debug variant.

For local emulator suites and failure-artifact capture, read docs/contributor/android-emulator-pool.md and run the complete command under scripts/ci/android-avd-pool.py. Reuse a compatible idle slot and keep its lease until artifact capture finishes. Use the exported ANDROID_SERIAL for every device operation. Temporary devices require a test-specific reason and wrapper cleanup. Gradle managed devices retain their separate serialized lane.

Android documentation pre-flight

Before making a claim about AndroidJUnitRunner, UiAutomator, Compose test APIs, or androidx.test, require the Android CLI and use its current two-step documentation flow:

command -v android >/dev/null 2>&1 || { echo "ERROR: Android CLI unavailable"; exit 2; }
android docs search '<API or behavior>'
android docs fetch '<kb-url>'

Variants and ABI selection

  • The tested application variant is GithubFullDebug.
  • Local native ABI defaults to host through ripdpi.localNativeAbisDefault=host; override with -Pripdpi.localNativeAbis=x86_64 for an x86_64 emulator.
  • Build with ./gradlew :app:assembleGithubFullDebug :app:assembleGithubFullDebugAndroidTest.
  • The universal debug APK used by automation is app/build/outputs/apk/githubFull/debug/app-github-full-universal-debug.apk; scripts may also select another APK under that flavored directory.

Suite selection

Use the narrowest suite that covers the request:

# One connected emulator/device
./gradlew :app:connectedGithubFullDebugAndroidTest -Pripdpi.localNativeAbis=x86_64

# Managed-device group mirrored by just/CI
./gradlew :app:ciDevicesGroupGithubFullDebugAndroidTest

# Network E2E orchestration and fixture arguments
bash scripts/ci/run-android-e2e-emulator.sh

# JVM/Kotlin aggregate coverage
./gradlew coverageReport -Pripdpi.skipNativeBuild=true

Read the full file on GitHub · 78 lines

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 First seen · 78 lines · 38 tokens per session scan A 2930d96ad8ba

Subscribe to this mod's changes

android-test-runner is an agent published in the GitHub repository po4yka/RIPDPI (85 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 38 tokens to every session and 956 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-11-07.

Related

android-test-runner compared with agents from other repositories

android-test-runner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
android-test-runnerpo4yka/RIPDPIAgent85yesterdayBSD-3-ClauseA38Claude Code
ui-test-writerahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA49Claude Code
android-testing-uikrutikJain/android-agent-skillsAgent147mo agoMITA24Claude Code
rn-pr-qaLykhoyda/rn-dev-agentAgent2013d agoMITA299Claude Code
liquid-glass-guideahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA54Claude Code
network-implahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA58Claude Code
android-compose-accessibilitykrutikJain/android-agent-skillsAgent147mo agoMITA24Claude Code