Skip to main content

Android Agent Harness

A local, zero-dependency development harness for Android projects. It is designed to improve AI-assisted implementation quality while keeping model calls, build work, and developer interruption proportional to the actual change.

v1 guarantees

  • Analysis and planning are read-only. No implementation starts until the developer explicitly approves the exact plan.
  • A deterministic classifier selects only relevant skills, tests, reviewers, build steps, and device checks.
  • Every gate is bound to one repository, approved plan, complete delivery snapshot, change set, run id, harness version, and producer.
  • Evidence is append-only. The final verifier is read-only and rejects stale, incomplete, forged, or cross-run evidence.
  • APK output is an artifact set, so split APKs are built, hashed, installed, and launched as one identity.
  • Clean install, same-major update, dry-run uninstall, backup, rollback, and user-file ownership are explicit lifecycle operations.
  • Zoho Sprints keeps the existing workflow and never changes without update zoho, an approved plan that lists --external-write zoho_sprints, and a stable operation id.
  • Hosts report their real enforcement level. Executable hooks can hard-enforce covered mutations; conversational approval remains RULE_ENFORCED unless a future host supplies non-forgeable proof.

Install

Chat installation (recommended)

Open the Android project root in your coding agent, then paste:

Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.0.17/docs/install-or-update-prompt.md and follow all instructions.

The AI agent will:

  1. Perform read-only discovery of your Android project structure.
  2. Ask setup questions directly in chat with recommended choices marked with (Recommended).
  3. Present a precise installation plan with an executable non-interference snapshot guarantee.
  4. Wait for your explicit approval before modifying anything or provisioning the kit.
  5. Provision the pinned kit into ~/.android-harness/kit, verify integrity, and perform an atomic clean install or update.
  6. Run doctor verification and verify zero application files were altered.

Terminal installation (alternative)

Use a clean Android Git checkout with its Gradle Wrapper and a kit checkout pinned to the same immutable release tag:

git clone --depth 1 --branch v1.0.17 --single-branch https://github.com/rabee-elkholy/android-agent-harness.git /path/to/android-agent-harness
python /path/to/android-agent-harness/harness_cli.py init --repo /path/to/android-project --kit /path/to/android-agent-harness

The wizard writes local answers, then the lifecycle engine stages and validates .agents, creates only selected host adapters, records ownership, and keeps all harness files out of the shared Git index through .git/info/exclude.

Legacy pre-v1 installs are replaced atomically in one process so active coding-agent hooks are not broken:

python harness_cli.py init --replace-legacy --repo /path/to/android-project --kit .

Task lifecycle

python .agents/scripts/workflow.py draft --repo . --task-id TASK-1 --outcome "Describe the result" --expected-surfaces BUSINESS_LOGIC --expected-modules :app
# Present plan and wait for explicit approval.
python .agents/scripts/workflow.py approve --repo . --task-id TASK-1 --source conversation --proof-reference MESSAGE-ID --enforcement-tier RULE_ENFORCED
python .agents/scripts/workflow.py begin --repo . --task-id TASK-1
# Implement the approved scope.
python .agents/scripts/workflow.py prepare-verification --repo . --task-id TASK-1

The developer—not the AI agent—approves the plan. For a sensitive final snapshot, the developer separately approves it (solicited interactively in chat via ask_question, or executed directly from their terminal):

# In chat: the agent prompts via ask_question and records with --source conversation
python .agents/scripts/workflow.py approve-sensitive --repo . --task-id TASK-1 --source conversation --proof-reference DEVELOPER-CONFIRMATION --enforcement-tier RULE_ENFORCED

# In terminal: the developer may also run directly
python .agents/scripts/workflow.py approve-sensitive --repo . --task-id TASK-1 --source developer_terminal --proof-reference LOCAL-CONFIRMATION --enforcement-tier RULE_ENFORCED

Read current-run.json and execute only the selected gates. If reviews are required, run review_package.py, dispatch exactly the selected reviewers, then ingest their unchanged responses or structured reports with record_review.py.

Finish with:

python .agents/scripts/workflow.py verify --repo . --task-id TASK-1
python .agents/scripts/workflow.py complete --repo . --task-id TASK-1

Lifecycle

python harness_cli.py update --repo /path/to/android-project --kit /path/to/new-kit
python harness_cli.py uninstall --repo /path/to/android-project          # dry run
python harness_cli.py uninstall --repo /path/to/android-project --apply
python harness_cli.py doctor --repo /path/to/android-project --json
python harness_cli.py selftest --kit .

Updates are allowed only within architecture major 1, refuse modified managed files, preserve project-tailored Android references and Zoho defaults, validate the staged engine, and roll back on failure. Uninstall restores pre-install files and places modified harness-owned material in .harness-recovery.

See architecture, workflows, and quickstart.

Release files for android-agent-harness 1.0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for android-agent-harness 1.0.17
File Size Uploaded
android_agent_harness-1.0.17.tar.gz 323.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for android-agent-harness 1.0.17
File Interpreter ABI Platform
android_agent_harness-1.0.17-py3-none-any.whl Python 3 none any Details

Total release size: 717.6 kB

Release files / android_agent_harness-1.0.17.tar.gz

Download URL android_agent_harness-1.0.17.tar.gz
Size 323.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f83f923c37e35bf5b4ee2bbb3795e6675e6e64532d710195906587856ce08daa
BLAKE2b-256 checksum
How to use checksums
57fcb65e81375470ca06fedc95216cb387d7889e381854f4ed2afc65fc7479fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / android_agent_harness-1.0.17-py3-none-any.whl

Download URL android_agent_harness-1.0.17-py3-none-any.whl
Size 393.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f677378675616e0e3afa831ce742bef2bbe7724eb5c2168726f050c13e8a4c5e
BLAKE2b-256 checksum
How to use checksums
f84b8aae3979d96da45c8a00054791f1732f8fb08d70fc5eece64e749849c936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.60

2 release files

1.0.59

2 release files

1.0.58

2 release files

1.0.57

2 release files

1.0.56

2 release files

1.0.55

2 release files

1.0.54

2 release files

1.0.53

2 release files

1.0.52

2 release files

1.0.51

2 release files

1.0.50

2 release files

1.0.48

2 release files

1.0.47

2 release files

1.0.46

2 release files

1.0.45

2 release files

1.0.44

2 release files

1.0.43

2 release files

1.0.42

2 release files

1.0.41

2 release files

1.0.40

2 release files

1.0.39

2 release files

1.0.38

2 release files

1.0.37

2 release files

1.0.36

2 release files

1.0.35

2 release files

1.0.34

2 release files

1.0.33

2 release files

1.0.32

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.29

2 release files

1.0.28

2 release files

1.0.26

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.23

2 release files

1.0.22

2 release files

1.0.21

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

This release

1.0.17 This release

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page