Programming · Blog · 🌐 International · via agentusecases.ai
An OpenClaw agent watches 26 pull requests and finds the old monitor had never run
A developer contributing to 13 open source projects built a PR watcher that scans every 5 minutes, plus a watchdog that checks the watcher itself is alive.
- Profession
- Developer
- Source
- dev.to ↗
- Country
- 🌐 International
- Found via
- agentusecases.ai (Alex Finn) ↗
- Report date
- April 17, 2026
- Verified on
- November 9, 2026
See more: AI for developers

What they did
Alex Chen was tracking more than 26 pull requests across 13 repositories and did not trust GitHub's email notifications. He built three pieces: a Python script that uses the GitHub CLI every 5 minutes to compare state, reviews, comments and merges against the last saved snapshot; plain JSON files holding that state and a queue of pending alerts; and a health check that runs every 30 minutes to confirm the log is being updated and the JSON is not corrupted. The OpenClaw agent wakes up on that interval, runs the check, reads new alerts and sends them to him on Feishu.
How it went
According to the author's DEV post of April 17, 2026, the previous version of the monitor had a Python typo (.ends instead of .endswith) and crashed on its very first run: it sat broken for 18 days without anyone noticing. Only the new version's health check revealed that the log file did not even exist. At the time of writing, the system was tracking 26 PRs, with 1 merged (a US$ 100 bounty), 1 closed and 24 awaiting review. He says he would swap polling for GitHub webhooks and the JSON queue for something like SQLite.
Good to know
The lesson applies to any automation: a monitor nobody monitors gives false confidence. Let a simple script do the scanning and have the agent only read the results and decide what to report. This is one person's account, submitted to a DEV challenge, with the public source checked before publishing.
The prompt
I want to track [number] of my pull requests across [list of repositories] without relying on GitHub email. Write a [Python or Node] script that uses the GitHub CLI to, every [interval], compare state, reviews, comments and merges with the last state saved in a JSON file and write new events to an alert queue. Then write a second health-check script that confirms the log was updated in the last [minutes] and the JSON is valid, exiting with an error if not. Explain how to schedule both with cron and do not put any token in the code.
Replace what is in [brackets]. Prompt written by us from the account, not a literal copy of the source. Do not paste other people’s personal data (privacy laws such as LGPD and GDPR apply).
Summary in our own words. Results as stated in the original account; we have not tested or audited them. Read the source ↗ Case found via agentusecases.ai (Alex Finn); text and prompt rewritten by us. Found a mistake?
Similar cases
01Creative coder uses Codex to move more than 200 sketches from OpenProcessing to GitHub in under 10 minutes
Codex wrote a script that downloaded the public projects, organized the folders, created READMEs and commits and published everything to a repository.
02Venturus builds AI agents for software development and product planning drops from 8 hours to 1
The Campinas innovation center measured internal product, testing, coding and design tasks, and total time fell from 121 to 45 hours.
03Team turns on the strictest compiler settings on a 1.5 million line system and uses Claude to fix what comes up
A developer explained on Hacker News how Claude tackles whole classes of compiler errors, with the team's own skills and scripts, in a huge .NET codebase.
04A requirements doc shelved for a year becomes a live website in one day with Claude Code
A tech consultant pulled out the spec for an aggregator of his own posts and shipped the site in a single day with Claude Code.
05Livelo engineers report up to 50% higher productivity with AI agents
The Brazilian loyalty program brought Kiro and Amazon Q Developer to its team of about 240 engineers, with metrics and governance from day one.
06A leaner MCP server finds wasted AWS spend in fewer calls
A cloud architect rebuilt a 15-tool MCP server with just 4 tools, and the agent now answers where an AWS account is wasting money in 2 calls instead of 7.
07Letting the agent deploy and read production errors on its own
The founder of a deployment platform explains how they designed an MCP server to take the human out of "copy and paste the log".
08Launching a habit app solo and doing the marketing with AI
A dev created Kada, a habit app with no account and no ads, and used AI for marketing.