David Crawshaw:用夜间 cron 自动同步上游代码

Quoting David Crawshaw

精选理由

Crawshaw 给了一个能直接抄的 cron 提示词,让编码代理每晚自动 rebase 上游,不用再手动合并了。

AI 摘要

David Crawshaw 认为开发工具必须开源,并给出一个可直接使用的提示词。该提示词要求设置夜间 cron 任务,执行“获取上游更改并变基所有本地更改”的指令,随后检查软件是否正常并替换当前版本。这个流程能帮助开发者长期维护基于上游的本地分支,适合配合编码代理使用。

原文 · Simon Willison’s Weblog

Quoting David Crawshaw

Set up a nightly cron job that executes the prompt: fetch upstream changes to the <software> and rebase all local changes on top of upstream. Check that the software works as intended and replace the current version. — David Crawshaw , Devtools must be open source Tags: prompt-engineering , coding-agents , generative-ai , ai , llms , open-source