How-to

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

Quoting David Crawshaw

Why we picked it

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

David Crawshaw 认为开发工具必须开源,并给出一个可直接使用的提示词。该提示词要求设置夜间 cron 任务,执行“获取上游更改并变基所有本地更改”的指令,随后检查软件是否正常并替换当前版本。

Body

这个流程能帮助开发者长期维护基于上游的本地分支,适合配合编码代理使用。

Original · 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. &mdash; David Crawshaw , Devtools must be open source Tags: prompt-engineering , coding-agents , generative-ai , ai , llms , open-source

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include David Crawshaw, cron, 提示词工程, 开源.

Source attribution: curated from Simon Willison’s Weblog.