Skip to content

~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.

improve: Increase diff size limit to 800KB to match model context

LearningCircuit5c4e3f8ed673
diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml
index 414139ce0a..a74c5e58d2 100644
--- a/.github/workflows/ai-code-reviewer.yml
+++ b/.github/workflows/ai-code-reviewer.yml
@@ -36,7 +36,7 @@ jobs:
AI_MODEL: z-ai/glm-4.6
AI_TEMPERATURE: 0.1
AI_MAX_TOKENS: 2000
- MAX_DIFF_SIZE: 100000
+ MAX_DIFF_SIZE: 800000
run: |
# Run the AI reviewer and post the comment directly via stdin
cat diff.txt | bash github/scripts/ai-reviewer.sh | gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} -F -
diff --git a/github/scripts/ai-reviewer.sh b/github/scripts/ai-reviewer.sh
index 9a08bb3548..bc58f66575 100755
--- a/github/scripts/ai-reviewer.sh
+++ b/github/scripts/ai-reviewer.sh
@@ -19,7 +19,7 @@ fi
AI_MODEL="${AI_MODEL:-z-ai/glm-4.6}"
AI_TEMPERATURE="${AI_TEMPERATURE:-0.1}"
AI_MAX_TOKENS="${AI_MAX_TOKENS:-2000}"
-MAX_DIFF_SIZE="${MAX_DIFF_SIZE:-100000}" # 100KB default limit
+MAX_DIFF_SIZE="${MAX_DIFF_SIZE:-800000}" # 800KB default limit (~200K tokens, matching model context size)
# Read diff content from stdin
DIFF_CONTENT=$(cat)