diff --git a/CHANGELOG.md b/CHANGELOG.md index 308f83e9..34f9ce3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,9 @@ takes `--dry-run`. ## Unreleased - - Attach the Android APK to releases from the maintainer's computer. The Android app checks on launch, daily while open, or through Check for updates in Settings. Install downloads the APK with progress and a size check, then uses Android's installer and its required confirmation. Dismissing a version hides it until a newer one ships. +- The README, the web page and [Phone](docs/phone.md#android-app) lead with the Android app: download `pitwall-phone.apk` from the latest release and open it, and after that the app installs its own updates. The web page stays for iPhones and anyone who wants no app. New screenshots show the app's tab list and a chat. + ## v0.2.9 - Keep messages sent during a Claude Code turn in the phone chat at their transcript position after reopening it. diff --git a/README.md b/README.md index 3164df6c..727d2ebf 100644 --- a/README.md +++ b/README.md @@ -139,17 +139,22 @@ them too.
-The phone page's tab list: tabs by session and group, each with its state, agent and branch, and what it asks - -**Or follow it from your phone.** Pair it by QR code and it lists every tab -as the sidebar does, live. Tap one to read its agent's chat as it happens, -send it a message, queued while it works, answer an approval, or switch -Claude Code's model and effort. A shell never takes typing from the phone, -and the page never shows a pane's screen. There -is no account and no relay: the phone talks to your computer over your own -network. [Push notifications](docs/phone.md#notifications) need separate setup: -a certificate the phone trusts, Turn on on the page, and on an iPhone the Home -Screen. They go through the browser's push service, encrypted. +The Android app's tab list: a Waiting on you row, then the demo session's tabs on two machines, box and laptop, each under a line with its name and latency; box's api group holds Add rate limits waiting for approval with Allow and Deny, and Review the PR asking for input with Reply + +**Or follow it from your phone.** First turn the phone page on in Settings, +Phone and give it an address the phone can reach, as +[docs/phone.md](docs/phone.md) shows. On Android, +[download the app](https://github.com/quanticstudios/pitwall/releases/latest/download/pitwall-phone.apk) +(arm64, Android 9 or later) and scan the QR code `pitwall remote pair` +shows. The app lists every tab from every computer you pair. Tap one to read +its agent's chat, send a message even mid-turn, or answer an approval or a +question. [The guide](docs/phone.md#android-app) covers pictures, markdown, +updates and model controls. + +On an iPhone, or with no app, the same pairing opens +[a web page](docs/phone.md) with the tab list and chats. Either way the +phone talks to your computer over your own network, with no account and no +relay.
diff --git a/docs/index.html b/docs/index.html index 7e5c9279..4f85887d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -281,11 +281,12 @@

See every agent on one board

Answer without switching windows

Answer a prompt from its row, without opening the tab. A Claude Code or Codex permission prompt shows Allow and Deny, plus Always when the prompt has one clear option to stop asking. When pitwall recognizes a whole Claude Code form on screen, a single-choice question shows its options as buttons, and a plan that offers manual approval shows Approve plan, which never raises the permission mode. Otherwise the row offers Open tab, or Reply for a question with no menu.

An option, Always or Approve plan presses only if the screen still offers it. Allow and Deny check that the row is current and a permission prompt is on screen. When the agent's hook reported a shell command, Allow, Deny and Always also need the prompt to show that command, as much of it as fits on screen; otherwise nothing is pressed and pitwall tells you to answer in the tab. A command with a line break or a tab is always refused this way. An edit, a fetch or any other prompt with no reported command gets no such comparison, so read it first. Ctrl+Shift+Y and Ctrl+Shift+D press them, and on Linux the notification has them too.

-

Or answer from your phone. Pair it by QR code and it lists what needs you, with Allow and Deny and a box for typed answers. A menu on an agent's screen takes no typed reply, so answer that one in its tab or from the sidebar. There is no account and no relay: the phone talks to your computer over your own network. Push notifications need separate setup: a certificate the phone trusts, Turn on on the page, and on an iPhone the Home Screen. They go through the browser's push service, encrypted.

+

Or answer from your phone. First turn the phone page on in Settings, Phone and give it an address the phone can reach, as the phone guide shows. On Android, download the app (arm64, Android 9 or later) and scan the QR code pitwall remote pair shows. It lists what needs you on every computer you pair, with Allow and Deny on the row, and each agent's chat takes a message even mid-turn.

+

On an iPhone, or with no app, the same pairing opens a web page with the tab list and chats. Either way the phone talks to your computer over your own network, with no account and no relay. The guide covers pictures, updates and push notifications.

Sidebar rows answering in place: a Codex pane's approval with Always, Allow and Deny, and under an orchestrator's row four workers, one with Allow and Deny and one asking which database to use with Redis and SQLite buttons
-
The phone page: two approvals with Allow and Deny buttons, a question from Fix the checkout race, and two finished turns with a Reply box
+
The Android app's tab list: a Waiting on you row, then the demo session's tabs on two machines, box and laptop, each under a line with its name and latency; box's api group holds Add rate limits waiting for approval with Allow and Deny, and Review the PR asking for input with Reply
@@ -498,7 +499,7 @@

Docs

  • Agent skillA page to hand an agent that starts and waits on tabs
  • Configurationconfig.toml, themes, fonts
  • HooksWhat the installer changes for each agent
  • -
  • PhonePairing, push notifications, what the page sends
  • +
  • PhoneThe Android app, pairing, push notifications, what the page sends
  • Remote hostsAgents on another machine over ssh
  • InstallPlatforms, updates, building from source
  • diff --git a/docs/llms.txt b/docs/llms.txt index 332da0e7..38c606f8 100644 --- a/docs/llms.txt +++ b/docs/llms.txt @@ -18,6 +18,7 @@ If you are an agent CHANGING pitwall: read AGENTS.md, then CONTRIBUTING.md. Ever - [Hooks](https://github.com/quanticstudios/pitwall/blob/main/docs/hooks.md): what `pitwall hooks install` changes for each agent - [Using pitwall](https://github.com/quanticstudios/pitwall/blob/main/docs/usage.md): the window, sessions, review, worktrees, tasks - [Remote hosts](https://github.com/quanticstudios/pitwall/blob/main/docs/remote.md): agents on another machine over ssh +- [Phone](https://github.com/quanticstudios/pitwall/blob/main/docs/phone.md): the Android app and the phone page, pairing, push notifications - [Troubleshooting](https://github.com/quanticstudios/pitwall/blob/main/docs/troubleshooting.md): `pitwall doctor`, then the logs - [Install](https://github.com/quanticstudios/pitwall/blob/main/docs/install.md): platforms, updates, building from source diff --git a/docs/media/phone-app-chat.webp b/docs/media/phone-app-chat.webp new file mode 100644 index 00000000..77449dd9 Binary files /dev/null and b/docs/media/phone-app-chat.webp differ diff --git a/docs/media/phone-app-list.webp b/docs/media/phone-app-list.webp new file mode 100644 index 00000000..325841c0 Binary files /dev/null and b/docs/media/phone-app-list.webp differ diff --git a/docs/phone.md b/docs/phone.md index e74c45d4..0889b823 100644 --- a/docs/phone.md +++ b/docs/phone.md @@ -5,8 +5,9 @@ sidebar shows, and each agent's conversation as a chat you can read and type into. It runs inside pitwall's background service and shows what that service runs now, so tabs come and go on the phone as they do in the window. There is no account and no relay, and the page needs no app: the -phone talks to your computer over your own network. An -[Android app](#android-app) shows the same, if you build it. +phone talks to your computer over your own network. On Android, the +[app](#android-app) shows the same tabs and chats, from several computers +at once; download it from the latest release. The phone page's tab list: a working Claude Code tab, a finished one, a Codex tab asking approval and a pi tab asking a question in group api, a shell, and a failed tab in session infra A Claude Code tab's chat mid-turn: a reply, a failed go test call opened to its output, a code block, and a running call under a Working line @@ -179,92 +180,48 @@ copy of the chat drops the request. ## Android app -The same tabs and chats also come as an Android app: pitwall's own -sidebar as the home screen, and each agent tab's chat with model, effort -and send on the message box. It talks to the phone page's API, so turn the -page on and reach it as above first. Download -[`pitwall-phone.apk`](https://github.com/quanticstudios/pitwall/releases/latest/download/pitwall-phone.apk) -from the latest GitHub release, or build the APK yourself. There is no store listing. - -The app checks GitHub on launch and every 24 hours while open. Check daily -in Settings turns those automatic checks on or off. Check for updates runs -a check immediately, even when daily checks are off. Its status says Checking, -Up to date with the installed version, a failure reason, or which version is out. -Dismiss on the session list hides that version across launches. - -When a newer release has its APK attached, the session list and Settings offer -Install. The app downloads the APK into its cache with a progress bar, checks -the byte count against the release asset, then asks Android to install it. -Downloads and redirects must use HTTPS on GitHub's download hosts. On the first -install, allow pitwall to install unknown apps in the settings screen it opens, -then return. Android still requires a tap on its installation confirmation. -The app reports cancellation or Android's failure message and removes the -cached APK after the installation result. Android checks the signing key. - -### Pictures - -In a Claude Code or Codex terminal chat, tap the paperclip to choose a -picture, or the clipboard button to paste a picture copied by another -Android app. Android grants access to the chosen picture without a storage -permission. A hold of half a second on the message field opens Paste, -which attaches a picture from the clipboard or pastes its text. A picture, -sticker or GIF from the keyboard, such as Gboard's or Samsung Keyboard's -clipboard panel, attaches too, on Android 12 and later. Send waits while -it loads, and it stays with the chat it was inserted in: a picture that -finishes after you leave that chat is dropped. The clipboard -button reads an item's own `content://` URI whatever its type label says. -It also reads a `content://` or `file://` URI written as text, a URI list -or an `` in HTML, but Android lets pitwall open those only when the -app that holds the picture is visible to it. Otherwise the composer says -"pitwall has no access to that picture". It tries the clip's URIs in -order and takes the first that holds a picture, so a document or an -unreadable URI before it does not hide it. With no picture on the -clipboard, it says whether the clipboard holds text, a link or nothing. -The composer shows a thumbnail with a remove button. Send -uploads the picture with the message; an upload or send failure keeps it -in the composer for retry. One picture fits each message. - -The phone page also accepts a picture through Attach picture or a paste -into the message box. Pictures must be PNG, JPEG, GIF or WebP, up to -20 MiB. The Android preview accepts up to 40 megapixels. The authenticated -upload checks the bytes and saves a private file under `paste//` in -the daemon's state folder. The existing desktop image delivery pastes that -file's path into the agent before the message. Closing the tab removes its -paste folder. An older daemon without uploads hides the attachment controls. - -### Build - -`sh scripts/apk.sh` builds `dist/pitwall-phone.apk` with -[gogio](https://gioui.org/doc/install/android) and prints its path. It -needs the Android SDK in `~/Android/Sdk` (or `ANDROID_SDK_ROOT`) with -build-tools, a platform and the NDK, and runs Java 17 through mise -(`java@temurin-17`). The APK is for arm64 phones; `ARCH=amd64` builds one -for the x86_64 emulator, and `ARCH=arm64,amd64` one for both. It is signed -with a debug key the script makes on first use, `dist/android/debug.keystore`, -which git ignores. `PITWALL_APK_KEY` selects an existing key instead. Keep -that file: Android installs an update only over an APK signed with the same -key. A self-built APK with another key cannot take the release APK as an update. - -The script stamps the APK with pitwall's version: the highest stable -release tag the commit contains, and the commits since. A build 3 commits -after tag v0.2.6 gets versionName `v0.2.6` and versionCode 206003: -the tag's three numbers as two digits each after the first, then the -commit count as three. Each release and each commit after it raises the -code, so Android takes every newer build over the last. A maintenance tag -merged in later, such as v0.2.10 into v0.3.x, does not lower it. The -script refuses a shallow clone (`git fetch --unshallow --tags` first), -since it would count too few commits, a tag whose minor or patch is 100 or -more, and a build more than 999 commits after its tag. `sh scripts/apk.sh --version` prints the -three-part number, the code and the version the app shows without building. -The app shows the exact tag on a release build, or the tag plus commit count -and hash on a build after it. A build after a tag never offers that same tag -as an update. - -### Install - -With USB debugging on, run `adb install dist/pitwall-phone.apk`. Or copy -the APK to the phone, open it there and allow your file manager to install -apps when Android asks. +The same tabs and chats also come as an Android app. It talks to the +phone page's API, so turn the page on and reach it as above first. What +it does: + +- pairs by scanning the QR code `pitwall remote pair` shows; +- lists the tabs of several computers in one sidebar, each machine's under + a line with its name and latency; +- leads each row with its repo's icon, and folds the tabs an agent opened + under that agent's tab; +- puts Waiting on you at the top, with Allow and Deny on a row; +- draws an agent's replies as the markdown reader does, with tables, code + blocks and mermaid flowcharts, and opens a `.md` file full screen; +- sends a message during a turn, and answers approvals and Claude Code and + Codex questions in the chat; +- attaches a picture from the gallery, the clipboard or the keyboard; +- changes Claude Code's model and effort for that session only. + +The Android app's tab list: a Waiting on you row, then the demo session's tabs on two machines, box and laptop, each under a line with its name and latency; box's api group holds Add rate limits waiting for approval with Allow and Deny, and Review the PR asking for input with Reply The Android app's chat for Fix the checkout race on box: a failed go test call, a reply with inline code, a numbered list and a Go code block, an Edit call and a running go test call, then the message box with Opus 5.5 and effort buttons + +### Install the Android app + +Download +[pitwall-phone.apk](https://github.com/quanticstudios/pitwall/releases/latest/download/pitwall-phone.apk) +from the latest release on the phone. It is for arm64 phones with +Android 9 or later. Open it, and when Android asks, allow your browser or +file manager to install apps. There is no store listing. + +After that the app updates itself. It checks GitHub on launch and every +24 hours while open; Check daily, under Updates in its settings, turns +those checks off. Check for updates checks at once, even with Check daily +off, and says Up to date with the installed version, a failure reason, or +which version is out. + +When a newer release has its APK attached, the session list and settings offer Install: the app downloads the APK over +HTTPS from GitHub with a progress bar, checks its size against the release, +and hands it to Android, which asks for one tap to confirm. The first +time, Android also asks you to allow installs from pitwall; allow it in +the screen the app opens, then return. Android checks that the update +carries the same signing key, and the app removes the downloaded file +after Android's result. Dismiss, on the session list, hides that version +until a newer one is out. An update installs over the old app and keeps +your pairings. ### Pair @@ -339,6 +296,37 @@ once. link, which an emulator reaches at `http://10.0.2.2:7792`; with `-demo 2` it serves box's. +### Pictures + +In a Claude Code or Codex terminal chat, tap the paperclip to choose a +picture, or the clipboard button to paste a picture copied by another +Android app. Android grants access to the chosen picture without a storage +permission. A hold of half a second on the message field opens Paste, +which attaches a picture from the clipboard or pastes its text. A picture, +sticker or GIF from the keyboard, such as Gboard's or Samsung Keyboard's +clipboard panel, attaches too, on Android 12 and later. Send waits while +it loads, and it stays with the chat it was inserted in: a picture that +finishes after you leave that chat is dropped. The clipboard +button reads an item's own `content://` URI whatever its type label says. +It also reads a `content://` or `file://` URI written as text, a URI list +or an `` in HTML, but Android lets pitwall open those only when the +app that holds the picture is visible to it. Otherwise the composer says +"pitwall has no access to that picture". It tries the clip's URIs in +order and takes the first that holds a picture, so a document or an +unreadable URI before it does not hide it. With no picture on the +clipboard, it says whether the clipboard holds text, a link or nothing. +The composer shows a thumbnail with a remove button. Send +uploads the picture with the message; an upload or send failure keeps it +in the composer for retry. One picture fits each message. + +The phone page also accepts a picture through Attach picture or a paste +into the message box. Pictures must be PNG, JPEG, GIF or WebP, up to +20 MiB. The Android preview accepts up to 40 megapixels. The authenticated +upload checks the bytes and saves a private file under `paste//` in +the daemon's state folder. The existing desktop image delivery pastes that +file's path into the agent before the message. Closing the tab removes its +paste folder. An older daemon without uploads hides the attachment controls. + ### Markdown files An agent's reply draws as the [markdown reader](usage.md#markdown-reader) @@ -370,6 +358,40 @@ replaced by another one after that, reads fail until the tab is closed. An SVG g web load on the phone, by the reader's rules. A computer running an older pitwall serves no files, and the app leaves paths as plain text. +### Build it yourself + +`sh scripts/apk.sh` builds `dist/pitwall-phone.apk` with +[gogio](https://gioui.org/doc/install/android) and prints its path. It +needs the Android SDK in `~/Android/Sdk` (or `ANDROID_SDK_ROOT`) with +build-tools, a platform and the NDK, and runs Java 17 through mise +(`java@temurin-17`). The APK is for arm64 phones; `ARCH=amd64` builds one +for the x86_64 emulator, and `ARCH=arm64,amd64` one for both. It is signed +with a debug key the script makes on first use, `dist/android/debug.keystore`, +which git ignores. `PITWALL_APK_KEY` selects an existing key instead. Keep +that file: Android installs an update only over an APK signed with the same +key. A self-built APK with another key cannot take the release APK as an update. + +The script stamps the APK with pitwall's version: the highest stable +release tag the commit contains, and the commits since. A build 3 commits +after tag v0.2.6 gets versionName `v0.2.6` and versionCode 206003: +the tag's three numbers as two digits each after the first, then the +commit count as three. Each release and each commit after it raises the +code, so Android takes every newer build over the last. A maintenance tag +merged in later, such as v0.2.10 into v0.3.x, does not lower it. The +script refuses a shallow clone (`git fetch --unshallow --tags` first), +since it would count too few commits, a tag whose minor or patch is 100 or +more, and a build more than 999 commits after its tag. `sh scripts/apk.sh --version` prints the +three-part number, the code and the version the app shows without building. +The app shows the exact tag on a release build, or the tag plus commit count +and hash on a build after it. A build after a tag never offers that same tag +as an update. + +To install your build, turn on USB debugging and run +`adb install dist/pitwall-phone.apk`, or copy the APK to the phone and +open it there. Your build carries your own key, so Android will not +install it over the release APK, or the release over it: uninstall the +other one first, which forgets its pairings. + ## What pitwall logs `daemon.log` gets a line for each pairing, each opened stream, each