Skip to content

chore: retarget agents to gemini-3.1-pro - #1190

Open
fuentes71 wants to merge 3 commits into
mainfrom
chore/agents-gemini-3-1-pro
Open

chore: retarget agents to gemini-3.1-pro#1190
fuentes71 wants to merge 3 commits into
mainfrom
chore/agents-gemini-3-1-pro

Conversation

@fuentes71

@fuentes71 fuentes71 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Substitui o #1189, fechado automaticamente quando a branch foi renomeada de chore/agents-gemini-3-6-pro para chore/agents-gemini-3-1-pro. Mesmos commits, mesmo conteudo.

O que a branch entrega

Move 47 agents de gemini-2.5-pro para gemini-3.1-pro e adiciona esse modelo a allowlist do validate-agents.js. Uma linha por agent, nenhuma outra alteracao.

O caminho ate aqui, porque muda o que o PR significa

O objetivo original era resolver o aviso do egc doctor: 50 managed files com drift, todos agents/*.md divergindo so no campo model. Os agents instalados rodavam gemini-3.6-pro e a fonte declarava gemini-2.5-pro. Como egc repair restaura a partir da fonte, ele faria downgrade dos 50 em vez de reparar, entao a correcao certa era levar o bump pra fonte.

So que gemini-3.6-pro nao existe. O Google lancou o Gemini 3.6 Flash em 21/07/2026, e o 3.5 Pro foi adiado tres vezes sem sair. Nunca houve um "3.6 pro". O nome veio de um replace local que pegou o "3.6" do Flash e colou no "pro".

Quem pegou isso foi o CI deste repositorio. A allowlist do validate-agents.js rejeitou o nome e derrubou o job Validate Components. O validador estava certo e o PR e que estava errado, o que e exatamente o que essa allowlist existe pra fazer.

Alvo corrigido para gemini-3.1-pro: GA desde fevereiro de 2026, o Gemini de raciocinio mais forte disponivel, e o upgrade honesto de gemini-2.5-pro que era a intencao desde o inicio.

Mudanca na allowlist

A lista nao tinha nenhuma entrada da familia Gemini 3, parando no 2.5, apesar de ter sido tocada em 03/08. Adicionei apenas gemini-3.1-pro, que e o que este PR usa. gemini-3.6-flash e gemini-3.5-flash-lite tambem sao GA e podem entrar quando algum agent for usa-los.

doc-updater fica em flash

Era o unico agent fora da familia pro e tinha entrado no bump por acidente do regex, que pega qualquer model: gemini-*. Ele gera codemap e documentacao, tarefa de volume onde flash e a escolha de custo certa. Mantido em gemini-2.0-flash.

Se valer modernizar tambem o tier flash, gemini-3.6-flash e GA desde 21/07 e consome 17% menos tokens de saida que o 3.5-flash. Fica como sugestao, fora do escopo deste PR.

Efeito no egc doctor: leia antes de esperar verde

Este PR nao zera o aviso do egc doctor, e agora menos ainda.

Primeiro porque o doctor compara o instalado contra o pacote npm (node_modules/@egchq/egc), nao contra o clone git; confirmei pelos sourcePath do install-state.json. So uma release publicada muda isso.

Segundo, e mais importante: os agents instalados na maquina ainda apontam para gemini-3.6-pro, um modelo que nao existe. Isso e um problema ativo independente deste PR e precisa de uma reinstalacao ou correcao local, nao de um merge.

Verificacao

Job Validate Components reproduzido inteiro localmente: validate-agents, validate-hooks, validate-commands, validate-skills, validate-skill-frontmatter, validate-translation-structure e catalog.js, todos exit 0.

Diff de 47 agents, 94 linhas, todas linhas model:. Distribuicao final: 47x gemini-3.1-pro, 13x sonnet, 1x gemini-2.0-flash.

Fim de linha CRLF preservado: o regex nao inclui o terminador, porque consumir o \r reescreveria a linha como LF e deixaria os arquivos mistos.

🤖 Generated with Claude Code


Summary by cubic

Retargets 47 agents from gemini-2.5-pro to gemini-3.1-pro and updates the CI allowlist to accept this model. This corrects the earlier invalid gemini-3.6-pro target and unblocks model validation.

  • Migration
    • After publishing a new @egchq/egc, reinstall agents to apply gemini-3.1-pro; until then, egc doctor may keep reporting drift.
    • If local agents were set to gemini-3.6-pro, reinstall or update them to gemini-3.1-pro.

Written for commit 817018a. Summary will update on new commits.

Review in cubic

Alinha o campo model dos agents com o que ja esta em uso instalado. Sao 48
arquivos, uma linha em cada, nenhuma outra alteracao.

Motivo: egc doctor reporta 50 managed files com drift, e o drift e
exatamente esse campo. Os agents instalados rodam em gemini-3.6-pro desde
31/07 enquanto o repo ainda declara gemini-2.5-pro. Como egc repair
restaura a partir da fonte, hoje ele faria DOWNGRADE dos 50 agents em vez de
reparar. Levar o bump pra fonte resolve na direcao certa.

Os 13 agents em model: sonnet ficam intactos, como no script original.

doc-updater merece um olhar do revisor: era o unico em gemini-2.0-flash e
entrou no bump porque o replace pega qualquer model: gemini-*. Ele gera
codemap e documentacao, tarefa de volume onde flash era provavelmente escolha
de custo. Segui o estado instalado por consistencia, mas se a promocao pra pro
foi colateral e nao intencional, e aqui que se reverte.

Nao alterado de proposito: .opencode/MIGRATION.md cita gemini-2.5-pro num
snippet de exemplo de frontmatter, nao e config ativa.

Signed-off-by: Matheus Fuentes <matheus.fu.p@hotmail.com>
Reverte o doc-updater pra gemini-2.0-flash. Ele era o unico agent fora da
familia pro e so entrou no bump porque o replace pega qualquer
model: gemini-*, entao a promocao foi colateral do regex, nao decisao.

Ele gera codemap e documentacao, que e tarefa de volume e alta frequencia.
Flash e a escolha de custo correta ali, e rodar isso em pro encarece sem
ganho proporcional.

Mantido no 2.0-flash, o valor que ja estava. Nao existe gemini-3.6-flash em
lugar nenhum da stack (so 2.0-flash e 2.5-flash aparecem), entao "subir a
geracao mantendo flash" significaria inventar nome de modelo.

Efeito colateral aceito: este arquivo passa a divergir do instalado, que roda
em pro desde 31/07, entao o egc doctor vai continuar contando 1 arquivo de
drift ate a proxima instalacao propagar o flash de volta.

Signed-off-by: Matheus Fuentes <matheus.fu.p@hotmail.com>
O alvo anterior deste PR, gemini-3.6-pro, NAO existe. O Google lancou o
Gemini 3.6 Flash em 21/07/2026 e o 3.5 Pro foi adiado tres vezes sem sair,
entao nunca houve um "3.6 pro". O nome saiu de um replace local que pegou o
"3.6" do Flash e colou no "pro".

Quem pegou isso foi o proprio validate-agents.js: a allowlist de modelos
rejeitou o nome e derrubou o job Validate Components. O validador estava
certo; o PR e que estava errado.

Alvo corrigido para gemini-3.1-pro, GA desde fevereiro de 2026 e o Gemini de
raciocinio mais forte disponivel. E o upgrade honesto de gemini-2.5-pro, que
era a intencao original.

A allowlist ganha gemini-3.1-pro, sem o qual o proprio upgrade nao passa. Ela
nao tinha nenhuma entrada da familia Gemini 3; adicionei so a que este PR usa.
gemini-3.6-flash e gemini-3.5-flash-lite tambem sao GA e podem entrar depois,
se algum agent for usa-los.

doc-updater segue em gemini-2.0-flash, como decidido.

Signed-off-by: Matheus Fuentes <matheus.fu.p@hotmail.com>
@fuentes71
fuentes71 requested a review from Fmarzochi as a code owner August 4, 2026 13:17
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 11 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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 33b56521-9faf-47dc-9912-b577db49acbf

📥 Commits

Reviewing files that changed from the base of the PR and between a220799 and 817018a.

⛔ Files ignored due to path filters (47)
  • agents/a11y-architect.md is excluded by !agents/** and included by none
  • agents/architect.md is excluded by !agents/** and included by none
  • agents/build-error-resolver.md is excluded by !agents/** and included by none
  • agents/chief-of-staff.md is excluded by !agents/** and included by none
  • agents/code-architect.md is excluded by !agents/** and included by none
  • agents/code-explorer.md is excluded by !agents/** and included by none
  • agents/code-reviewer.md is excluded by !agents/** and included by none
  • agents/code-simplifier.md is excluded by !agents/** and included by none
  • agents/comment-analyzer.md is excluded by !agents/** and included by none
  • agents/conversation-analyzer.md is excluded by !agents/** and included by none
  • agents/cpp-build-resolver.md is excluded by !agents/** and included by none
  • agents/cpp-reviewer.md is excluded by !agents/** and included by none
  • agents/csharp-reviewer.md is excluded by !agents/** and included by none
  • agents/dart-build-resolver.md is excluded by !agents/** and included by none
  • agents/database-reviewer.md is excluded by !agents/** and included by none
  • agents/docs-lookup.md is excluded by !agents/** and included by none
  • agents/e2e-runner.md is excluded by !agents/** and included by none
  • agents/flutter-reviewer.md is excluded by !agents/** and included by none
  • agents/gan-evaluator.md is excluded by !agents/** and included by none
  • agents/gan-generator.md is excluded by !agents/** and included by none
  • agents/gan-planner.md is excluded by !agents/** and included by none
  • agents/go-build-resolver.md is excluded by !agents/** and included by none
  • agents/go-reviewer.md is excluded by !agents/** and included by none
  • agents/harness-optimizer.md is excluded by !agents/** and included by none
  • agents/healthcare-reviewer.md is excluded by !agents/** and included by none
  • agents/java-build-resolver.md is excluded by !agents/** and included by none
  • agents/java-reviewer.md is excluded by !agents/** and included by none
  • agents/kotlin-build-resolver.md is excluded by !agents/** and included by none
  • agents/kotlin-reviewer.md is excluded by !agents/** and included by none
  • agents/loop-operator.md is excluded by !agents/** and included by none
  • agents/opensource-forker.md is excluded by !agents/** and included by none
  • agents/opensource-packager.md is excluded by !agents/** and included by none
  • agents/opensource-sanitizer.md is excluded by !agents/** and included by none
  • agents/performance-optimizer.md is excluded by !agents/** and included by none
  • agents/planner.md is excluded by !agents/** and included by none
  • agents/pr-test-analyzer.md is excluded by !agents/** and included by none
  • agents/python-reviewer.md is excluded by !agents/** and included by none
  • agents/pytorch-build-resolver.md is excluded by !agents/** and included by none
  • agents/refactor-cleaner.md is excluded by !agents/** and included by none
  • agents/rust-build-resolver.md is excluded by !agents/** and included by none
  • agents/rust-reviewer.md is excluded by !agents/** and included by none
  • agents/security-reviewer.md is excluded by !agents/** and included by none
  • agents/seo-specialist.md is excluded by !agents/** and included by none
  • agents/silent-failure-hunter.md is excluded by !agents/** and included by none
  • agents/tdd-guide.md is excluded by !agents/** and included by none
  • agents/type-design-analyzer.md is excluded by !agents/** and included by none
  • agents/typescript-reviewer.md is excluded by !agents/** and included by none
📒 Files selected for processing (1)
  • scripts/ci/validate-agents.js

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.

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

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.

No issues found across 48 files

Re-trigger cubic

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