~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
refactor: Make AI reviewer more friendly and positive
LearningCircuitadff08f26c89
diff --git a/.github/workflows/ai-pr-gatekeeper.yml b/.github/workflows/ai-code-reviewer.ymlsimilarity index 91%rename from .github/workflows/ai-pr-gatekeeper.ymlrename to .github/workflows/ai-code-reviewer.ymlindex 64cdd8bcdf..64f3d0f8a5 100644--- a/.github/workflows/ai-pr-gatekeeper.yml+++ b/.github/workflows/ai-code-reviewer.yml@@ -1,4 +1,4 @@-name: AI PR Gatekeeper+name: AI Code Revieweron:pull_request:@@ -38,7 +38,7 @@ jobs:id: reviewrun: |# Prepare the security-focused prompt- PROMPT='You are a security expert reviewing a pull request. Analyze the following code diff for security vulnerabilities and respond with JSON:+ PROMPT='You are a helpful security expert reviewing a pull request. Analyze the following code diff for security opportunities and respond with JSON. Be constructive and educational in your feedback.Focus on:- Hardcoded secrets, passwords, API keys, tokens@@ -60,27 +60,27 @@ jobs:"type": "security","file": "path/to/file.py","line": 42,- "message": "Specific security issue description"+ "message": "Specific security issue that needs attention"}],"warnings": [{"type": "security",- "message": "Security concern that should be addressed"+ "message": "Security opportunity for improvement"}],"suggestions": [{"type": "security",- "message": "Recommendation for improving security"+ "message": "Helpful security recommendation"}]}Status logic:- - "fail" = Any critical security issues found- - "warning" = Only security warnings, no critical issues- - "pass" = No security issues found+ - "fail" = Critical security issues that must be addressed for safety+ - "warning" = Security opportunities that would strengthen the code+ - "pass" = Great security practices observed!Code diff to review:${{ steps.diff.outputs.diff }}'@@ -127,19 +127,19 @@ jobs:let comment = '## 🔒 Security Review\n\n';if (status === 'fail') {- comment += '❌ **FAILED** - Critical security issues found that must be addressed:\n\n';+ comment += '🔒 **Security Check** - Found some important security items to address:\n\n';issues.forEach(issue => {comment += `**${issue.type.toUpperCase()}**: ${issue.message}`;if (issue.file) comment += ` (${issue.file}:${issue.line || '?'})`;comment += '\n\n';});} else if (status === 'warning') {- comment += '⚠️ **WARNING** - Security concerns found:\n\n';+ comment += '💡 **Security Opportunities** - Great start! Here are some ways to make it even more secure:\n\n';warnings.forEach(warning => {comment += `• ${warning.message}\n`;});} else {- comment += '✅ **PASSED** - No critical security issues found\n\n';+ comment += '🎉 **Excellent Security Practices** - No security concerns found!\n\n';}if (warnings.length > 0) {@@ -161,7 +161,7 @@ jobs:- name: Fail if Security Issues Foundif: steps.review.outputs.status == 'fail'run: |- echo "❌ Security check failed - PR cannot proceed"+ echo "🔒 Security items need attention - please address these important security points"exit 1# Second check: Performance (only runs if security passes)@@ -196,7 +196,7 @@ jobs:- name: Performance Review via APIid: reviewrun: |- PROMPT='You are a performance expert reviewing a pull request. Analyze the code diff for performance issues and respond with JSON:+ PROMPT='You are a helpful performance expert reviewing a pull request. Analyze the code diff for performance opportunities and respond with JSON. Be encouraging and provide actionable optimization suggestions.Focus on:- Inefficient algorithms or data structures@@ -236,9 +236,9 @@ jobs:}Status logic:- - "fail" = Critical performance issues that will significantly impact system performance- - "warning" = Performance concerns that should be optimized but are not critical- - "pass" = No performance issues found+ - "fail" = Performance opportunities that need attention for optimal system health+ - "warning" = Performance improvements that would enhance user experience+ - "pass" = Excellent performance practices!Code diff to review:${{ steps.diff.outputs.diff }}'@@ -276,19 +276,19 @@ jobs:let comment = '## ⚡ Performance Review\n\n';if (status === 'fail') {- comment += '❌ **FAILED** - Critical performance issues found:\n\n';+ comment += '⚡ **Performance Check** - Found opportunities to boost performance:\n\n';issues.forEach(issue => {comment += `**${issue.type.toUpperCase()}**: ${issue.message}`;if (issue.file) comment += ` (${issue.file}:${issue.line || '?'})`;comment += '\n\n';});} else if (status === 'warning') {- comment += '⚠️ **WARNING** - Performance concerns found:\n\n';+ comment += '🚀 **Performance Opportunities** - Good performance! Here are ways to make it even better:\n\n';warnings.forEach(warning => {comment += `• ${warning.message}\n`;});} else {- comment += '✅ **PASSED** - No performance issues found\n\n';+ comment += '🌟 **Excellent Performance** - Great optimization practices!\n\n';}comment += '\n---\n*This review was generated by AI (GLM-4.6) and should be verified by a human reviewer.*';@@ -303,7 +303,7 @@ jobs:- name: Fail if Performance Issues Foundif: steps.review.outputs.status == 'fail'run: |- echo "❌ Performance check failed - PR cannot proceed"+ echo "⚡ Performance opportunities found - please address these optimization points"exit 1# Third check: Code Quality (only runs if performance passes)diff --git a/docs/AI_PR_Gatekeeper_Setup.md b/docs/AI_Code_Reviewer_Setup.mdsimilarity index 97%rename from docs/AI_PR_Gatekeeper_Setup.mdrename to docs/AI_Code_Reviewer_Setup.mdindex 87b5d0bf3b..646ab0cc6e 100644--- a/docs/AI_PR_Gatekeeper_Setup.md+++ b/docs/AI_Code_Reviewer_Setup.md@@ -1,10 +1,10 @@-# AI PR Gatekeeper Setup Guide+# AI Code Reviewer Setup GuideThis guide explains how to set up the automated AI PR review system that uses GLM-4.6 via OpenRouter to review pull requests.## Overview-The AI PR Gatekeeper provides automated, chained code reviews with four check types:+The AI Code Reviewer provides helpful, automated code reviews with four check types:1. **Security Review** 🔒 - Most critical, runs first2. **Performance Review** ⚡ - Runs only if security passes3. **Code Quality Review** 🎨 - Runs only if performance passes