Answer OpenCode from your iPhone
When OpenCode stops to ask you something, Hwip sends the question to your iPhone and types your answer back into the same tmux session.
What reaches your phone
- Questions. A rule in
~/.config/opencode/AGENTS.mdhas OpenCode ask through thehwip_asktool: up to four buttons and a text field. - Permission requests. When OpenCode asks for permission, the phone shows what it wants to do and its buttons. If you answer at the keyboard first, the phone's answer is refused.
- A finished turn. A "Task done" push with the project and branch.
- The live timeline. Prompts, tool calls and replies, read from OpenCode's own session store.
- Your prompts. Type a prompt on the phone, and it lands in the session as if you typed it at the keyboard.
Set it up
- Install Hwip on your iPhone and sign in.
- On your Mac:
npm install -g @hwip/cli && hwip install. For OpenCode this registers the Hwip MCP server in~/.config/opencode/opencode.jsonand adds a plugin and a rule. If OpenCode is already running, runopencode reloadso it loads the plugin. - Start OpenCode through Hwip:
hwip opencode. It runs in a normal tmux session namedhwip-<project>.
What a question carries
The session's git diff against HEAD and its last 60 terminal lines. Secret-looking text is masked first, best effort. Everything is sealed on your Mac with AES-256-GCM before it is sent.
What it doesn't do
- The live timeline needs OpenCode 2.x. It reads the session store that 2.x keeps.
- tmux is required. On Windows, that means WSL.