Skip to content

fix(opencode): use deepseek flash for code-reviewer agent - #2357

Merged
shunkakinoki merged 1 commit into
mainfrom
worktree/calm-meadow-7a29
Aug 12, 2026
Merged

fix(opencode): use deepseek flash for code-reviewer agent#2357
shunkakinoki merged 1 commit into
mainfrom
worktree/calm-meadow-7a29

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Switch code-reviewer agent model from anthropic/claude-sonnet-4-20250514 to shunkakinoki/deepseek-v4-flash
  • Template uses __DEEPSEEK_FLASH__ placeholder for hydration via models.json
  • Avoids Anthropic quota/auth errors that were triggering fallback on every code-review session

Test plan

  • Run opencode with code-reviewer agent and verify it uses deepseek-v4-flash
  • Confirm fallback log no longer shows anthropic model failures for code-reviewer

Summary by cubic

Switch the code-reviewer agent to shunkakinoki/deepseek-v4-flash and introduce __DEEPSEEK_FLASH__ in the template for hydration via models.json. This avoids Anthropic quota/auth failures that were triggering fallback during reviews.

Written for commit 090645b. Summary will update on new commits.

Review in cubic

@indent-zero

indent-zero Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Indent Zero is shutting down on August 7th. Please migrate over to Indent 2.0 to continue getting PR reviews.

PR Summary

Switches the opencode code-reviewer agent from Anthropic Claude Sonnet 4 to the CLIProxy-routed Deepseek Flash model to align it with the repo's default model provider. Applied consistently to the rendered config and its template so llm-update.sh output stays in sync.

  • Change agent.code-reviewer.model from anthropic/claude-sonnet-4-20250514 to shunkakinoki/deepseek-v4-flash in config/opencode/opencode.jsonc
  • Mirror the change in config/opencode/opencode.tpl.jsonc using the __DEEPSEEK_FLASH__ placeholder

Issues

1 potential issue found:

  • Nit: agent.code-reviewer.model (shunkakinoki/deepseek-v4-flash) now duplicates the top-level default model in opencode.jsonc, making the override redundant — consider dropping the line unless the explicit pin is intentional to guard against future default changes. → Autofix

CI Checks

Waiting for CI checks...


⚡ Autofix All Issues

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@shunkakinoki, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b7f94e5e-1ee0-4f35-904b-40b8ed5d9e2a

📥 Commits

Reviewing files that changed from the base of the PR and between a83c3df and 090645b.

📒 Files selected for processing (2)
  • config/opencode/opencode.jsonc
  • config/opencode/opencode.tpl.jsonc

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shunkakinoki
shunkakinoki merged commit a60d591 into main Aug 12, 2026
26 of 29 checks passed
@shunkakinoki
shunkakinoki deleted the worktree/calm-meadow-7a29 branch August 12, 2026 05:27
"code-reviewer": {
"description": "Reviews code for best practices and potential issues",
"model": "anthropic/claude-sonnet-4-20250514",
"model": "shunkakinoki/__DEEPSEEK_FLASH__",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant with top-level default: The top-level model at line 3 is already shunkakinoki/__DEEPSEEK_FLASH__, so this per-agent model override resolves to the same value. The code-reviewer agent block only needs to differ from the default via its prompt and tools (which are the meaningful overrides). You can drop this line unless you want to explicitly pin the reviewer's model so it doesn't drift if you change the top-level default later. Same applies to config/opencode/opencode.jsonc:9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant