我把 coding agent 挪到常开机器上,手机随时指挥
上一篇让几个 claude 账号自己换着用,人还是拴在电脑前。这一篇把 agent 全挪到一台常开的机器上,手机随时连上去看进度、派新活,笔记本合盖它也接着跑。三个开源件各管一段——herdr 管 session、hcom 管通讯、Moshi 管手机——外加账号自动轮换兜底,凑成我目前跑得最顺的移动端 vibe coding 方案。这篇讲怎么搭,也讲踩过的坑。
上一篇让几个 claude 账号自己换着用,人还是拴在电脑前。这一篇把 agent 全挪到一台常开的机器上,手机随时连上去看进度、派新活,笔记本合盖它也接着跑。三个开源件各管一段——herdr 管 session、hcom 管通讯、Moshi 管手机——外加账号自动轮换兜底,凑成我目前跑得最顺的移动端 vibe coding 方案。这篇讲怎么搭,也讲踩过的坑。
Last time I taught a few Claude accounts to rotate themselves — but I was still chained to my laptop. This time I cut the last cord: the agents live on an always-on box, and my phone connects in to watch and steer them. Close the lid, leave the house, lie in bed — they keep running. Three open-source pieces each own one layer — herdr the sessions, hcom the messaging, Moshi the phone — plus account auto-rotation as the safety net. The mobile vibe-coding setup that currently runs smoothest for me: how to build it, and the traps I hit.
天天用 claude code 的人都撞过五小时用量墙,切号还要重新登录,正在跑的 session 也会丢。 我搞了两个工具:clauth fork 在活跃 session 底下做无感热切换和无人值守自动轮换, 菜单栏的 ccsbar 把每个账号的余量、预报和健康状况摆在明面上。这篇讲这套东西是怎么搭起来的。
I run several Claude accounts and kept hitting the 5-hour wall mid-session. Switching meant logging out. So I built a daemon that hot-swaps the active login under a running session — and the whole thing turned on one non-obvious fact about how macOS stores an auth token.
朋友给我一份用拉丁学名的 omakase 认鱼课,可板前点菜时,菜单写的是 Hamachi、是 Sea Bream。我想要一个标美式菜单常用名的版本,于是指挥一队 agent 搭了出来:九个并行调研 agent 上网核实菜单名、gpt-image-2 出约 150 张写实图、一段确定性代码拼成 PDF。73 种鱼、92 页,外带两个踩坑故事和一份免费下载。
I wanted a sushi-counter field guide that used the names you actually order by in a US restaurant — not Latin binomials. So I pointed a team of agents at it: parallel research workflows verifying English menu names with web search, gpt-image-2 for ~150 photoreal neta shots, and a deterministic HTML→PDF assembler. 73 fish, 92 pages, two debugging war stories, and a free download.
转录不难,难的是「谁在说」。为了搞定说话人分离,我把 Gemini 切块、Senko、豆包 auc 挨个试了一遍,最后落在火山妙记上。5 段真实录音,每段两人对话它都精准判 2 人。顺带踩了火山两套鉴权、跨境上传被限速到 34KB/s 这些坑。
Transcription is easy. The hard half is knowing who spoke. Chasing accurate speaker diarization, I ran Gemini chunking, Senko, and Doubao's auc models into the ground before landing on Volcano's 妙记 (Lark Minutes ASR) — which nailed the speaker count on every two-person recording. Plus the gotchas: Volcano's two auth systems and a cross-border upload throttled to 34 KB/s.
Solo dev 做设计,大多数时候 N=1——第一直觉就是唯一方案,因为做第二个版本要花一天。Claude Design 把这事拆了:一下午六个完全不同的视觉语言摆在面前。留下了什么、丢了什么、方向锁死之后 big-task 的 ui profile 接手怎么走——这篇讲这些。
For solo dev and small teams, design exploration is usually N=1 — you go with your first instinct because producing a second variant takes a day. Claude Design collapses that: six distinct aesthetic directions in an afternoon. What I kept from the pipeline, what I dropped, and how `big-task`'s UI profile takes over once a direction is locked.
先是裸跑 Claude Code。再是 GSD 多 agent 仪式。再是 superpowers 的 skill 库。最后在上面包了一个自己的 orchestrator。每一版崩盘都来自一个具体 session。最后我才想明白:solo dev 的 harness 跟团队的不是一个物种,而且真正的答案不是选一个默认引擎——是按工作形状路由。
Vanilla Claude Code. Then GSD's multi-agent ceremony. Then superpowers' skill system. Then a custom orchestrator on top. Each rewrite came from a specific session that broke. What I learned: solo dev harnesses and team harnesses are different species, and the right answer isn't a default engine — it's routing by work shape.
同一条流水线——Claude Design 出方向、HANDOFF.md 锁死、`big-task` 落地——但每个产品都把它掰成不一样的形状。ÉLAN 是空地,需要宽探索。识川 app 已经上线,要按类目一个个迁移。盘盘猫是 monorepo,v2 跑三个并行品牌表达而不是一个方向。变的是什么,不变的是什么。
Same pipeline — Claude Design explores, HANDOFF.md locks, `big-task` ships — but it bends around each product. ÉLAN is greenfield and needs wide exploration before converging. Shichuan has a live app and needs incremental category-by-category migration. Panpanmao is a monorepo with a v2 redesign that runs three parallel brand expressions instead of one. What changes and what doesn't.
看完 Trae 的 MTC 模式,我在 claude code 里做了个 /mtc skill。6 个阶段,不许跳步,先想清楚再让 AI 写代码。做游戏的时候效果比我预期好。
After seeing Trae's MTC mode in action, I built a /mtc skill for Claude Code. 6 phases, no skipping, think first, code second. Better results than expected on my game project.
两个账号都是企鹅,第二个还降级了。于是我让 claude 逆向它自己的宠物系统,把企鹅换成了金色传说龙。
Claude Code shipped a virtual pet Easter egg. Two accounts, two penguins — the second one downgraded from Rare to Common. So I used Claude to brute-force a Shiny Legendary Dragon in 0.2 seconds.
从发现 pretext 到在两个网站上线 7 个交互特效——爆炸物理、弹跳子弹、还有一只叫 Clawd 的像素螃蟹。一个 session 搞定。
From discovering pretext to shipping 7 interactive effects across two sites in one session — explosion physics, bouncing bullets, and an animated crab named Clawd.
© Xingfan Xia 2024 - 2026 · CC BY-NC 4.0