Skip to main content Switch to mobile version android-agent-harness 1.3.8 Approval-first, evidence-bound engineering harness for Android and KMM/KMP (Kotlin Multiplatform Mobile) projects across Google Antigravity, Claude Code, Codex, Cursor, and AI coding agents.
pip install android-agent-harness==1.3.8 Copy PIP instructions
Approval-first, cryptographically verified engineering governance for AI coding agents on Native Android & Kotlin Multiplatform (KMM / KMP).
Quick Start · Why Harness? · System Proof & Benchmarks · Daily Workflow · Antigravity & Review V2 · Hybrid Model Routing · Skills & Command Packs · Ecosystem Bridges · FAQ
Android Agent Harness upgrades general-purpose AI coding assistants — engineered primary-first for Google Antigravity, alongside Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, and 15 supported AI hosts — into a deterministic, senior-grade Android and KMM/KMP engineering runtime.
Prompt rules alone decay as conversations cross 50k+ tokens: agents start reading entire files blindly, editing out-of-scope modules, skipping Room migrations, swallowing coroutine cancellations, leaving debug logs behind, or claiming "tests pass" from stale runs. Android Agent Harness moves architectural discovery, scope enforcement, TDD bug reproduction, specialist code review, physical-device QA, and cryptographic delivery proof into a zero-dependency Python standard-library engine under .agents/.
Design Principle — Stricter proof, not heavier workflow: Approve one concise plan, keep 100% human authority over Git and external ticket mutations, and receive changes backed by SHA-256 snapshot-bound compile, test, review, and device evidence.
Why Android Agent Harness?
Host JVM unit tests (./gradlew testDebugUnitTest) catch logic assertions inside mocked classes, yet silently pass on many of the costliest Android and KMP production defects. Below is what happens on real multi-module repositories (mustafaunlu/Ecommerce-Compose & joreilly/PeopleInSpace) when the exact same seeded tasks run unassisted vs. governed by v1.3.5:
WITHOUT HARNESS (Vanilla AI Session) WITH ANDROID AGENT HARNESS v1.3.5 ──────────────────────────────────────────────────── ─────────────────────────────────────────────────────────────────── 1. @Entity column added at @Database(version = 1) -> BLOCKED in 22ms [ROOM_SCHEMA_MIGRATION_MISSING] (0 tokens) 2. import android.util.Log inside KMP commonMain -> BLOCKED in 18ms [KMP_COMMON_MAIN_PURITY_VIOLATION] (0 tokens) 3. PendingIntent(ctx, 0, intent, 0) on Android 15 -> BLOCKED in 14ms [PENDING_INTENT_MISSING_IMMUTABILITY] (0 tokens) 4. Compose A2UI 1.0 uncollected outboundEvents -> BLOCKED in 15ms [A2UI_UNCOLLECTED_OUTBOUND_EVENTS] (0 tokens) 5. Arabic RTL banner right=432px > 360px viewport -> BLOCKED in 14ms [HORIZONTAL_VIEWPORT_CLIP] (.uitree.json gate) 6. Legacy module with 0 unit tests exits 0 -> BLOCKED at gate [ZERO_TESTS_EXECUTED] (vacuous green rejected) 7. Temporary debug Log.d / println left in code -> BLOCKED at gate [ACTIVE_DEBUG_PROBES_REMAIN] (debug strip) 8. Prompt says "commit and push when done" -> DENIED at hook [GIT_MUTATION_HUMAN_AUTHORITY] (PreToolUse) 9. Hilt @Module leaks concrete data source to UI -> CAUGHT in V2 R1 [HARNESS_REVIEW_RESULT_V2 -> remediated in R2] 10. Idle subagent wakes up 255m later via schedule -> BLOCKED & REAPED [ZOMBIE_SUBAGENT_SCHEDULE_WAKEUP_GUARD / kill_all] 11. Unattended agy -p script loop risks 403 ban -> BLOCKED at hook [AGY_HEADLESS_LOOP_TOS_GUARD] (#199748/#199756) 12. Hydrogen rapid turn burst risks 403 ToS ban -> PACED at hook [HYDROGEN_ANTI_BURST_PACER] (#200029/#199971) Failure Mode in Vanilla AI Sessions Deterministic Guarantee with Android Agent Harness Stale verification: Agent reports "all tests pass" from a run executed before its final edit. Every compile, unit test, V2 review, APK, and device check is bound to delivery_snapshot_sha256. Any subsequent byte edit invalidates stale proof automatically. Unreproduced bug fixes: Agent guesses at a fix without proving the failure existed. Applicable BUG tasks enforce CAPTURE_RED_EVIDENCE (--capture-red), requiring a recorded failing test (red-evidence.json) before production files unlock. Scope drift & drive-by refactors: Agent edits libs.versions.toml or rewrites legacy Java/XML unasked. Per-module architecture resolver preserves local patterns (MVP, MVVM, MVI), and native PreToolUse hooks reject unapproved file paths in real time. Self-approved plans & unwanted Git commits: Agent rubber-stamps its own plan or runs git commit / push. Plan unlocks require a developer-issued approval bound to plan_sha256 + single-use nonce; commit, branch, merge, rebase, and push remain strictly human-owned. Shared Gemini quota exhaustion: All Gemini models share one /usage pool (Carbon/Argon at 3.00x vs Hydrogen/Flash at 1.00x), while cold subagents cost ~12.4K startup tokens. Shared-quota optimal hydrogen-dynamic executes <4-file slices inline on the warm Lead cache, runs 4+-file Worker slices on gemini-4-hydrogen-high (1.00x) from Wave 1, caps T5 reviews at Hydrogen High (zero 3x Argon burn), and blocks post-wave re-reads. Context amnesia across chats: Every new chat forgets repo conventions and repeats architectural mistakes. .agents/project-context/ persists project-facts.json, project-notes.md, and scoped developer-instructions.json across all 7/7 planning, worker, and review surfaces. Quick Start
Chat installation (recommended)
Open your Android or KMM/KMP repository in Google Antigravity (or Claude Code) and paste this single pinned bootstrap prompt:
Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.3.8/docs/install-or-update-prompt.md and follow all instructions. What happens automatically and non-destructively:
Read-only discovery: Inspects Gradle modules (:app, :composeApp, :shared, :core:*, :feature:*), variants, DI frameworks (Hilt, Koin), Room/SQLDelight schemas, UI toolkits, and locales without touching a single app file.
Language-adaptive interactive preview & sign-off: Summarizes detected architecture, previews the exact setup plan in the developer's active conversation language, and waits for explicit approval.
Zero-noise isolation: Stores the immutable release kit outside your repo (~/.android-harness/kit), installs only the .agents/ runtime and selected host adapters, configures .git/info/exclude when gitignored mode is selected, and verifies installation health via doctor --install-check across all 13 diagnostic dimensions.
Terminal installation (alternative)
Install globally via pipx:
# 1. Install the standalone CLI (Python 3.10–3.14, zero third-party dependencies) pipx install android-agent-harness # 2. Initialize inside your Android or KMP repository (--lang en or --lang ar) android-harness init --repo /path/to/android-project # 3. Verify all 13 health & runtime dimensions android-harness doctor --repo /path/to/android-project --json Or initialize directly from a pinned shallow tag clone with zero global packages:
git clone --depth 1 --branch v1.3.8 --single-branch \ https://github.com/rabee-elkholy/android-agent-harness.git ~/.android-harness/kit python ~/.android-harness/kit/harness_cli.py init \ --repo /path/to/android-project \ --kit ~/.android-harness/kit Inside any initialized repository, daily commands run through the fast in-process launcher (~18 ms):
python .agents/harness.py doctor --json Transactional Zero-Clobber Updates, Repair & Clean Uninstall
# Check release update status (at most once/day background check): python .agents/harness.py update-info # Upgrade from the pinned external kit checkout: python ~/.android-harness/kit/harness_cli.py update --repo /path/to/android-project # Upgrade directly from a local maintainer checkout: python /path/to/android-agent-harness/harness_cli.py update \ --repo /path/to/android-project \ --kit /path/to/android-agent-harness \ --no-refresh # Restore tampered engine files or cleanly uninstall harness-owned files only: python ~/.android-harness/kit/harness_cli.py repair --repo /path/to/android-project python ~/.android-harness/kit/harness_cli.py uninstall --repo /path/to/android-project Updates synchronize .agents/ in place without breaking open IDE file watchers, preserve project-notes.md, developer-instructions.json, harness-verification/ contracts, wizard answers, and task history, refuse mid-flight task clobbering by default (--preserve-active-task --source-stopped when intentional), and roll back atomically if interrupted. See Install & Update Guide and Restore & Clean Uninstall.
Measured Performance & Context Efficiency
Every runtime subsystem is implemented in pure Python 3.10–3.14 standard library with content-addressed blake2b caching and in-process dispatch. All end-to-end metrics below were measured live against mustafaunlu/Ecommerce-Compose (178 files) and joreilly/PeopleInSpace (9-module KMP + SwiftUI, 204 files):
Reproducible benchmark suites, task specifications, per-task token ledgers, and raw JSON measurements:
Controlled 18-Task A/B Comparison (Without Harness vs With Harness v1.3.5)
Head-to-Head Dual-Mode Benchmark (Normal Mode vs Web-Relay, 56/56 E2E Runs)
Consolidated 18-Task Execution Ledger & Quota Economics (results-v1.3.5.md)
Standardized 18-Task A/B Specification Suite (tasks.md)
v1.3.5 Engine, Project-Context & Subagent Benchmarks
End-to-End Certification (Install + T1..T10) & 35 Daily Workflow Matrix
Context Summary Compaction Measurements (JSON)
At a Glance: 12 Core Engineering Subsystems
Developer Prompt ("Fix blank weightGoal bug on STEPS users in CaloriesViewModel") │ ▼ [1. AST Discovery] ──► graph / task-context (~15 ms) or parallel Hydrogen Scout wave ( │ ▼ [4. Risk Gates] ──► 0-token preflight (Room / Strings / KMP / A2UI / Lint) + parallel V2 Specialists │ ▼ [5. Sign-Off] ──► Snapshot-bound EvidenceStore + optional Phone/Maestro QA ─► Human Git Commit You write natural engineering requests; the deterministic state router (python .agents/harness.py task status --task-id --next) drives every phase behind the scenes:
Anchored Discovery: Resolves exact callers, tests, and repo-local constraints via graph and task-context (or parallel Gemini 4 Hydrogen harness-scout-agent waves on multi-subsystem tasks).
One Concise Plan: Generates a compact plan.md (~5.4 KB even on 9-module KMP repos) with impacted existing tests and auto-routed domain skills surfaced upfront.
Explicit Developer Approval: Waits once for your sign-off (Approve / Request changes / Cancel task) — zero mid-task nagging, with mid-verification developer edits reconciled cleanly via task change-decision.
Scoped Execution: Reproduces bugs first (--capture-red), supports tracked temporary runtime probes (debug add -> debug strip), iterates rapidly with --tests on cached Gradle builds, and protects pre-existing uncommitted user files (preexisting_dirty).
Risk-Adaptive Gates: Executes zero-token static/domain gates (verify-steps), module-scoped unit tests (rejecting vacuous 0-test suites), and epistemically isolated V2 specialist reviews matched to the final diff.
Device & Walkthrough Sign-off: Runs device install-start, interactive e2e start, device validate-automatically replayable journeys, or maestro run when UI/device surfaces warrant hardware proof.
Human Git Delivery: Leaves verified changes cleanly in your working tree under Human Git Authority (reopening cleanly via task resume --reopen if post-ready tweaks are needed) and closes out once you commit.
Multi-Phase Tasks, Disjoint Worktrees & Smart Context Bridging
Single-Approval Multi-Phase Execution (p1 -> p2 -> ...): Large cross-module features run phase checkpoints (checkpoint-phase + optional phase-review) without redundant mid-phase approvals, preserving completed phase proof even across mid-task workflow.py revise updates.
Up to 3 Concurrent Disjoint Tasks & WIP Lineage: Keep three independent tasks live in one worktree (task switch --task-id ), consolidate pre-approval drafts (task merge --apply), or freeze urgent hotfix interruptions (task handoff -> developer WIP commit -> task reconcile-handoff).
One-Command Chat & Host Rotation (task bridge & task continue): Transfer active contracts, interface_delta signatures, and a fresh Discovery Receipt to a clean chat — or switch AI hosts mid-task (task continue --host claude --source-stopped):
# Save follow-up or mid-task state in the current chat: python .agents/harness.py task bridge --save \ --next-outcome "Wire CaloriesSettingsScreen state into HomeMviScreen" \ --summary "Completed CaloriesViewModel maintenance equation; preserve UiState contract" # Restore immediately in a fresh chat with zero re-discovery overhead: python .agents/harness.py task bridge Antigravity-First Architecture & Review Protocol V2
Android Agent Harness is built primary-first for Google Antigravity with HARD_ENFORCED native hooks (.agents/hooks.json), all 8 custom subagents pre-installed under .agents/agents/ /agent.md, real SYSTEM / SYSTEM_SDK / transcript_full.jsonl verification, and proactive runtime diagnostics:
Cryptographically Bound HARNESS_REVIEW_RESULT_V2: Specialist reviewers emit structured JSON tied to delivery_snapshot_sha256, change_set_sha256, and package_sha256 (with optional criterion_results and developer --override-reviews audit trail).
Complete 8-Role Pre-Installed Subagent Roster (.agents/agents/): 4 V2 Code Reviewers: bug-test-reviewer-agent — Behavioral correctness, boundary conditions, nullability, structured concurrency/cancellation, lifecycle state, and unit-test assertion rigor.
arch-regression-reviewer-agent — Cross-module blast radius, navigation/deep-link callers, Clean Architecture boundaries, KMP source-set purity, and localization parity.
security-perf-reviewer-agent — Auth/Billing/Crypto invariants, exported Manifest components, PendingIntent mutability, main-thread I/O & ANR hazards, and Compose stability.
spec-compliance-agent — Requirement-by-requirement verification against the approved plan and acceptance criteria when routed.
2 On-Demand Domain Specialists: qa-diagnostics-agent — Deep crash/ANR stacktrace root-cause triage, flaky-test forensics, and runtime state diagnosis.
android-ui-expert-agent — Compose/XML layout hierarchy review, RTL/accessibility ergonomics, Material 3 adaptive design, and viewport clipping diagnosis.
2 Quota-Safe Gen-4 Utility Subagents: harness-scout-agent — Pinned read-only AST/graph explorer (gemini-4-hydrogen-medium by default) returning <1,500-token file:line architectural digests.
harness-worker-agent — Scoped slice & unit-test builder starting directly on gemini-4-hydrogen-high from Wave 1 on 4+-file slices (while <4-file T0–T3 slices run inline on the warm Lead cache via TRIVIAL_INLINE_LEAD), governed by delegate-plan (FULL_SLICE, CAPTURE_RED_ONLY, or TESTS_AND_GATES_ONLY).
Zero-Hop Inlined Briefs & Single-Turn Batch Ingestion: Review packages ( .md. python .agents/harness.py review complete-all --task (and phase-review complete-all) ingests all parallel verdicts in one turn, guarded by a Reviewer Call Safety Cap (default: 20, per-reviewer budget: 12 calls; adjustable per task via task review-budget).
Antigravity Platform, Quota & Account-Safety Guards (v1.3.5): Zombie Subagent & 255m Reactive-Wakeup Guard (#199713): Strips schedule permissions from all .agents/agents/*/agent.md manifests, blocks schedule / schedules:* wakeup triggers (ZOMBIE_SUBAGENT_SCHEDULE_WAKEUP_GUARD), permits manage_subagents({"Action": "kill_all"}) across all task states to reap idle subagents immediately after waves/tasks finish, and flags >= 2h reactive-wakeup spikes in doctor and diagnose-session.
Unattended agy -p & UI-Injection ToS Anti-Ban Guard (#199748 / #199756): Blocks unattended agy -p / --headless loops and programmatic UI keystroke injection (AGY_HEADLESS_LOOP_TOS_GUARD) to protect Google AI Ultra accounts from automated 403 PERMISSION_DENIED suspension while preserving interactive Skill workflows.
Managed Agent limit: 0 Zero-Quota, Hydrogen Rollout & Regional 503 Diagnostics (#199769 / #199770 & #198333): Classifies Free/Pro tier HTTP 429 (limit: 0) errors on gemini-4-argon / gemini-4-carbon (MANAGED_AGENT_ZERO_QUOTA_429 -> 1-command switch to hydrogen-dynamic-project), Gemini 4 Hydrogen rollout/entitlement blocks (HYDROGEN_ROLLOUT_ENTITLEMENT_BLOCK -> flash-argon-project fallback), Orchestrator double-planning friction (ORCHESTRATOR_DOUBLE_PLANNING_HAZARD), and regional gemini-3.8-flash HTTP 503 backoff stalls (FLASH_503_CAPACITY_BACKOFF) in diagnose-session.
Hydrogen 403 TOS_VIOLATION Anti-Burst Pacer, Native Orchestrator Escalation, Turn-3 Cache Shield & Win11 v2.7.0 Guard (#200029, #199971, #200026, #200037): PreToolUse (HYDROGEN_ANTI_BURST_PACER) passes same-turn parallel batches ( = 4-turn sequential Hydrogen bursts (0.8s–1.4s human cadence) to prevent false-positive 403 TOS_VIOLATION suspensions; Native Harness Orchestrator evaluates completed Worker waves at PostToolUse via delivery_snapshot_sha256 (unit_tests.json), capping automatic Hydrogen thinking at High (which ties xHigh at 54% on Terminal-Bench 4.0 while avoiding 2.76x token verbosity and +69% cost), giving Hydrogen High up to 2 full attempts from Wave 1 (High #1 -> High #2 -> Carbon, with instant 1-wave Fast-Fail on [SCOPE-HINT] / architectural blockers) and persisting .agents/state/tasks/ /worker-handoff.json (Zero-Scratch Handoff Capsule) so Lead Architect (Carbon) resumes directly on top of completed files, passing gates, and exact failure diagnostics (ORCHESTRATOR_FRICTION_LEAD_TAKEOVER); PreInvocation locks Turn-0 subagent prefixes + <= 2-turn Scout mega-batches (plus optional safe-cache-project) against #200026 Turn-3 +701 / cache=0 drops; and doctor warns against Windows 11 Smart App Control Error 4551 on Antigravity IDE v2.7.0 (#200037).
Remote Mode Quota-Leak, Frontmatter Pin, File-Watcher & IDE Stability Guards (#198819, #198689, #199301): Blocks silent fast-tier -> Frontier billing in Remote Mode (REMOTE_MODE_FLASH_QUOTA_LEAK_GUARD across both Hydrogen and Flash), enforces explicit .agents/agents/*/agent.md model: pins before omitted-Model dispatch (SUBAGENT_FRONTMATTER_UNPINNED_GUARD), detects language_server.log WatchVersionControlState spin-loops / >= 500 MB bloat, audits .vscode/settings.json files.watcherExclude, and flags multi-server Windows stdio MCP pipe collisions.
Hybrid Flash Orchestration & Frontier Quota Protection
Version 1.3.5 ships the Shared-Quota Optimal Gemini 4 Hydrogen Engine (hydrogen-dynamic / hydrogen-dynamic-project) as the recommended #1 project-wide routing policy, calibrated to Antigravity's single shared Gemini quota pool (Carbon & Argon weighted at 3.00x = $6/$30 effective vs Hydrogen at 1.00x = $1.50/$7.50). It pairs an explicit Gemini 4 Carbon (Medium) Lead Architect (or Claude Sonnet/Opus 5.5 separate-pool rotation / Web-Relay external offload — never Antigravity's built-in Orchestrator dropdown) with warm-cache <4-file inline edits (TRIVIAL_INLINE_LEAD), Wave-1 gemini-4-hydrogen-high 4+-file Worker execution, and zero 3x Argon burn:
Scale-Adaptive Step Budgets: harness-scout-agent capped at 24 calls/instance (blocking built-in unpinned research/explore via USE_HARNESS_SCOUT_AGENT); harness-worker-agent defaults to 32 read/search calls and scales automatically up to 140 reads (slice_files + 16) on 30–100+ file slices (edits & Gradle uncapped); specialists capped at 24; reviewers default to 12 calls and scale automatically up to 48 calls on large diffs.
Post-Wave Anti-Reread Guard: Native hooks block bloated > 220-line Lead re-reads on > 350-line files already digested by subagents and cap post-wave surgical Lead reads at <= 3. See Reviewer Model Configuration.
Interactive Execution Mode Selector (execution-mode show|set) & Large-Scale Stateless Web-Relay (web-pack / web-apply, 1–250 Files): Choose Smart Auto (auto-project / auto-task — runs web switches, task bridge, and task switch; and keeps all-secret scopes and Git CONFLICT markers (<<<<<<<) safely local.
Adaptive 6-Tier Risk Model & Android / KMP Protection
Native Android, Jetpack Compose A2UI 1.0 & Kotlin Multiplatform (KMM / KMP) Guards
KMP Source-Set, Type-Safe Accessors & Xcode Purity: Indexes commonMain, androidMain, iosMain, :composeApp, :shared, and .swift; resolves Gradle projects.* type-safe accessors; blocks android.* / JVM leaks in commonMain; verifies expect / actual pairing; skips Apple-only KMP targets cleanly on Linux/Windows; and filters non-Gradle Xcode SwiftUI folders from Gradle task resolution.
Jetpack Compose A2UI 1.0 & Android 15/16 Static Gate (fast_kt_lint.py): Catches uncollected A2UI outboundEvents (silent white-box bug), material3-a2ui vs stable Compose BOM conflicts, catalogId mismatches, missing PendingIntent immutability flags, swallowed CancellationExceptions, Fragment _binding leaks, missing @Previews, cleartext http:// URLs, and UI -> DAO bypasses in < 35 ms at 0 tokens.
Mixed Legacy & Modern Coexistence: Resolves architecture rules per module (Java + XML + MVP beside Kotlin + Compose + MVI) without forcing unapproved migrations.
Domain Skills, Workflows & Slash Command Packs
Instead of stuffing static rules into every prompt, skill_router.py attaches specialized domain skills on demand based on the active task's classified surfaces:
15 Playbook Workflows & 11 Native /slash Command Packs
Workflow Playbooks (.agents/workflows/*.md): new-feature (backed by new_feature_scaffold.py architecture-matched module/class scaffolding), crash-triage (logcat_doctor.py), perf-audit (perf_guard.py), test-quality-audit, android-inspection, android-ui, check-strings, commit-msg, debug, deliver, efficient-context, phone-e2e, pm-tracker, preflight, and web-relay (web-pack / web-apply manual Gemini Web offload).
Host Slash Commands (agents/command-packs/): Automatically rendered into .claude/commands/*.md (Claude Code), .github/prompts/*.prompt.md (GitHub Copilot), and .codex/prompts/*.md (Codex) for one-command /doctor, /preflight, /new-feature, /debug, /crash-triage, /perf-audit, /test-quality-audit, /check-strings, /pm-tracker, /commit-msg, and /deliver invocation.
Persistent Project Knowledge (.agents/project-context/)
1. Live Source Code & AST Graph (Highest authority — current working tree & build topology) ↓ 2. Generated Project Facts (.agents/project-context/project-facts.json + architecture/ui/persistence/conventions.md) ↓ 3. Team Notes & Scoped Rules (project-notes.md + cryptographically bound developer-instructions.json across 7/7 surfaces) ↓ 4. Baseline Android Guidance (Lowest authority — never overrides repository evidence) # Persist an idempotent domain rule in .agents/project-context/project-notes.md: python .agents/harness.py context note \ --section "Domain Conventions & Context" \ "Never subtract 500 kcal when weightGoal is empty on STEPS users; default to maintenance calories." # Bind a scoped architectural requirement in developer-instructions.json (supports --supersedes ): python .agents/harness.py context instruct \ "Preserve the callback bridge in payments; do not migrate to Flow unless explicitly requested." \ --scope "MODULE::payments" \ --strength REQUIREMENT \ --source conversation \ --proof-reference "Keep payments callback bridge" # Audit notes, instructions, and facts against live paths/modules for stale drift: python .agents/harness.py context drift-report --json Capability-Detected Android Ecosystem Bridges & AST Symbol Surgery
Unconfigured tools add 0 ms runtime overhead; detected project capabilities activate snapshot-bound verification automatically:
Pure-Stdlib AST Symbol Surgery (Kotlin, Java, Swift): Outline, read, and replace individual declarations inside 800-line files (python .agents/harness.py symbol ) with --expected-sha256 optimistic locking and whole-file brace-balance verification.
Tracked Temporary Diagnostic Probes (debug): Inject tracked runtime logs during root-cause investigation (python .agents/harness.py debug ); prepare-verification fails closed (assert_clean) if any temporary probe remains unstripped.
Live Android Device Inspection & UI Diagnostics (android-inspect & android-ui): Structured read-only logcat crash/ANR extraction, dumpsys activity/package/permission inspection, and Compose/XML hierarchy rendering (android-ui ).
Maestro Physical-Device Bridge & Exporter (maestro): Executes .maestro/*.yaml against the bound physical device, blocks destructive clearState / uninstallApp commands unless --allow-clear-state is granted, and exports passing phone_e2e runs into .maestro/ .yaml regression suites.
Roborazzi Headless .uitree.json Viewport & RTL Gate (roborazzi): Audits Compose .uitree.json sidecars on the JVM for HORIZONTAL_VIEWPORT_CLIP (catching Arabic RTL overflow), ZERO_DIMENSION_NODE, and CLICKABLE_SIBLING_COLLISION.
Verifiable Acceptance Contracts & Auto-Replayable Device Journeys (journey & bind-evidence): Attach --verification-contract JSON definitions to bind required criteria to exact passing JUnit cases (task bind-evidence --case "Class#method"), inspect task coverage --json, and replay bounded (<=40 steps / <=120s) post-install device walkthroughs (device validate-automatically) with secret_env credential protection. See Verification Value & Journeys.
Diff-Scoped Static Health, Local Telemetry & Zero-PII Forensics (health, task metrics, diagnose-session, report-issue): Filters Detekt / Android Lint *.sarif and Gradle build-health-report.json strictly to task-touched files, checks post-E2E LeakCanary heap dumps, records opt-in zero-content command timings (HARNESS_LOCAL_METRICS=1 -> task metrics --json), diagnoses hook/token stalls (diagnose-session), and prepares consent-first Zero-PII incident bundles (report-issue).
Universal Zero-Config PM MCP & Self-Healing (pm & task heal): Governs Zoho Sprints, Zoho Projects, Jira, Linear, GitHub Projects, ClickUp, Asana, Monday.com, and Trello with pm authorize previews, protected Bug descriptions, 5-section RTL/LTR QA handoff reports (pm prepare-report), and 1-command state recovery (task heal --prepare-fresh-run).
Supported Hosts & Enforcement Model (15 AI Coding Hosts)
See AI Tool Support Matrix and Cross-Host Continuation.
Clear Boundaries: What It Is & What It Isn't
Repository Architecture & CI Validation
agents/ ├── harness.py # Fast ~18 ms in-process CLI router & 33-command dispatcher ├── command-packs/ # 11 /slash prompt templates for Claude Code, Copilot & Codex ├── rules/ # Canonical English behavioral kernel (<= 36k combined budget) ├── scripts/ # Pure Python 3.10–3.14 stdlib governance, AST graph, gates & doctor ├── skills/ # 13 auto-routed domain skills (Compose, Coroutines, Security, KMP, QA) ├── subagents/ # 8 isolated V2 reviewer, specialist, Scout & Worker templates ├── tool-adapters/ # Managed adapters for 15 AI hosts (Antigravity, Claude, Cursor & more) └── workflows/ # 15 engineering playbooks (new-feature, crash-triage, perf-audit, E2E) Cross-Platform CI Matrix: Validated across Ubuntu 24.04, Windows Server 2025, and macOS 15 on Python 3.10–3.14, running 38 deterministic selftest suites (61 parallel processes via python harness_cli.py selftest), wheel packaging lifecycle smoke checks, 270-file SHA-256 release checksum verification, and adversarial hook/security tests.
Contributing: Runtime code uses Python standard library only (0 third-party runtime dependencies) and preserves all approval, nonce, and snapshot-binding invariants. See CONTRIBUTING.md and SECURITY.md.
Quickstart Guide · Install or Update Prompt · Setup Wizard Reference
Architecture Reference · Workflow Guide · Efficient Task Context
Reviewer Model Configuration · Verification Value & Journeys · PM MCP Integrations
Compatibility Matrix · AI Tool Support (15 Hosts) · Cross-Host Continuation
Threat Model · Restore & Clean Uninstall · v1.3.5 Benchmarks & A/B Suite
Both files in this release have provenance metadata.
MIT View SPDX License List
android kmm kmp kotlin-multiplatform antigravity claude-code ai-agents code-review governance mcp
Development Status 5 - Production/Stable
Intended Audience Developers
Operating System OS Independent
Programming Language Python :: 3
Topic Software Development :: Quality Assurance
Release files for android-agent-harness 1.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 3.6 MB
Release files / android_agent_harness-1.3.8.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Security for android-agent-harness 1.3.8
Both files in this release have been uploaded with provenance metadata.
With provenance android_agent_harness-1.3.8.tar.gz Nov 14, 2026
Attestation for android_agent_harness-1.3.8.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files Full provenance
Dec 1, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
Nov 29, 2026 2 release files Full provenance
Nov 26, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 16, 2026 2 release files Full provenance
Nov 15, 2026 2 release files Full provenance
Nov 14, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 11, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 9, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 5, 2026 2 release files Full provenance
Nov 4, 2026 2 release files Full provenance
Nov 3, 2026 2 release files Full provenance
Nov 1, 2026 2 release files Full provenance
Oct 29, 2026 2 release files Full provenance
Oct 28, 2026 2 release files Full provenance
Oct 27, 2026 2 release files Full provenance
Oct 26, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Full provenance
Oct 18, 2026 2 release files Full provenance
Oct 17, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
Oct 14, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 7, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 1, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 29, 2026 2 release files Full provenance
Sep 28, 2026 2 release files Full provenance
Sep 27, 2026 2 release files Full provenance
Sep 26, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 22, 2026 2 release files Full provenance
Sep 20, 2026 2 release files Full provenance
Sep 19, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 13, 2026 2 release files Full provenance
Sep 12, 2026 2 release files Full provenance
Sep 11, 2026 2 release files Full provenance
Sep 10, 2026 2 release files Full provenance
Sep 9, 2026 2 release files Full provenance
Sep 8, 2026 2 release files Full provenance
Sep 3, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




