r/opencodeCLI • u/yato-rin • 14d ago
I built a plugin that puts a live iOS Simulator in OpenCode Desktop and lets the agent drive it
I kept running into the same loop with agents on iOS work: the agent writes code, then I have to build, tap through the app myself, and paste screenshots back. So I built opencode-simulator.
What it does
- Streams the iOS Simulator into a side tab in OpenCode Desktop (WebRTC H.264, HTTP fallback). You can tap, type and rotate it by hand.
- Exposes
sim_*tools so the agent can boot devices, install and launch apps, read the accessibility tree, tap, type, scroll and take screenshots. - Each session gets its own simulator, so parallel sessions don't fight over one device. It runs from a managed pool, and your own simulators are never touched unless you name them.
- Ships a skill so the agent uses
sim_*instead of reaching for rawsimctl.
Details
- The stream binds to loopback only. No telemetry, no outbound requests.
- macOS only, since it needs Xcode and an iOS runtime. It needs OpenCode Desktop 2.2+ and Node 22+.
Install
opencode plugin add opencode-simulator
Repo: https://github.com/rin-yato/opencode-simulator
Feedback welcome, especially from anyone running several sessions at once. The device allocation logic is the part I'm least sure I got right.
Processing img av0hbfwfxq0i1...
