android-harness-kit AGENTS.md

android-harness-kit AGENTS.md is an instructions file for Codex, OpenCode from rabee-elkholy/android-harness-kit. It costs 1,006 tokens per session, scanned A, original, MIT.

A set of project-specific instructions for working on an Android application with a portable test harness.

In plain words
What is it for?
Use it when building, testing, installing, launching, or reviewing this Android project.
Why use it?
It tells a coding agent which scripts and environment checks to use and requires a review process after substantial implementation work.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/rabee-elkholy/android-harness-kit/agents-md
Clone the repo
git clone --depth 1 https://github.com/rabee-elkholy/android-harness-kit

Made for: Codex, OpenCode.

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-harness-kit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rabee-elkholy/android-harness-kit/agents-md.svg)](https://agentmods.dev/instructions/rabee-elkholy/android-harness-kit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rabee-elkholy/android-harness-kit/agents-md"><img src="https://agentmods.dev/badge/instructions/rabee-elkholy/android-harness-kit/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,006 This file is loaded in full into every session.
When invoked 1,006 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01006 $0.01006
Opus 5 $0.00503 $0.00503
Sonnet 5 $0.00201 $0.00201
Haiku 4.5 $0.00101 $0.00101

Measured 3d ago against content hash 8d650cddf65f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

android-harness-kit AGENTS.md 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 3d 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.

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.

AGENTS.md · 55 lines

How it starts

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

android-harness-kit — agent instructions

Source of truth: .agents/rules/harness-rules.md. If any other file disagrees, that file wins.

This checkout uses a portable Android harness. The same rules apply in Cursor, Claude Code, Codex, Copilot, Gemini, Qwen Code, Windsurf, Cline, Roo, Amazon Q, Continue, Junie, Kilo, Goose, and any other agent that reads AGENTS.md.

Environment

  • Android SDK: this machine only (local.properties sdk.dir). Never copy another PC’s path.
  • Python: python for every harness script.
  • Gradle: python .agents/scripts/run_gradle_task.py :app:assembleDebug (picks gradlew / gradlew.bat). Never call raw gradlew from the agent.
  • Device: Physical device or emulator. Resolve the serial with adb devices. Prefer a physical device when both are connected. Never hardcode a serial.
  • Install/launch: python .agents/scripts/run_device.py install-start

Delivery gate (do not skip)

After non-trivial implementation:

  1. python .agents/scripts/review_package.py
  2. Run all five reviewers against the same HARNESS_REVIEW_PACKAGE= path (prompts in .agents/subagents/*.json). Parallel if this product can spawn children; otherwise sequential.
    • bug-reviewer-agentBUG_PASS
    • convention-reviewer-agentCONVENTION_PASS
    • security-reviewer-agentSECURITY_PASS
    • perf-anr-guardian-agentPERF_PASS
    • regression-impact-reviewer-agentREGRESSION_PASS
  3. Do not treat a single self-review as the gate. Do not invoke code-review-guard-agent. Do not wait for LGTM.
  4. python .agents/scripts/fast_kt_lint.py
  5. python .agents/scripts/run_gradle_task.py :app:assembleDebug

Antigravity hooks.json enforces this barrier automatically. Other tools must follow it from this file.

If this product cannot spawn named subagents, still run the five leaves: open each .agents/subagents/<name>.json, follow its system_prompt against the same package, and stop that leaf when it emits its *_PASS or findings. Sequential is fine. Assemble only after all five exist.

Read the full file on GitHub · 55 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. 3d ago First seen · 55 lines · 1,006 tokens per session scan A 8d650cddf65f

Subscribe to this mod's changes

android-harness-kit AGENTS.md is an instructions file published in the GitHub repository rabee-elkholy/android-harness-kit (3 stars, last pushed 4d ago), licensed MIT. It adds 1,006 tokens to every session, about $0.0050 per session on Opus 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-31.

Related

Other instructions, from other repositories

debroid AGENTS.md

Instructions for PatilShreyas/debroid, covering ai agent contributor guide 🤖, 🎯 intention & motivation, 🏗️ architecture & layers, 1. the core layer (jdi & adb orchestration) and 2. the cli layer (daemon & client).

PatilShreyas/debroid · 606 tokens

android-ai-skills copilot-instructions.md

Instructions for RanaNadeemAslam/android-ai-skills, covering android ai skills — github copilot, architecture, layered architecture, ui layer & state management and viewmodel.

RanaNadeemAslam/android-ai-skills · 14,995 tokens

android-agent-skills AGENTS.md

Instructions for piyushverma0/android-agent-skills, covering android-agent-skills — codex instructions, what this repo is, repo structure, skill.md format — never deviate and writing rules.

piyushverma0/android-agent-skills · 596 tokens

mcp-android-server-python copilot-instructions.md

Instructions for nim444/mcp-android-server-python, covering mcp android agent and available mcp tools.

nim444/mcp-android-server-python · 590 tokens

mobile-mcp-opengl AGENTS.md

AGENTS.md instructions for antonpinchuk/mobile-mcp-opengl, covering agent instructions: mobile-mcp-opengl, never trust a vision answer as ground truth, use the free primitives for steps you don't need to observe, phrase questions for short answers and prefer logs over vision when the answer is already there.

antonpinchuk/mobile-mcp-opengl · 456 tokens

sceneview copilot-instructions.md

Instructions for sceneview/sceneview, covering sceneview — github copilot instructions, when to recommend sceneview, android code generation rules, minimal 3d template and minimal ar template.

sceneview/sceneview · 1,023 tokens