Claude Code 新增雲端定時任務功能!不用開電腦,AI 自動審核 PR、升級

動區BlockTempo

Anthropic 旗下 AI 程式設計工具 Claude Code 正式推出雲端定時任務功能,使用者可透過 Web 介面或 /schedule 指令設定排程,讓 Claude 在雲端自動執行程式碼審查、更新升級、CI 任務重跑等工作,完全不需本地保持連線。
(前情提要:Claude Code 推出頻道 Channels:能在 Telegram、Discord 與 AI 代理對話,Anthropic 正面對決 openclaw 小龍蝦)
(背景補充:Anthropic 駭客松冠軍免費分享 Claude Code 萬用配置:13 個 Agents、40+技能、31 指令全公開)

Anthropic 的 Claude Code 這次更新,多了一個功能 /schedule 改變了整個使用模式。

以前的 /loop 指令確實可以排程,但那是本地會話層級的,只要你關掉視窗,任務就停了。現在這個雲端定時任務(Scheduled Tasks)不同,設定完就可以關電腦,Claude 在雲端自己跑。

你可以叫 Claude 自動做哪些事

官方給出幾個範例,看起來都是開發者日常最煩的雜事:

每天自動掃描所有開放中的 PR、標出超過兩天沒人處理的、每週一自動升級補丁版本的依賴套件並送出 PR、每晚重跑失敗的 CI 任務,反覆掛掉的測試還會自動開 ticket。

設定方式有兩種,Web 端直接配置,或在現有會話裡輸入 /schedule 指令建立。

用戶要指定三件事:目標程式碼倉庫、執行時間計畫(像 cron 格式)、還有給 Claude 的提示詞。底層用的是 CronCreate / CronList / CronDelete 這組工具 API。

安全機制

有一個設計值得注意,任務會在三天後自動過期。這是 Anthropic 刻意的安全機制,防止設了就無限跑下去。想繼續用就要手動把時間延續,或者要用戶確認任務是否要繼續。

這功能目前在 Cowork 生態下推出,也就是 Claude Code 桌面版的協作功能框架。定時任務的提示詞存放在本地的 ~/.claude/scheduled-tasks/ 目錄,算是半託管的架構,雲端執行、設定在本地管。

從產品走向來看,Anthropic 最近動作很密集,包括 Opus 4.6 實裝百萬 Token 上下文、Claude Code Channels 整合了 Telegram 和 Discord、還有 off-peak 雙倍用量促銷。這次雲端定時任務,是把 Claude Code 從同步工具,變成更像龍蝦這種可以佈置定時任務的互動代理。

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.
Opmerking
0/400
Geen opmerkingen