-
Notifications
You must be signed in to change notification settings - Fork 100
feat: enforce strict activation rules for DevRel agent #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThree prompt files were edited to tighten DevRel activation and clarify summarization and supervisor phrasing: classification rules were rewritten into explicit activation/ignore criteria; the REACT supervisor prompt gained an activation preface; the conversation summary prompt's second instruction was refocused. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
backend/app/agents/devrel/prompts/react_prompt.py(1 hunks)backend/app/agents/devrel/prompts/summarization_prompt.py(1 hunks)backend/app/classification/prompt.py(1 hunks)
🔇 Additional comments (3)
backend/app/agents/devrel/prompts/react_prompt.py (1)
1-3: LGTM! Clear activation context.The explicit activation statement on line 2 aligns well with the PR's goal to enforce strict boundaries. By acknowledging that "a user requires specific assistance," this prompt now operates with the understanding that triage has already occurred.
backend/app/agents/devrel/prompts/summarization_prompt.py (1)
14-14: LGTM! Improved specificity.The updated instruction now emphasizes capturing "specific technical intent, questions asked, and problems solved" rather than broader interests and experience. This aligns with the stricter activation criteria and provides more actionable context for future triage decisions.
backend/app/classification/prompt.py (1)
7-28: Strong activation boundaries defined.The CRITICAL INSTRUCTIONS block clearly establishes the three precise activation conditions with assigned priorities. The IGNORE section effectively clarifies non-triggering scenarios, which should significantly reduce false positives as intended.
Amending priority from high to medium as suggested by coderabbit to conform with the earlier assumptions. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Closes #93
Description
Refined the agent's system prompts to enforce strict activation boundaries. This ensures the DevRel agent only intervenes when explicitly required, preventing it from responding to general chatter or irrelevant messages.
Changes Made
DEVREL_TRIAGE_PROMPThas been rewritten to prioritize specialized technical assistance over general conversation according to FEATURE REQUEST: Enhance Classification Prompt for Stricter DevRel Query Handling #93The
REACT_SUPERVISOR_PROMPTis updated to explicitly acknowledge that the agent is acting on a validated request. This helps the model stay on track.The
CONVERSATION_SUMMARY_PROMPTwas refined to capture the user's specific technical intent and problems. This ensures that future classifications have a clearer signal of the user's ongoing technical context.These changes significantly reduce false positives, making the bot less intrusive while maintaining high responsiveness for genuine technical support queries.
Screenshots
Before


After
✅ Checklist
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.