let your agent control your phone
Point repo links at phone-harness/phone-harness (PHO-95) (#171)
shawn pana31a4331ffbf4
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 68e91a8..447bf8e 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -1,7 +1,7 @@# Publish to PyPI on a version tag. Uses PyPI trusted publishing (OIDC): no# tokens stored anywhere — PyPI is told to trust this repo + workflow +# environment. First-time setup on pypi.org: Publishing -> add a pending-# publisher for project "phone-harness", owner ShawnPana, repository+# publisher for project "phone-harness", owner phone-harness, repository# phone-harness, workflow publish.yml, environment pypi.name: publishdiff --git a/README.md b/README.mdindex 0ff4ac4..0da46f2 100644--- a/README.md+++ b/README.md@@ -18,7 +18,7 @@<a href="https://phone-harness.com/docs?utm_source=github&utm_medium=readme&utm_campaign=button-docs"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/button-docs-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/button-docs.svg?v=6f742c0" width="98" height="40" align="top" alt="Docs"></picture></a><a href="https://phone-harness.com/dashboard?utm_source=github&utm_medium=readme&utm_campaign=button-cloud"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/button-cloud-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/button-cloud.svg?v=6f742c0" width="104" height="40" align="top" alt="Phone Harness Cloud"></picture></a><a href="https://phone-harness.com/dashboard?utm_source=github&utm_medium=readme&utm_campaign=callout"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/callout-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/callout.svg?v=6f742c0" width="230" height="40" align="top" alt="Try your own cloud Android phone for free!"></picture></a>- <a href="https://discord.gg/7FwGsjvjS"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-discord-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-discord.svg?v=6f742c0" width="32" height="40" align="right" alt="Discord"></picture></a><a href="https://www.linkedin.com/company/phone-harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-linkedin-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-linkedin.svg?v=6f742c0" width="32" height="40" align="right" alt="LinkedIn"></picture></a><a href="https://github.com/ShawnPana/phone-harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-github-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-github.svg?v=6f742c0" width="32" height="40" align="right" alt="GitHub"></picture></a><a href="https://x.com/phone_harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-x-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-x.svg?v=6f742c0" width="32" height="40" align="right" alt="X"></picture></a>+ <a href="https://discord.gg/7FwGsjvjS"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-discord-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-discord.svg?v=6f742c0" width="32" height="40" align="right" alt="Discord"></picture></a><a href="https://www.linkedin.com/company/phone-harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-linkedin-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-linkedin.svg?v=6f742c0" width="32" height="40" align="right" alt="LinkedIn"></picture></a><a href="https://github.com/phone-harness/phone-harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-github-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-github.svg?v=6f742c0" width="32" height="40" align="right" alt="GitHub"></picture></a><a href="https://x.com/phone_harness"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-x-dark.svg?v=6f742c0"><img src="https://raw.githubusercontent.com/phone-harness/media/main/phone-harness/icon-x.svg?v=6f742c0" width="32" height="40" align="right" alt="X"></picture></a></p>---@@ -56,7 +56,7 @@ coding agent.For the CLI, send this setup prompt to your agent (Claude Code, Codex, Grok Bot, and more):```text-Install or upgrade phone-harness to the latest stable version with uv using Python 3.12, register the skill from `phone-harness skill`, then read https://github.com/ShawnPana/phone-harness/blob/main/onboarding.md and walk me through it. Follow https://github.com/ShawnPana/phone-harness/blob/main/install.md if setup or connection fails.+Install or upgrade phone-harness to the latest stable version with uv using Python 3.12, register the skill from `phone-harness skill`, then read https://github.com/phone-harness/phone-harness/blob/main/onboarding.md and walk me through it. Follow https://github.com/phone-harness/phone-harness/blob/main/install.md if setup or connection fails.```The agent installs the CLI, asks which phone to use, and walks you through the steps that need your hands. What each phone needs:@@ -71,7 +71,7 @@ The agent installs the CLI, asks which phone to use, and walks you through the s**MCP:** add `https://mcp.phone-harness.com/mcp` to any MCP client ([setup](https://github.com/phone-harness/mcp)). Cloud Android and iPhone only for now.-**Hermes Agent:** `hermes plugins install ShawnPana/phone-harness/integrations/hermes`. See [integrations/hermes](integrations/hermes/README.md).+**Hermes Agent:** `hermes plugins install phone-harness/phone-harness/integrations/hermes`. See [integrations/hermes](integrations/hermes/README.md).**OpenClaw:** `openclaw plugins install clawhub:phone-harness`. See [integrations/openclaw](integrations/openclaw/README.md).diff --git a/SKILL.md b/SKILL.mdindex edfaa94..9c30d12 100644--- a/SKILL.md+++ b/SKILL.md@@ -31,8 +31,8 @@ no hardware and is always the fallback.- If something is missing, name it and the one step the user can take.- Ask the user only to approve sign-in and to pick a phone.-- Detail: [iPhone](https://github.com/ShawnPana/phone-harness/blob/main/setup/ios.md), [Android](https://github.com/ShawnPana/phone-harness/blob/main/setup/android.md),- [Cloud](https://github.com/ShawnPana/phone-harness/blob/main/setup/cloud.md), [API](https://github.com/ShawnPana/phone-harness/blob/main/setup/api.md).+- Detail: [iPhone](https://github.com/phone-harness/phone-harness/blob/main/setup/ios.md), [Android](https://github.com/phone-harness/phone-harness/blob/main/setup/android.md),+ [Cloud](https://github.com/phone-harness/phone-harness/blob/main/setup/cloud.md), [API](https://github.com/phone-harness/phone-harness/blob/main/setup/api.md).## Helpers@@ -527,7 +527,7 @@ that directory from the packaged defaults when it does not exist yet;an existing workspace is left as it is. To get a fresh default, deletethe workspace folder; it is recreated on the next run. For setup orpermission problems, read-https://github.com/ShawnPana/phone-harness/blob/main/install.md.+https://github.com/phone-harness/phone-harness/blob/main/install.md.## Updatesdiff --git a/install.md b/install.mdindex 7598754..6ed679f 100644--- a/install.md+++ b/install.md@@ -1,7 +1,7 @@# phone-harness installphone-harness drives a real phone. First-run flow for agents:-https://github.com/ShawnPana/phone-harness/blob/main/onboarding.md.+https://github.com/phone-harness/phone-harness/blob/main/onboarding.md.Day-to-day usage is `phone-harness skill`. It works with an **iPhone**through the macOS iPhone Mirroring app, an **Android** over adb (USB orWi‑Fi), or a phone from Phone Harness Cloud — an Android over adb, or an@@ -15,11 +15,11 @@ the helper names and signatures are in the skill (`SKILL.md`, printed by| Mode | Needs | Detail || --- | --- | --- |-| Personal iPhone | macOS 15+, paired iPhone Mirroring (iOS 18+), Accessibility + Screen Recording for the app that runs Python | [setup/ios.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/ios.md) |-| Android on the desk | macOS, Linux or Windows; adb; USB or Wireless debugging | [setup/android.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/android.md) |-| Cloud iPhone | HTTPS only; a signed-in account | [setup/cloud.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/cloud.md) |-| Cloud Android | HTTPS, adb, and outbound TCP to the phone's adb port | [setup/cloud.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/cloud.md) |-| Can't install anything | an HTTP client | [setup/api.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/api.md) |+| Personal iPhone | macOS 15+, paired iPhone Mirroring (iOS 18+), Accessibility + Screen Recording for the app that runs Python | [setup/ios.md](https://github.com/phone-harness/phone-harness/blob/main/setup/ios.md) |+| Android on the desk | macOS, Linux or Windows; adb; USB or Wireless debugging | [setup/android.md](https://github.com/phone-harness/phone-harness/blob/main/setup/android.md) |+| Cloud iPhone | HTTPS only; a signed-in account | [setup/cloud.md](https://github.com/phone-harness/phone-harness/blob/main/setup/cloud.md) |+| Cloud Android | HTTPS, adb, and outbound TCP to the phone's adb port | [setup/cloud.md](https://github.com/phone-harness/phone-harness/blob/main/setup/cloud.md) |+| Can't install anything | an HTTP client | [setup/api.md](https://github.com/phone-harness/phone-harness/blob/main/setup/api.md) |No Mac and no phone is not a dead end: the cloud needs no hardware.@@ -94,7 +94,7 @@ No uv? `pip install phone-harness` works too. Upgrade that install with## Working from a checkout (contributors)```bash-git clone https://github.com/ShawnPana/phone-harness ~/.phone-harness+git clone https://github.com/phone-harness/phone-harness ~/.phone-harnesscd ~/.phone-harnesspip install -e .```@@ -107,11 +107,11 @@ writing into the checkout.## iPhone-See [setup/ios.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/ios.md), then `phone-harness doctor ios`.+See [setup/ios.md](https://github.com/phone-harness/phone-harness/blob/main/setup/ios.md), then `phone-harness doctor ios`.## Android-See [setup/android.md](https://github.com/ShawnPana/phone-harness/blob/main/setup/android.md), then `phone-harness doctor android`.+See [setup/android.md](https://github.com/phone-harness/phone-harness/blob/main/setup/android.md), then `phone-harness doctor android`.`phone-harness android` shows known phones; `phone-harness android awake --bg`keeps one unlocked for a long task and `phone-harness android rest` ends it.diff --git a/integrations/hermes/README.md b/integrations/hermes/README.mdindex fbb82df..fdbff6b 100644--- a/integrations/hermes/README.md+++ b/integrations/hermes/README.md@@ -25,7 +25,7 @@ registered. The agent reads the helpers from that skill.## Install```bash-hermes plugins install ShawnPana/phone-harness/integrations/hermes+hermes plugins install phone-harness/phone-harness/integrations/hermes```Hermes installs the `phone-harness` package into its own environment and asksdiff --git a/integrations/openclaw/README.md b/integrations/openclaw/README.mdindex c7edf76..971d7cc 100644--- a/integrations/openclaw/README.md+++ b/integrations/openclaw/README.md@@ -32,7 +32,7 @@ first script fetches Phone Harness through uv, which takes a moment once.Until the plugin is on ClawHub, install it from a checkout:```bash-git clone https://github.com/ShawnPana/phone-harness+git clone https://github.com/phone-harness/phone-harnesscd phone-harness/integrations/openclawnpm install --ignore-scripts && npm packopenclaw plugins install npm-pack:./phone-harness-0.1.0.tgzdiff --git a/integrations/openclaw/package.json b/integrations/openclaw/package.jsonindex 343ac31..24183c3 100644--- a/integrations/openclaw/package.json+++ b/integrations/openclaw/package.json@@ -7,7 +7,7 @@"homepage": "https://phone-harness.com","repository": {"type": "git",- "url": "git+https://github.com/ShawnPana/phone-harness.git",+ "url": "git+https://github.com/phone-harness/phone-harness.git","directory": "integrations/openclaw"},"files": [diff --git a/onboarding.md b/onboarding.mdindex 3892575..35657ba 100644--- a/onboarding.md+++ b/onboarding.md@@ -13,7 +13,7 @@ the user in a sentence or two what you can drive from here, for example "Thisis a Linux box with no phone attached, so I can use a cloud iPhone or Android."iPhone Mirroring needs a Mac; without a Mac or a phone, the cloud (step 6) isthe setup. If you cannot install anything, use the API:-https://github.com/ShawnPana/phone-harness/blob/main/setup/api.md+https://github.com/phone-harness/phone-harness/blob/main/setup/api.md## 1. One question@@ -99,4 +99,4 @@ user up for anything or spend their cloud credit beyond the proof. Connectingthe phone is the user's job — relay the doctor's message and wait; don'tretry-loop. After this, day-to-day usage is the phone-harness skill.Setup reference and troubleshooting:-https://github.com/ShawnPana/phone-harness/blob/main/install.md.+https://github.com/phone-harness/phone-harness/blob/main/install.md.diff --git a/pyproject.toml b/pyproject.tomlindex 5a2c227..e0b59ae 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -27,8 +27,8 @@ dependencies = [[project.urls]Homepage = "https://phone-harness.com"-Repository = "https://github.com/ShawnPana/phone-harness"-Issues = "https://github.com/ShawnPana/phone-harness/issues"+Repository = "https://github.com/phone-harness/phone-harness"+Issues = "https://github.com/phone-harness/phone-harness/issues"[project.scripts]phone-harness = "phone_harness.run:main"diff --git a/src/phone_harness/admin.py b/src/phone_harness/admin.pyindex 47e3dba..280c98b 100644--- a/src/phone_harness/admin.py+++ b/src/phone_harness/admin.py@@ -42,7 +42,7 @@ CLOUD_HINT = ("\nNo working phone here? A cloud phone needs no hardware: ""`phone-harness cloud start PHONE` (a cloud iPhone needs no adb; ""a cloud Android needs adb). ""No install possible? Use the HTTPS API: "- "https://github.com/ShawnPana/phone-harness/blob/main/setup/api.md")+ "https://github.com/phone-harness/phone-harness/blob/main/setup/api.md")def _host_app():