Repository navigation
Switch to Sonnet 5.5 and use Message Batches API - #30
Merged
Merged
Conversation
- Change the model from Claude Haiku 4.5 to Claude Sonnet 5.5, with thinking turned off - Send requests through the Message Batches API when a day has 20 or more PRs (weekdays: 16-56 PRs, weekends: 0-16) - Raise timeout-minutes of collect-prs.yml from 20 to 70 to allow for waiting on the batch - Update NuGet packages: Anthropic 12.44.0 -> 12.54.1 (for Sonnet 5.5) and Markdig 1.3.2 -> 1.4.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stop sending reviewer names in the prompt. With names only, the model invented approvals and review depth and attributed Copilot's findings to human reviewers - Raise max_tokens from 1024 to 2048. 1024 cut off about 4% of summaries mid-sentence - Show a fixed message in the 概要 section when the safety classifiers refuse to summarize a PR, and log a warning for refused or cut-off summaries - Move the summary settings (model, max_tokens, refused message) to Constants Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The new production batch workflow depends on live API timing, cancellation, and fallback behavior that cannot be fully validated statically.
0 open findings
What changed in this PR
Switches PR summarization to Claude Sonnet 5.5 and reduces high-volume costs through batch processing.
Changes:
- Uses Sonnet 5.5 with larger output limits and refusal handling.
- Batches days containing at least 20 PRs, with timeout and sequential fallback behavior.
- Updates dependencies, workflow timeout, prompts, and model documentation.
| File | Description |
|---|---|
src/PRDigest.NET/Program.cs |
Adds batch summarization, fallback processing, and refusal handling. |
src/PRDigest.NET/Constants.cs |
Centralizes model settings and refusal text. |
src/PRDigest.NET/PromptGenerator.cs |
Removes reviewer names from prompts. |
src/PRDigest.NET/PRDigest.NET.csproj |
Updates Anthropic and Markdig packages. |
.github/workflows/collect-prs.yml |
Extends the collection job timeout. |
README.md |
Documents the model and dependency updates. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
This PR switches the summarization model to Claude Sonnet 5.5 and uses the Message Batches API on busy days.
Changes
max_tokensfrom 1024 to 2048 (1024 cut off about 4% of summaries)timeout-minutesof collect-prs.yml from 20 to 70Reviewed by prozolic.
🤖 Generated with Claude Code