三只貓
Rich Mindset Zone
richmindsetzone.com
← All posts

手機 Coding 不再是應急:2026 年移動開發主力機實戰

2026 年仲有人覺得手機 Coding 係「得閒睇下 code、改個 typo、緊急 hotfix 頂住先」?老實講,呢個想法已經 outdated 起碼一年。過去六個月,我逐步將主力開發 workflow 搬咗去一部 Android 手機(Samsung Galaxy Z Fold6),而家我嘅日常工作——寫 TypeScript、改後端 API、做 code review、甚至 ship production——超過一半係喺電話完成。唔係「應急用」,係真·主力機。

關鍵嘅轉捩點唔係單一工具,而係成個 stack 喺 2025 年底到 2026 年成熟咗:Shelly IDE 俾咗 Android 一個真正 native 嘅 terminal IDE,Claude Code 成爲咗核心 coding agent,CC Pocket 解決咗 approval loop 嘅 mobile UX 問題,而 CCBar 補齊咗 status line 嘅最後一塊拼圖。四個工具夾埋,形成一條完整嘅 mobile development pipeline。

Shelly:Android 上第一個真正嘅 Native IDE

以前用手機寫 code 嘅最大痛點係:Termux 只係一個 terminal emulator,唔係 IDE;Web IDE 要連 remote server,latency 同網絡問題搞到你唔想用。Shelly 嘅做法完全唔同——佢係一個由零開始為 Android 寫嘅 native IDE,核心係一個透過 JNI forkpty 直接運行嘅 native terminal emulator,唔係 WebView,唔係 socket bridge,係真·同 process 嘅 PTY。

Claude Code 同 Codex 可以直接喺 Shelly 入面 run,唔使裝 Termux,唔使搞 distro bootstrap,APK 自帶 bash、Node.js、Python、git、ripgrep——打開就用。更重要係 Shelly 嘅 cross-pane intelligence:你喺 terminal 見到 error,同 AI pane 講「fix the error on the right」,AI 會自動讀 terminal output、解釋問題、生成 fix command,一個 tap 就執行。唔使 copy-paste、唔使 switch tab、唔使 desk。

呢種 workflow 同 desktop 完全唔同。Desktop 上你習慣開十個 terminal tab、三個 editor windows、一個 browser,靠視覺 multitasking。Shelly 嘅 multi-pane layout(最多四個 live panes)逼你更專注:terminal + AI + browser 三個 pane 已經好夠用,多咗反而亂。我發現呢種限制其實係好事——佢迫你集中喺當前 task,唔會無意識咁開幾十個 tab 分散注意力。

由一個唔識寫 code 嘅 creative director 用 Claude Code 喺 Z Fold6 上 build 出嚟、而家有 100,000+ lines of code 嘅 project——呢個事實本身就係 Shelly 最好嘅背書。

CC Pocket:將 Approval Loop 放喺你口袋

如果 Shelly 係「寫 code 嘅地方」,CC Pocket 就係「管 code 嘅地方」。佢嘅架構好聰明:你喺 desktop 或 server 行一個 self-hosted Bridge Server,然後用電話嘅 CC Pocket app 連接過去,控制 Claude Code 或 Codex sessions。

實際上嘅 workflow 係咁:你開咗一個 Claude Code session 喺 server 行緊,agent 自動寫 code、改 file、commit,但每當需要 approve 一個 command 執行、確認一個 file edit、或者答一個問題,CC Pocket 會 push notification 俾你。你攞起電話睇 context、approve / reject、寫 feedback,放低電話繼續做其他嘢。

呢個模式完全改變咗開發節奏。以前你要坐喺 desktop 前等 AI 做完、睇結果、俾 feedback、再等——成個 loop 綁死你喺電腦前。CC Pocket 將 approval loop 打散成 micro-interactions:等緊 AI 跑嘅時候你可以做其他嘢,notification 到咗先睇一眼 approve,然後放低。成個 process 變成 async、變成碎片化、變成可以夾雜喺你日常工作之間。

仲有一個好實用嘅功能係 workspace explorer:你可以喺手機睇 agent 改咗咩 files、睇 syntax-highlighted diffs、甚至直接 stage、commit、push。唔係 desktop 嘅劣化版,係爲 mobile 重新設計嘅 touch-first UI。

我用 Tailscale 連接 Bridge Server,無論係喺屋企、cafe、定係地鐵,latency 都喺 acceptable range。CC Pocket 仲有 offline queue,斷線唔會 lost messages,reconnect 之後自動 sync。

CCBar 同 Ecosystem:細節決定成敗

講到呢度你可能會問:「咁 Claude Code 個 status bar 呢?手機 terminal 冇 status bar 點睇 context usage、token count、cost?」

CCBar 就係爲呢個問題而存在。一個 600KB 嘅 Rust binary,用 TOML config 定義 status line 嘅 blocks——你可以顯示 current directory、git branch、model name、context window 用量條、token count、cost、duration、rate limit。全部喺 Claude Code 嘅 status line 即時顯示。

對於 mobile development 嚟講,CCBar 唔係奢侈品,係必需品。Desktop 上你有 menu bar、有多個 monitors、有各種 visual indicators;手機 terminal 只有 80 columns。CCBar 喺有限空間俾到你最關鍵嘅資訊:context window 仲有幾多?呢個 session 用咗幾多錢?current model 係乜?

成個 ecosystem 仲有好多細節:Shelly 嘅 @mention routing(@claude@gemini@codex@team@arena)令到你可以一個 terminal 同時用 multiple agents;CC Pocket 嘅 voice input 令到你可以用講嘅方式寫 prompt;Bridge Server 嘅 QR code pairing 令到 setup 唔使搞 config files。

呢啲細節加埋,先令到 mobile coding 從「頂住先」變成「認真用」。

行動建議:半年實戰嘅 takeaways

如果你都想開始用手機做開發主力機,我建議你呢樣做:

第一步,搞清楚你用嚟做咩。 我唔建議你完全棄用 desktop——仲有啲嘢(heavy debugging、大型 refactor、多 screen 嘅架構設計)desktop 仍然有優勢。但如果你嘅工作 60-70% 係寫 TypeScript、改 API、做 code review、triage issues,mobile 完全勝任。

第二步,試 Shelly。 去 GitHub Releases 下載 APK,跟住 setup wizard 五分鐘搞掂。唔使 root、唔使 Termux、唔使搞任何 config。打開就用到 Claude Code 同 Codex。

第三步,set up CC Pocket。 喺你嘅 desktop/server 行 npx @ccpocket/bridge@latest,電話 scan QR code,咁就搞掂。試幾日嘅 approval loop 體驗,你會發現自己攞起電話嘅次數多咗,但每次嘅時間短咗——呢個就係 efficiency gain。

第四步,安裝 CCBar。 cargo install ccbar + ccbar --setup,然後話俾 Claude Code 知你想要點樣嘅 status line。佢會幫你 generate config。

第五步,建立你嘅 mobile dev kit。 Tailscale(網絡)、一個藍牙鍵盤(真係要 intensive typing 嘅時候)、同一部大摺機或 tablet(Z Fold6 / Pixel Fold / iPad)。硬件仍然重要,但唔係最重要——最關鍵係你嘅 workflow 係咪設計成 mobile-first。

2026 年嘅 reality 係:AI 做咗大部分 heavy lifting,你嘅工作係 approve、review、direction。呢啲嘢唔需要 desktop,需要嘅係一個可以隨時隨地做出 decision 嘅工具。手機就係嗰個工具。

唔好再當 mobile coding 係應急方案。佢已經係一條認真嘅主力 route。試吓,你可能會發現自己 work from cafe 嘅時間比 work from desk 仲要多。