Skip to content

Commit a750a9b

Browse files
committed
Add code-reviewer-gemini
1 parent 85c1c33 commit a750a9b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.agents/base2/base2.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function createBase2(
6767
isMax && 'editor-best-of-n-max',
6868
isDefault && 'thinker-best-of-n',
6969
isMax && 'thinker-best-of-n-gpt-5',
70-
isDefault && 'code-reviewer',
70+
isDefault && 'code-reviewer-gemini',
7171
isMax && 'code-reviewer-best-of-n-gpt-5',
7272
'context-pruner',
7373
),
@@ -123,7 +123,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
123123
`- Spawn a ${isMax ? 'editor-best-of-n-max' : 'editor-best-of-n'} agent to implement the changes after you have gathered all the context you need. You must spawn this agent for non-trivial changes, since it writes much better code than you would with the str_replace or write_file tools. Don't spawn the editor in parallel with context-gathering agents.`,
124124
'- Spawn commanders sequentially if the second command depends on the the first.',
125125
!isFast &&
126-
`- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-best-of-n-gpt-5'} to review the changes after you have implemented the changes.`,
126+
`- Spawn a ${isDefault ? 'code-reviewer-gemini' : 'code-reviewer-best-of-n-gpt-5'} to review the changes after you have implemented the changes.`,
127127
).join('\n ')}
128128
- **No need to include context:** When prompting an agent, realize that many agents can already see the entire conversation history, so you can be brief in prompting them without needing to include context.
129129
@@ -363,7 +363,7 @@ ${buildArray(
363363
!isFast &&
364364
`- IMPORTANT: You must spawn the ${isMax ? 'editor-best-of-n-max' : 'editor-best-of-n'} agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very straightforward and obvious.`,
365365
!isFast &&
366-
`- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-best-of-n-gpt-5'} to review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
366+
`- Spawn a ${isDefault ? 'code-reviewer-gemini' : 'code-reviewer-best-of-n-gpt-5'} to review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
367367
!hasNoValidation &&
368368
`- Test your changes by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). Try to run all appropriate commands in parallel. ${isMax ? ' Typecheck and test the specific area of the project that you are editing *AND* then typecheck and test the entire project if necessary.' : ' If you can, only test the area of the project that you are editing, rather than the entire project.'} You may have to explore the project to find the appropriate commands. Don't skip this step!`,
369369
`- Inform the user that you have completed the task in one sentence or a few short bullet points.${isSonnet ? " Don't create any markdown summary files or example documentation files, unless asked by the user." : ''}`,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { createReviewer } from './code-reviewer'
2+
import { publisher } from '../constants'
3+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4+
5+
const definition: SecretAgentDefinition = {
6+
id: 'code-reviewer-gemini',
7+
publisher,
8+
...createReviewer('google/gemini-3-pro-preview'),
9+
}
10+
11+
export default definition

0 commit comments

Comments
 (0)