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_ENFORCEDunless 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.14/docs/install-or-update-prompt.md and follow all instructions.
The AI agent will:
- Perform read-only discovery of your Android project structure.
- Ask setup questions directly in chat with recommended choices marked with (Recommended).
- Present a precise installation plan with an executable non-interference snapshot guarantee.
- Wait for your explicit approval before modifying anything or provisioning the kit.
- Provision the pinned kit into
~/.android-harness/kit, verify integrity, and perform an atomic clean install or update. - Run
doctorverification 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.14 --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.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| android_agent_harness-1.0.14.tar.gz | 319.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| android_agent_harness-1.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 709.6 kB
Release files / android_agent_harness-1.0.14.tar.gz
| Download URL | android_agent_harness-1.0.14.tar.gz |
|---|---|
| Size | 319.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de3fac09bedb49e55425a6c868b0ea05c4df11a62a16727a991218a6e1315c4
|
|
BLAKE2b-256 checksum How to use checksums |
6268b7673242e3d8273cffb0cfddfcacc1d4a65802484e6c1de51d4cefb08d9f
|
| 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 logRelease files / android_agent_harness-1.0.14-py3-none-any.whl
| Download URL | android_agent_harness-1.0.14-py3-none-any.whl |
|---|---|
| Size | 389.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
818f879ec1a6ec8ff9ffcb624adb73610a407517c1cb24d3fa5e83817d68cda5
|
|
BLAKE2b-256 checksum How to use checksums |
bcdaf1f646b86ffa8350188f693f533afec03f8097a3c1932f161b66cf978686
|
| 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