~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
Update ai-reviewer.sh
LearningCircuit799b03eee75d
diff --git a/ai-reviewer.sh b/ai-reviewer.shindex 1af890ef06..765d664df6 100755--- a/ai-reviewer.sh+++ b/ai-reviewer.sh@@ -74,6 +74,22 @@ if [ -n "$PR_NUMBER" ] && [ -n "$REPO_FULL_NAME" ] && [ -n "$GITHUB_TOKEN" ]; thfifi+# Fetch available repository labels (if PR_NUMBER and REPO_FULL_NAME are set)+AVAILABLE_LABELS=""+if [ -n "$PR_NUMBER" ] && [ -n "$REPO_FULL_NAME" ] && [ -n "$GITHUB_TOKEN" ]; then+ # Fetch all labels from the repository+ echo "🔍 Fetching available labels from repository..." >&2+ AVAILABLE_LABELS=$(gh api "repos/$REPO_FULL_NAME/labels" --paginate 2>/dev/null \+ --jq '.[] | "- **\(.name)**: \(.description // "No description") (color: #\(.color))"' || echo "")++ if [ -n "$AVAILABLE_LABELS" ]; then+ LABEL_COUNT=$(echo "$AVAILABLE_LABELS" | wc -l)+ echo "✅ Successfully fetched $LABEL_COUNT labels from repository" >&2+ else+ echo "ℹ️ No existing labels found in repository or API call failed" >&2+ fi+fi+# Create the JSON request with proper escaping using jq# Write diff to temporary file to avoid "Argument list too long" errorDIFF_FILE=$(mktemp)@@ -99,6 +115,17 @@ Please consider any failed or pending checks in your review. If tests are failin"fi+# Add available labels context if available+if [ -n "$AVAILABLE_LABELS" ]; then+ PROMPT_PREFIX="${PROMPT_PREFIX}+Available Repository Labels:+Please prefer using existing labels from this list over creating new ones:+$AVAILABLE_LABELS++If none of these labels are appropriate for the changes, you may suggest new ones.+"+fi+# Add previous reviews context if availableif [ -n "$PREVIOUS_REVIEWS" ]; thenPROMPT_PREFIX="${PROMPT_PREFIX}@@ -128,6 +155,12 @@ IMPORTANT: Respond with valid JSON only using this exact format:\"labels_added\": [\"bug\", \"feature\", \"enhancement\"]}+For the labels_added field:+- First check if any existing repository labels (listed above) are appropriate+- Prefer existing labels over creating new ones when possible+- Only suggest new labels when no existing ones fit the changes+- Keep labels concise and descriptive+Focus action items on critical fixes only, not trivial nitpicks.IMPORTANT: End your review with a clear final assessment section like: