sim-preview
Skill1.1k starsChanged 10 months agoMITView on GitHub
iOSシミュレーターで動くFlutterアプリをExpo Device HubとTailscale HTTPSでスマホのブラウザへ配信・操作するときに使う。
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about K9i-0/ccpocket
- A Hacker News story“Show HN: CC Pocket – Control Claude Code/Codex from Your Phone”Hacker News · Mar 7, 2026 · 2 points
- @android.activitypub.awakari.com.ap.brid.gy“Show HN: CC Pocket – Control Claude Code/Codex from Your Phone CC Pocket is a mobile app (iOS/Android) for …”Bluesky · Mar 7, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.k9i-0.ccpocket: 1.136.1+258 → 0-unstable-2026-09-30”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.k9i-0.ccpocket: init at 1.136.1+258”GitHub · Sep 28, 2026
- @munawwar.bsky.social“Guys, CC Pocket! One of few projects that shows local (linux) Codex sessions on a native (android) app …”Bluesky · May 5, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Bluesky and Hacker News (8 times).
On GitHub · 5
- Oct 3, 2026agent-skills.github.k9i-0.ccpocket: 1.136.1+258 → 0-unstable-2026-09-30 — sudosubin/agents.nix0 reactions
- Sep 28, 2026agent-skills.github.k9i-0.ccpocket: init at 1.136.1+258 — sudosubin/agents.nix0 reactions
- Apr 18, 2026Audit candidate: K9i-0/ccpocket — xiaolai/nlpm0 reactions · 1 comment
- Apr 13, 2026Not support custom model in the claude code and OAuth — getpaseo/paseo0 reactions · 1 comment
- Mar 15, 2026feat: Claude Code 承認UI の改善(ネイティブ PermissionSheet) — dashi296/remocoder0 reactions
On Bluesky · 2
- Mar 7, 2026Show HN: CC Pocket – Control Claude Code/Codex from Your Phone CC Pocket is a mobile app (iOS/Android) for remotely controlling Claude Code… — @android.activitypub.awakari.com.ap.brid.gy1 likes and repost
- May 5, 2026Guys, CC Pocket! One of few projects that shows local (linux) Codex sessions on a native (android) app github.com/K9i-0/ccpocket — @munawwar.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Mar 7, 2026Show HN: CC Pocket – Control Claude Code/Codex from Your Phone2 points
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- codex-guideSkill
- flutter-ui-designSkill
- flutter-upgradeSkill
- mergeSkill
- mobile-automationSkill
- playwright-cliSkill
- release-appSkill
- release-bridgeSkill
- release-cardSkill
- self-reviewSkill
- shorebird-patchSkill
- submit-store-reviewSkill
- test-bridgeSkill
- test-flutterSkill
- triageSkill
- update-storeSkill
- web-previewSkill
The file
Files
Simulator Preview (Expo Device Hub)
MacのiOSシミュレーターを Expo Device Hub → Tailscale Serve (HTTPS) → スマホのブラウザ で配信する。Expoプロジェクトは不要。Flutterアプリをそのまま確認・操作できる。
既定はH.264・30fps・最大1000px・2.5Mbps。Device Hub 0.10.1でccpocketの配信を確認し、ユーザーから旧VNC方式より快適との評価を得た設定。TrollVNC / noVNCを既定に戻さない。
1. シミュレーターとアプリ
xcrun simctl list devices booted対象アプリが既に動いていれば再利用する。起動が必要な場合やhot reloadには mobile-automation を使う。テスト用Bridgeが必要なら8766を使い、本番8765を停止・再起動しない。
前提はMac + Xcode、Node.js/npm、MacとスマホのTailscale接続。CoreSimulatorへのアクセスがサンドボックスで拒否された場合は、シミュレーターの故障と判断せず適切な実行権限で再確認する。
2. Device Hubを起動
既存のDevice HubとTailscale Serveの状態を確認し、目的の配信が動いていれば再利用する。
lsof -nP -iTCP:3400 -sTCP:LISTEN
tailscale serve status新規起動には以下を使う。スクリプトはDevice Hubのみを起動し、アプリ起動やTailscale設定は別に行う。
bash .claude/skills/sim-preview/scripts/sim-preview.sh- ローカル待受は
127.0.0.1:3400。npm経由で検証済みバージョンを取得し、リポジトリの依存関係は変更しない。 - 長時間実行できるツールセッションで起動し、停止用のセッションID / PIDとログを控える。
- 3400が使用中ならプロセスを勝手に停止せず、既存配信を確認するか
SIM_PREVIEW_PORT=3401などの空きポートを選ぶ。起動ログの実際のポートを確認する。 - 更新時は対象バージョンの
--helpを確認する。配信設定の変更はブラウザの「Stream options」からも試せる。
3. Tailscale内限定のHTTPSを設定
リモートのH.264 / WebRTCにはHTTPSが必要。 http://<Tailscale IP>:3400 ではMJPEGへフォールバックする。localhostでH.264が動くだけではスマホ向け検証の完了にならない。
tailscale serve status に今回のHubを指す設定があれば再利用する。未設定なら、起動ログのポートに合わせて設定する。
tailscale serve --bg --https=443 http://127.0.0.1:3400- 443に別サービスの設定がある場合は上書きせず、未使用のHTTPSポート(例:
--https=8443)を選ぶ。 - Serveが未有効なら、CLIが出力した有効化URLを案内する。ログインが必要ならユーザーに操作を依頼し、完了後に上記コマンドを再実行する。有効化だけでは転送設定が作成されないことがある。
- 出力された
https://<MacのDNS名>.ts.net[:port]/を使う。ホスト名を固定値で書かない。 tailscaleがPATHにない環境では/Applications/Tailscale.app/Contents/MacOS/Tailscaleを確認する。- インターネット公開の
tailscale funnelは使用しない。
4. 配信確認とユーザーへの案内
実際のHTTPS URLをブラウザで開き、以下を確認する。
- 対象シミュレーターが
Liveになり、ccpocketの映像が表示される。 - 「Stream options」でHTTP codecが H.264、Video FPSが 30 FPS、Max sizeが 1000 px、Video bitrateが 2.5 Mbps になっている(意図して調整した場合はその値)。
スマホのTailscaleをONにして開くHTTPSリンクを案内する。ユーザーにタップ・スクロール・文字入力の体感を試してもらい、Mac側の表示確認とスマホ側の確認結果を区別して報告する。遅延が残る場合は同画面で解像度やビットレートを調整して比較する。
初回のページ遷移がタイムアウトしても、再度画面状態を確認すると Live になっている場合がある。MJPEGになる場合はHTTPS URLとコーデック設定を確認する。
5. 継続・終了
プレビュー依頼中はDevice HubとHTTPS転送を残す。コード変更後のhot reloadはFlutter側で行い、配信画面で結果を確認する。
停止を依頼されたら、自分が起動したHubのセッションまたはPIDだけを停止する。今回追加したServe設定も不要になった場合のみ、対象HTTPSポートの転送を解除する。
# 今回443に追加した転送を終了する場合。別ポートなら置き換える。
tailscale serve --https=443 off既存の共有設定を巻き込む tailscale serve reset やプロセス名による一括killは使わない。
参照
- Expo Device Hub: standalone起動と配信方式。
- 起動オプション:
npm exec --yes --package=expo-device-hub@0.10.1 -- expo-device-hub --help
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

