Overview
Schedule a nightly Claude Code task that reads the day's commits, open pull requests and notes in your repository and writes a short retrospective and a list of suggested next tasks for you to review in the morning.
Problem or Objective
- Which agents can draft a document section by section and save it in a reusable, structured format?
- Which assistants prepare a daily summary for you?
More in Business Operations
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code · Git
- Prerequisites
- Claude Code (most surfaces require a Claude subscription or Anthropic Console account) with cloud scheduled tasks (which keep running when your computer is off) or Desktop scheduled tasks (which run on your machine).
How It Works
Decide what the nightly report should cover: commits and merged pull requests since the last run, open pull requests waiting on you, failing tests if any, and the notes file where you keep open questions. Write the instructions in a prompt file in the repository, including the exact report path (for example reports/YYYY-MM-DD.md) and a rule that the run may only read the code and write that one file. Create a Desktop scheduled task if the run needs your local files, or a cloud scheduled task if it should run while your computer is off, and set it for a time after your working day. Each morning, read the report: what changed, what went well, what stalled, and a short list of suggested next tasks with the files involved. Pick the tasks you agree with yourself and start them in a normal session. Adjust the prompt file when the report misses or overstates something.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code, Git.
- Check the prerequisitesClaude Code (most surfaces require a Claude subscription or Anthropic Console account) with cloud scheduled tasks (which keep running when your computer is off) or Desktop scheduled tasks (which run on your machine).
- Gather your detailsCollect what the prompt asks for: Repository to review, Start of the period, Whose review queue to include, Notes file with open questions, Where the report goes, How many suggested tasks.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Write the nightly work report
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read the commits and merged pull requests in [Repository to review] since [Start of the period], the open pull requests that wait on [Whose review queue to include], and the notes in [Notes file with open questions]. Write a report to [Where the report goes] with four short sections: what changed, what went well, what stalled and why, and up to [How many suggested tasks] suggested next tasks with the files involved. Only read the code and write that one file: do not edit other files, commit, push, merge or message anyone.Read the report each morning and start only the tasks you agree with, in a normal session. Keep the scheduled run read-only apart from the report file.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's overview says you can run Claude on a schedule to automate repeating work, with morning PR reviews and overnight CI failure analysis as examples, and describes cloud scheduled tasks that keep running when your computer is off and Desktop scheduled tasks that run on your machine with access to local files. It does not describe retrospective reports specifically, so the usefulness of each summary depends on your prompt.
Limitations and Considerations
Keep the scheduled run read-only apart from the report file, and do not let it push, merge or message anyone; you decide what to act on in the morning. Check what each scheduled run counts against on your plan before running it every night. Read the report critically: it summarises what it found and can miss context that never reached the repository. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Run Claude on a schedule to automate work that repeats: morning PR reviews, overnight CI failure analysis, weekly dependency audits, or syncing docs after PRs merge.
- Cloud scheduled tasks , formerly routines, run in the cloud, so they keep running even when your computer is off.
- Desktop scheduled tasks run on your machine, with direct access to your local files and tools
- Most surfaces require a Claude subscription or Anthropic Console account.

