Send OpenCode plans to your phone
OpenCode can call pushbag from its shell to publish a plan and send the version link to your phone. Keep the artifact ID when the plan will change over several sessions.
Teach OpenCode where to find the plan template
Install the CLI in OpenCode’s shell with npm install -g @pushbag/cli. From your repository run pushbag guide pbg-plan --install. The installer writes the guide and its assets under .agents/skills/pbg-plan. Add a project instruction to the root AGENTS.md if this team regularly reviews plans on a phone. OpenCode project instructions
For phone review, read .agents/skills/pbg-plan/SKILL.md.
Write the proposed decision first. Keep the plan HTML in a temporary
directory. When revising an existing proposal, request or reuse its
artifact ID and report both the latest link and the reviewed revision.
Run pushbag auth login, follow the printed link to create the key, and store it with pushbag auth set YOUR_KEY. OpenCode needs outbound API access from the environment where it runs this command. Install the Android app on Google Play or the iPhone app and sign in to the account that will own the uploaded plan.
Publish from the OpenCode workspace
Configure a Both key with personal-channel publishing access. Ask OpenCode to consult the plan guide and write plan.html before running the upload.
pushbag guide pbg-plan
pushbag upload plan.html --private --notify --title "OpenCode implementation plan" --json
The guide starts with # Plans and reports with pushbag and includes a template workflow for revisions.
Give the next session the returned id. After editing the file, it can pass that ID to --artifact to publish a revision at the same stable URL.
Carry a decision through two sessions
Suppose the team needs to split a long-running import into batches. Ask OpenCode to write a plan that names the current entry point, proposes a transaction boundary, and lists the evidence needed before choosing a batch size. A small table of alternatives plus one explicit decision is easier to read on a phone than terminal scrollback. OpenCode should use the plan template in the installed guide and save the completed file before attempting the upload.
Open the alert and check the plan title. Reply in the session with your decision about the transaction boundary. Save the artifact ID somewhere the next session can read along with the path to the working document or a copy of its contents. A temporary local path may disappear when the workspace is replaced.
For the revision, have OpenCode put a change summary above the original alternatives and upload using the saved ID. Open the stable link to check the current decision, then open the earlier notification to see the proposal you reviewed. With only a Notifications key, OpenCode can announce that a local file exists, but the recipient cannot open that local path on the phone. The upload itself needs artifact permission.
Frequently asked questions
Does OpenCode need a pushbag-specific plugin?
A shell with the CLI installed, API access, and an authorized key is sufficient for the commands here. The installed plan guide supplies the publishing instructions.
Can OpenCode reuse last session’s plan URL?
Yes, if it publishes the next file using the original artifact ID. Save that ID alongside the stable URL before closing the session.
Does a private plan need a public channel?
No. Use Personal with a Both key that permits publishing there. Opening the private plan still requires the owner or an explicit grant.
Where should the agent write its working HTML?
A temporary directory keeps the report outside tracked application files. Leave referenced local images next to the HTML until upload completes.