Skip to content

Commit fbe2ee2

Browse files
committed
Make lite mode lite: less thinking, no reviewer / thinker
1 parent fb6959f commit fbe2ee2

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

.agents/base-lite.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import type { SecretAgentDefinition } from './types/secret-agent-definition'
66
const definition: SecretAgentDefinition = {
77
id: 'base-lite',
88
publisher,
9-
...base('openai/gpt-5'),
10-
reasoningOptions: {
11-
enabled: true,
12-
exclude: false,
13-
effort: 'high',
14-
},
9+
...base('openai/gpt-5-chat', 'lite'),
10+
spawnableAgents: [
11+
'file-explorer',
12+
'file-picker',
13+
'web-researcher',
14+
'docs-researcher',
15+
'context-pruner',
16+
],
1517
}
1618

1719
export default definition

.agents/base-max.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { SecretAgentDefinition } from './types/secret-agent-definition'
66
const definition: SecretAgentDefinition = {
77
id: 'base-max',
88
publisher,
9-
...base('anthropic/claude-opus-4.1'),
9+
...base('anthropic/claude-opus-4.1', 'max'),
1010
}
1111

1212
export default definition

.agents/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { SecretAgentDefinition } from './types/secret-agent-definition'
66
const definition: SecretAgentDefinition = {
77
id: 'base',
88
publisher,
9-
...base('anthropic/claude-4-sonnet-20250522'),
9+
...base('anthropic/claude-4-sonnet-20250522', 'normal'),
1010
}
1111

1212
export default definition

.agents/factory/base.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import { AgentTemplateTypes } from '../types/secret-agent-definition'
1010
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
1111
import type { ModelName } from 'types/agent-definition'
1212

13-
export const base = (model: ModelName): Omit<SecretAgentDefinition, 'id'> => ({
13+
export const base = (
14+
model: ModelName,
15+
mode: 'lite' | 'normal' | 'max' | 'experimental',
16+
): Omit<SecretAgentDefinition, 'id'> => ({
1417
model,
1518
displayName: AGENT_PERSONAS.base.displayName,
1619
spawnerPrompt: AGENT_PERSONAS.base.purpose,
@@ -56,7 +59,7 @@ export const base = (model: ModelName): Omit<SecretAgentDefinition, 'id'> => ({
5659
],
5760

5861
systemPrompt: baseAgentSystemPrompt(model),
59-
instructionsPrompt: baseAgentUserInputPrompt(model),
62+
instructionsPrompt: baseAgentUserInputPrompt(model, mode),
6063
stepPrompt: baseAgentAgentStepPrompt(model),
6164

6265
handleSteps: function* ({ params }) {

.agents/prompts/base-prompts.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,24 +217,28 @@ ${PLACEHOLDER.SYSTEM_INFO_PROMPT}
217217
${PLACEHOLDER.GIT_CHANGES_PROMPT}`
218218
}
219219

220-
export const baseAgentUserInputPrompt = (model: Model) => {
220+
export const baseAgentUserInputPrompt = (
221+
model: Model,
222+
mode: 'lite' | 'normal' | 'max' | 'experimental',
223+
) => {
221224
const isFlash =
222225
model === models.gemini2_5_flash ||
223226
model === models.gemini2_5_flash_thinking
224227
const isGeminiPro = model === models.gemini2_5_pro_preview
225228
const isGPT5 = model === models.openrouter_gpt5
229+
const isLite = mode === 'lite'
226230

227231
return (
228232
PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS +
229233
'\n\n<system_instructions>' +
230234
buildArray(
231-
'Proceed toward the user request and any subgoals. Please either 1. clarify the request or 2. complete the entire user request. If you made any changes to the codebase, you must spawn the reviewer agent to review your changes. Then, finally you must use the end_turn tool at the end of your response. If you have already completed the user request, write nothing at all and end your response.',
235+
`Proceed toward the user request and any subgoals. Please either 1. clarify the request or 2. complete the entire user request. ${isLite ? '' : 'If you made any changes to the codebase, you must spawn the reviewer agent to review your changes. '}Then, finally you must use the end_turn tool at the end of your response. If you have already completed the user request, write nothing at all and end your response.`,
232236

233237
"If there are multiple ways the user's request could be interpreted that would lead to very different outcomes, ask at least one clarifying question that will help you understand what they are really asking for, and then use the end_turn tool.",
234238

235239
'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.',
236240

237-
'It is a good idea to spawn a file explorer agent first to explore the codebase from different perspectives. Use the researcher agent 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 file picker, only spawn it *after* you have the file picker results. Finally, you must spawn the reviewer agent to review your code changes.',
241+
`It is a good idea to spawn a file explorer agent first to explore the codebase from different perspectives. Use the researcher agent 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 file picker, only spawn it *after* you have the file picker results. ${isLite ? '' : 'Finally, you must spawn the reviewer agent to review your code changes.'}`,
238242
"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 20 files. The more files you read, the better context you have on the codebase and the better your response will be.",
239243

240244
'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.',
@@ -284,8 +288,8 @@ export const baseAgentUserInputPrompt = (model: Model) => {
284288

285289
'Important: When editing an existing file with the write_file tool, do not rewrite the entire file, write just the parts of the file that have changed. Do not start writing the first line of the file. Instead, use comments surrounding your edits like "// ... existing code ..." (or "# ... existing code ..." or "/* ... existing code ... */" or "<!-- ... existing code ... -->", whichever is appropriate for the language) plus a few lines of context from the original file, to show just the sections that have changed.',
286290

287-
(isFlash || isGeminiPro) &&
288-
'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 agent first to explore the codebase. Finally, you must spawn the reviewer agent to review your code changes.',
291+
(isLite || isFlash || isGeminiPro) &&
292+
`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 agent first to explore the codebase. ${isLite ? '' : 'Finally, you must spawn the reviewer agent to review your code changes.'}`,
289293

290294
'Finally, you must use the end_turn tool at the end of your response when you have completed the user request or want the user to respond to your message.',
291295

0 commit comments

Comments
 (0)