---
title: "David Crawshaw 提出夜间自动 rebase 上游更新的 AI 提示词"
source: "Simon Willison 博客（Atom）"
source_tier: "t2"
url: "https://simonwillison.net/2026/Aug/3/david-crawshaw/#atom-everything"
permalink: "https://feed.astralor.com/items/itm_4395e81e84cb079ecc4484de"
published: "2026-08-03T16:15:27.000Z"
score: 70
channel: "ai"
tags: ["AI Agent","cron","提示词工程","软件维护"]
---

# David Crawshaw 提出夜间自动 rebase 上游更新的 AI 提示词

## AI 点评

> 这条内容的价值在于它把 AI 提示词变成了一种可复用的运维模式。对维护 Fork 或下游分支的开发者来说，夜间自动 rebase 能省下大量时间。值得所有做开源的人收藏。

## 速览

David Crawshaw 分享了一个简单却实用的提示词：设置 nightly cron 任务，执行 fetch 上游变更并 rebase 本地代码，然后验证软件是否正常工作。该提示词展示了如何用 AI 自动化日常维护流程，减少人工干预，适合需要持续跟上上游项目的开发者。

## 关键点

- 利用 cron 定时任务自动拉取上游变更。
- 在本地分支上执行 rebase 保持代码同步。
- 自动验证软件可用性，确保集成后无回归。
- 该提示词可作为 AI Agent 自动化运维的模板。

## 全文

Set up a nightly cron job that executes the prompt: fetch upstream changes to the &lt;software&gt; and rebase all local changes on top of upstream. Check that the software works …

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_4395e81e84cb079ecc4484de
