android-harness-kit: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

This is rabee-elkholy/android-harness-kit's own configuration. It tells Codex and OpenCode how to work on android-harness-kit 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 android-harness-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rabee-elkholy/android-harness-kit. 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/rabee-elkholy/android-harness-kit/main/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/github.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/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-harness-kit AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.01006 $0.01006
Opus 5.5 $0.00402 $0.00402
Sonnet 5.5 $0.00201 $0.00201
Haiku 4.5 $0.00101 $0.00101

Measured 1mo ago against content hash 8d650cddf65f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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-agent → BUG_PASS
    • convention-reviewer-agent → CONVENTION_PASS
    • security-reviewer-agent → SECURITY_PASS
    • perf-anr-guardian-agent → PERF_PASS
    • regression-impact-reviewer-agent → REGRESSION_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. 1mo 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 1mo ago), licensed MIT. It adds 1,006 tokens to every session, about $0.0040 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-31.

Related

Other instructions, from other repositories