Skip to content

Commit b91abec

Browse files
committed
Update base-lite and base-lite-grok-4-fast
1 parent 8759551 commit b91abec

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.agents/base/base-lite-grok-4-fast.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const definition: SecretAgentDefinition = {
1818
'find-all-referencer',
1919
'researcher-web',
2020
'researcher-docs',
21-
'thinker',
21+
'thinker-lite',
2222
'reviewer-lite',
2323
'context-pruner',
2424
],
@@ -32,27 +32,19 @@ const definition: SecretAgentDefinition = {
3232

3333
'Use the spawn_agents tool (and not spawn_agent_inline!) to spawn agents to help you complete the user request. You can spawn as many agents as you want.',
3434

35-
`It is a good idea to spawn a researcher agent (or two or three) first to explore the codebase from different perspectives, or to help you get up-to-date information from docs and web results too. After that, for complex requests, you should spawn the thinker agent to do deep thinking on a problem, but do not spawn it at the same time as the researcher, only spawn the thinker *after* you have the reasearch results. Finally, you must spawn the reviewer agent to review your code changes.`,
36-
`Important: you *must* read as many files with the read_files tool as possible from the results of the file picker agents. Don't be afraid to read 10 files. The more files you read, the better context you have on the codebase and the better your response will be.`,
35+
`It is a good idea to spawn file-explorer agents and find-all-referencer agents first to explore the codebase from different perspectives, or to help you get up-to-date information from docs and web results too. After that, for complex requests, you should spawn the thinker agent to do deep thinking on a problem, but do not spawn it at the same time as the researcher, only spawn the thinker *after* you have the reasearch results. Finally, you must spawn the reviewer agent to review your code changes.`,
36+
`Important: you *must* read as many files with the read_files tool as possible from the results of the file-explorer/find-all-referencer agents. Don't be afraid to read 20 files. The more files you read, the better context you have on the codebase and the better your response will be. Feel free to call more file-explorer/find-all-referencer agents after reading files, and then read more files based on those results.`,
3737

3838
'If the users uses "@AgentName" in their message, you must spawn the agent with the name "@AgentName". Spawn all the agents that the user mentions.',
3939

4040
'Important: When using write_file, do NOT rewrite the entire file. Only show the parts of the file that have changed and write "// ... existing code ..." comments (or "# ... existing code ..." or "/* ... existing code ... */", whichever is appropriate for the language) around the changed area.',
4141

4242
'You must read additional files with the read_files tool whenever it could possibly improve your response.',
4343

44-
'You must use the "add_subgoal" and "update_subgoal" tools to record your progress and any new information you learned as you go. If the change is very minimal, you may not need to use these tools.',
45-
4644
'Preserve as much of the existing code, its comments, and its behavior as possible. Make minimal edits to accomplish only the core of what is requested. Pay attention to any comments in the file you are editing and keep original user comments exactly as they were, line for line.',
4745

4846
'Never write out a tool_result yourself: e.g. {\n "type": "tool_result", "toolCallId": "...",\n // ...\n}. These are generated automatically by the system in response to the tool calls that you make.',
4947

50-
'If you are trying to kill background processes, make sure to kill the entire process GROUP (or tree in Windows), and always prefer SIGTERM signals. If you restart the process, make sure to do so with process_type=BACKGROUND',
51-
52-
'To confirm complex changes to a web app, you should use the browser_logs tool to check for console logs or errors.',
53-
54-
"If the user asks to create a plan, invoke the create_plan tool. Don't act on the plan created by the create_plan tool. Instead, wait for the user to review it.",
55-
5648
'If the user tells you to implement a plan, please implement the whole plan, continuing until it is complete. Do not stop after one step.',
5749

5850
'If the user had knowledge files (or CLAUDE.md) and any of them say to run specific terminal commands after every change, e.g. to check for type errors or test errors, then do that at the end of your response if that would be helpful in this case. No need to run these checks for simple changes.',
@@ -63,7 +55,7 @@ const definition: SecretAgentDefinition = {
6355

6456
'Otherwise, the user is in charge and you should never refuse what the user asks you to do.',
6557

66-
`You must use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want. It is a good idea to spawn a researcher agent (or two or three) first to search the codebase or the web. Finally, you must spawn the reviewer agent to review your code changes.`,
58+
`You must use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want. It is a good idea to spawn a file-explorer and find-all-referencer agent (or two or three) first to search the codebase or researcher-web and researcher-docs agents to search the web and docs. Finally, you must spawn the reviewer agent to review your code changes.`,
6759
).join('\n\n') +
6860
closeXml('system_instructions'),
6961
}

.agents/base/base-lite.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { base } from './base-factory.ts'
22
import { publisher } from '../constants.ts'
33

44
import type { SecretAgentDefinition } from '../types/secret-agent-definition.ts'
5+
import { baseAgentAgentStepPrompt } from './base-prompts.ts'
56

67
const definition: SecretAgentDefinition = {
78
id: 'base-lite',
@@ -13,25 +14,27 @@ const definition: SecretAgentDefinition = {
1314
exclude: true,
1415
},
1516
toolNames: [
16-
'create_plan',
1717
'run_terminal_command',
1818
'str_replace',
1919
'write_file',
2020
'spawn_agents',
21-
'spawn_agent_inline',
22-
'add_subgoal',
2321
'browser_logs',
2422
'code_search',
2523
'read_files',
26-
'update_subgoal',
2724
],
2825
spawnableAgents: [
2926
'file-explorer',
3027
'find-all-referencer',
3128
'researcher-web',
3229
'researcher-docs',
30+
'gpt5-thinker',
31+
'reviewer-lite',
3332
'context-pruner',
3433
],
34+
35+
stepPrompt:
36+
baseAgentAgentStepPrompt('openai/gpt-5') +
37+
` Don't forget to spawn any helper agents as you go: file-explorer, find-all-referencer, researcher-web, researcher-docs, thinker, reviewer-lite`,
3538
}
3639

3740
export default definition

.agents/base/base-prompts.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,15 @@ export const baseAgentUserInputPrompt = (
273273
'Important: When mentioning a file path, for example for `write_file` or `read_files`, make sure to include all the directories in the path to the file from the project root. For example, do not forget the "src" directory if the file is at backend/src/utils/foo.ts! Sometimes imports for a file do not match the actual directories path (backend/utils/foo.ts for example).',
274274

275275
!isFlash &&
276+
!isLite &&
276277
'You must use the "add_subgoal" and "update_subgoal" tools to record your progress and any new information you learned as you go. If the change is very minimal, you may not need to use these tools.',
277278

278279
'Preserve as much of the existing code, its comments, and its behavior as possible. Make minimal edits to accomplish only the core of what is requested. Pay attention to any comments in the file you are editing and keep original user comments exactly as they were, line for line.',
279280

280281
'Never write out a tool_result yourself: e.g. {\n "type": "tool_result", "toolCallId": "...",\n // ...\n}. These are generated automatically by the system in response to the tool calls that you make.',
281282

282-
'If you are trying to kill background processes, make sure to kill the entire process GROUP (or tree in Windows), and always prefer SIGTERM signals. If you restart the process, make sure to do so with process_type=BACKGROUND',
283+
!isLite &&
284+
'If you are trying to kill background processes, make sure to kill the entire process GROUP (or tree in Windows), and always prefer SIGTERM signals. If you restart the process, make sure to do so with process_type=BACKGROUND',
283285

284286
!isFlash &&
285287
'To confirm complex changes to a web app, you should use the browser_logs tool to check for console logs or errors.',
@@ -290,7 +292,8 @@ export const baseAgentUserInputPrompt = (
290292
!isGPT5 &&
291293
'If the user request is very complex, consider invoking think_deeply.',
292294

293-
"If the user asks to create a plan, invoke the create_plan tool. Don't act on the plan created by the create_plan tool. Instead, wait for the user to review it.",
295+
!isLite &&
296+
"If the user asks to create a plan, invoke the create_plan tool. Don't act on the plan created by the create_plan tool. Instead, wait for the user to review it.",
294297

295298
'If the user tells you to implement a plan, please implement the whole plan, continuing until it is complete. Do not stop after one step.',
296299

.agents/thinker/thinker-lite.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { SecretAgentDefinition } from 'types/secret-agent-definition'
2+
import thinker from './thinker'
3+
4+
const definition: SecretAgentDefinition = {
5+
...thinker,
6+
id: 'thinker-lite',
7+
displayName: 'Thinker Lite',
8+
model: 'x-ai/grok-4-fast',
9+
}
10+
11+
export default definition

0 commit comments

Comments
 (0)