Back/Engineering/Claude/GitHub Copilot
IntermediateEngineeringClaudeGitHub Copilot

Automate Daily Pull Request Reviews with a Claude Code Agent

Create an AI agent in Claude Code to automatically review aging pull requests, prompt your team for action via Slack, and even fix issues autonomously. This routine helps engineering teams ship code faster and reduce manual follow-up.

Automate Daily Pull Request Reviews with a Claude Code Agent

Tools Used

Claude

Anthropic AI assistant

GitHub Copilot

AI pair programmer

02Step-by-Step Guide
1

Create a New Routine

In Claude Code, navigate to the 'Routines' section and create a new one. Name it something descriptive, like 'daily aging PR review', and set the schedule to run daily at a specific time.

2

Define the Agent's Job with a Prompt

Write a detailed prompt that acts as a job description for the agent. Instruct it to check for PRs older than 12 hours, determine merge readiness, and define what to do if it can fix things itself (spin up a sub-agent) versus when it needs human help (send a Slack notification).

Prompt:
Look at the prs open on the chat PRD app app. If there are any prs open more than 12 hours. Please review their merge readiness. If there is anything that you can babysit, spin up a thread to babysit that PR until all merge checks are green. Otherwise send a slack in the product channel to the team about the open prs that are ready for approval and merge be mean when you send the slack.
3

Activate and Monitor the Routine

Once the routine is configured with its schedule and prompt, activate it. The agent will now run autonomously every day, using its connected GitHub and Slack tools to manage pull requests without any further manual intervention.

Start shipping
better products.

Join 100,000+ product managers who use ChatPRD to write better docs, align teams faster, and build products users love.

Free to start
No credit card
SOC 2 certified
Enterprise ready