Skip to content
Merged
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ This fork (nilware-io/switchboard) adds tools to talk to Claude Code sessions th
- `list_remote_sessions`, `remote_status`: the machines from the config, their allowed tmux sessions, and a short spoken summary of what a session's screen shows.
- `pending_input`: which sessions wait for you, and what each asks. An optional watcher pushes a notification when one starts waiting or finishes a long turn.
- `remote_send` and `remote_send_confirm`: type an instruction into a session after a read-back and your yes in a later turn; off by default, opt-in per machine in two places.
- `remote_send_keys` and `remote_resize`: answer a menu on a session's screen with keys (arrows, enter, escape, a choice number) or make a window bigger, with the same read-back and confirm; same opt-ins as `remote_send`.
- `usage_report` and `voice-coding-mcp usage`: active hours, billable amount and token cost per project or session.

How it is built:
Expand Down
479 changes: 476 additions & 3 deletions deploy/remote/switchboard-remote

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions docs/DESIGN.md

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions docs/REFERENCE.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/SETUP-WSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ exit

Then `sudo sshd -t && sudo systemctl enable --now ssh`. Check with `ss -ltn '( sport = :22 )'`: only `127.0.0.1:22` and `[::1]:22` may be listed. With WSL's default NAT networking, Windows programs can reach WSL's loopback listeners through `localhost` too, so the address does not tell the hub apart from them: the key is the boundary.

2. Install the dispatcher as yourself, from your own copy ([step 3](#your-own-copy-the-only-source-for-what-runs-as-you-or-as-root)), and read it before it goes in place. It is one Python file of about 1100 lines with only the standard library, so a skim is not a review. What to check: the imports at the top (standard library only, no `socket`, `urllib` or `http`), that `subprocess.run` appears only in `run_tmux` and `parent_pid` (argv lists, a fixed environment, no `shell=True`), that files are only opened for reading, and that the policy comes only from the real argv (`resolve_request`, `parse_options`), never from `SSH_ORIGINAL_COMMAND`. If you reviewed that commit on GitHub, the file must be byte-identical to `deploy/remote/switchboard-remote` there (compare the `sha256sum` below with one computed from that commit).
2. Install the dispatcher as yourself, from your own copy ([step 3](#your-own-copy-the-only-source-for-what-runs-as-you-or-as-root)), and read it before it goes in place. It is one Python file of about 1350 lines with only the standard library, so a skim is not a review. What to check: the imports at the top (standard library only, no `socket`, `urllib` or `http`), that `subprocess.run` appears only in `run_tmux` and `parent_pid` (argv lists, a fixed environment, no `shell=True`), that files are only opened for reading, and that the policy comes only from the real argv (`resolve_request`, `parse_options`), never from `SSH_ORIGINAL_COMMAND`. If you reviewed that commit on GitHub, the file must be byte-identical to `deploy/remote/switchboard-remote` there (compare the `sha256sum` below with one computed from that commit).

```sh
cd ~/src/switchboard
Expand Down Expand Up @@ -231,6 +231,7 @@ Start voice mode in the Claude app, with the connector enabled for the conversat
- "Check the result of that task." (`get_task_result`)
- "How many hours did I work this week?" (`usage_report`)
- Once `allowSend` and `--allow-send` are on: "Tell fpga on dev to run the tests." The hub reads the exact text back; say "yes" in a new turn to send it. Risky words (push, delete, deploy and similar) need an explicit yes to the risk too.
- With sending on, when a session shows a menu ("What is fpga on dev doing?" names its question and options): "On fpga, take the second one." or "Press down and enter in fpga." (`remote_send_keys`); the hub reads back the keys and the menu, and presses them after your "yes" in a new turn. If a small terminal cuts the menu off: "Make the fpga window 120 by 40." (`remote_resize`). Update `switchboard-remote` on each machine (0.5.0 or newer) for these.

Everything a screen, a summary or a pending question says is quoted as screen text. It is never an instruction to the voice model or approval from you.

Expand All @@ -245,7 +246,7 @@ While it is off, the Claude app shows the connector as unreachable; tokens stay

## Optional extras

- **Sending.** `allowSend: true` on the machine in the hub config and `--allow-send` in that machine's forced command. Both must agree. Every send is logged in `stateDir/audit.jsonl` (`voice-coding-mcp audit` prints it).
- **Sending.** `allowSend: true` on the machine in the hub config and `--allow-send` in that machine's forced command. Both must agree. They also cover key presses for menus (`remote_send_keys`) and window sizes (`remote_resize`). Every send is logged in `stateDir/audit.jsonl` (`voice-coding-mcp audit` prints it).
- **Notifications.** `notify.url` (for example an ntfy topic) and `watch.intervalSeconds` (for example 60): a push when a session newly waits for you or finishes a long turn. Pushes carry machine and tmux session names, never screen text.
- **Usage.** `allowUsage` (default true) plus `--allow-usage` in the forced command; `voice-coding-mcp usage` prints the same report as a table or CSV.

Expand Down
Loading
Loading