Who it is forA team lead or maintainer who wants open pull requests checked regularly without remembering to do it.
The problemRoutine PR babysitting and cleanup gets skipped when it depends on someone starting it manually.
The outcomeA task repeats on your chosen interval for up to three days while you work on other things.
What you need first
- Claude Code installed and running in a terminal
- A project folder or git repository to work in
- Access to a Claude account that Claude Code can use
Steps
- Write the recurring workflow as a skill, for example one named pr-pruner (inferred: the README uses this name as an example).
- Start Claude Code in the repository with
claude. - Run
/loop 1h /pr-prunerto repeat the skill every hour. - For a shorter check, run
/loop 5m /babysitinstead. - For a job that keeps running after you close your laptop, use
/scheduleas the README describes.
Prompt for your agent
In the repo at <repo-path>, set up a loop that runs the pr-pruner skill every hour using /loop 1h /pr-pruner. Expected output: the loop starts and reports its interval. Verify by confirming the loop status shows the 1h interval.
Caveat. The README says /loop runs for up to three days, so plan to restart it for longer-running work.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for onmyway133/claude-code-tips-tricks and "Run a recurring PR check on a timed loop"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer