I run a Telegram channel @Lx_groups focused on AI freebies—free API credits, limited-time offers, open-source projects, and industry news. The positioning is “truly free”: no gray-market content, no spammy promotions. Behind the channel is a Cloudflare Worker that pulls from upstream TG channel preview pages, GitHub Atom feeds, and major vendor RSS, deduplicates via KV storage, then pushes curated items to the channel through the Bot API.
The scraping pipeline itself isn’t hard; the real challenge is quality. Upstream sources are a mixed bag: genuine freebies sit alongside gray-market tutorials, referral-code spam, forum灌水 posts, and garbled fragments left over from upstream cross-posts. At first I had to manually scan the channel every morning—eyeing the 20 posts from the previous day, flagging the problematic ones, then going back to tweak the Worker’s filtering rules. It was exhausting and error-prone.
Step 1: Automate the “Morning Channel Scan” with a cron job
The first move was to automate the review process itself. I set up a cron job for the Hermes Agent to run daily at 5:30 AM: it curls the channel preview page t.me/s/Lx_groups, uses a Python script to parse out every message from the last 24 hours (timestamp, link, body), then hands each one to the agent for classification against a fixed rubric:
- ✅ Legit: free credits, limited-time offers, open-source releases, news, or tool announcements related to AI / large models
- ⚠️ Ads / traffic-driving: referral-code spam, soft-sell promotions, brand pushes
- 🚫 Gray-market: piracy, cracks, exploit-hunting, account-ban-risk operations
- 📝 Garble / fragments: forum post-notification debris, filler posts, formatting nonsense, upstream cross-post residue
- ❓ Unsure: anything ambiguous
The agent sends me a daily report on TG. I wake up and see the bottom line: N posts today, Y flagged, which ones to delete, which keywords to blacklist. The review step no longer eats into my attention.

Step 2: The review report isn’t the endpoint—it’s input for improvement
But soon I hit a problem: the review report came every day, and so did the issues. One day the report says “4 links repeated 6 times,” so I manually tweak the Worker; the next day it flags “forum filler posts slipped through,” and I manually tweak again. The review was automated, but the improvement still was—the loop was broken.
So I adjusted the workflow: instead of treating the review report as the end product, I started using it as raw material for improvement prompts. After accumulating six days of reports (8/9–8/14, 120 pushes total, 40 problematic), I scanned all 40 issues, grouped them by root cause, and compiled a single structured improvement prompt for Claude Code to apply to the Worker.
The integration wasn’t a simple dump. The 40 issues across six days fell into 9 categories, but not every category lends itself to hard-rule auto-filtering. I did a manual triage—this step was critical:
- Suitable for auto-blocking (hand off to Claude Code): duplicate links, leftover forum metadata tags, forum filler fragments, dedup logic failures, aggregation splice bugs, stale system test messages—these all have clear machine-readable signatures that regex / dedup logic can hit precisely.
- Not suitable for auto-blocking (must stay under human judgment): gray-market escalation, non-AI content filtering, soft-sell promotion of paid products.
Why is the second category a bad fit for auto-blocking? Because they’d false-positive on genuinely valuable sources. Real example: when I first drafted the prompt, I included both “gray-market escalation” and “non-AI content filtering” to hard-block by keyword. But quickly I realized—these two categories overlap heavily with the channel’s most valuable content. A post about “bypassing model hidden-reasoning protections” would hit the keyword “bypass” and get blocked as gray-market, but it’s actually AI research—a depth piece readers love. A post from nodeloc about an eSIM number-maintenance card has no AI keywords and would get caught by “non-AI filtering,” but the discount tactics and scripting tricks it points to are exactly the kind of practical intel the freebie community cares about.
Slap hard rules on those, and the controversial-but-valuable content disappears. The channel becomes “safe but boring.” So I deliberately removed that category from the auto-improvement list and left it for me to glance at during the daily review—draw the automation line at what can be judged precisely; hand off the rest to a human.
Step 3: The shape of the prompt
The finalized prompt lives as a .md file on my desktop, written in a purely imperative style—not prose for humans to read, but a direct copy-paste command for Claude Code. The structure:
- Project context: paths, core files, deploy command, test endpoints
- Already fixed (do not touch): anything repaired in the previous round (e.g., the
dedupUrlsfunction) must be left alone to prevent redundant work - Action items: each entry contains the symptom, sample, and fix instruction, ranked by priority P0 / P1 / P2
- Hard constraints: which files may be touched, which mechanisms must not be deleted, deploy-and-verify commands
- Execution order: numbered steps, ending with deploy + curl verification + report output
This format lets Claude Code run immediately without me verbally walking it through “do this first, then that, don’t forget to deploy.” The prompt also explicitly states “don’t stop to ask questions—just finish it in one shot,” to prevent it from pausing after every step.
Current loop status and next steps
Here’s how the loop runs today:
The loop is running, but one piece is still manual: I trigger the improvement step by hand—reading the report, compiling it, triaging, pasting into Claude Code. The next step is to automate that segment too: let the agent accumulate N days of reports, self-compile, self-triage by the “auto-blockable vs. human-judge” rule, invoke the Claude Code CLI to apply fixes, and self-deploy and verify. I’d only need to glance at the final review report to see what changed this round.
But before that, there’s a prerequisite: the auto-triage criteria must be stable enough. This time I manually removed gray-market escalation and non-AI filtering because they’d false-positive on valuable sources. If I hand that triage to an agent, it needs to reproduce the same judgment consistently—otherwise one round of “fully automated improvement” could end up auto-blocking the channel’s best content, which would be putting the cart before the horse. So the real next-order-of-operations is: first solidify the “auto-blockable” criteria into a reproducible prompt template, run it through a few validation cycles, then open the floodgates to full automation.
The point of closing the loop isn’t the “fully automated” label—it’s that every stage has a verifiable output: the review report is human-readable, the prompt is reusable, the improvements are deployable and testable. Each step can be inspected; if it’s wrong, you roll back. That’s far steadier than going full-auto from day one.
Further reading:
