feat: add Flue spam and off-topic filter agent#30832
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
I reviewed PR #30832 and posted a review with inline comments. Labels applied: Summary of changes: Issues flagged (4 inline comments):
Review posted at: #30832 (review) |
|
Preview URL: https://c2f8c578.preview.developers.cloudflare.com |
This reverts commit 4c311f3.
|
/bonk please review |
|
Posted a review on PR #30832 with inline suggestions. Findings:
Both can be removed to reduce lockfile bloat. The other issues from the prior review (missing |
Summary
Adds a Flue-based spam and off-topic filter agent that automatically evaluates GitHub issues and pull requests against the
cloudflare/cloudflare-docsrepository and closes obvious spam or off-topic submissions.How it works:
issues.openedandissues.reopenedpull_request.opened,pull_request.reopened, andpull_request.ready_for_review{ eventType, number }.spam-and-off-topic-filter/SKILL.md) instructs the model to evaluate the content and return a structured verdict:{ is_spam, confidence, reason }.spamoroff topiclabel, posts a comment, and closes the issue/PR whenis_spam: true,confidenceismediumorhigh, and the item is still open.Structure:
.flue/agents/orchestrate.ts.flue/agents/spam-and-off-topic-filter.ts.flue/lib/github.ts.flue/.agents/skills/spam-and-off-topic-filter/SKILL.md.flue/roles/cloudflare-docs-bot.md.flue/wrangler.jsoncTested against the latest 20 open PRs and 20 open issues — all legitimate PRs returned
is_spam: false, and the three off-topic/support issues that would have been closed were correctly identified.Screenshots (optional)
Spam PR
Closed by flue agent