feat: add Flue spam and off-topic filter agent#30832
Draft
mvvmm wants to merge 5 commits into
Draft
Conversation
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
|
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) |
Contributor
|
Preview URL: https://82cda4b4.preview.developers.cloudflare.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Flue-based spam and off-topic filter agent that automatically evaluates newly opened GitHub issues and pull requests against the
cloudflare/cloudflare-docsrepository and closes obvious spam or submissions that do not clearly relate to developer documentation.How it works:
issues.openedandpull_request.openedevents to the Orchestrate agent.{ 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 }.is_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/lib/seed-r2.ts.agents/andAGENTS.mdfrom R2 into the sandbox on cold sessions.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