Skip to content

Commit 7a4151e

Browse files
committed
Lite mode!
1 parent 14ebd09 commit 7a4151e

File tree

7 files changed

+12
-3
lines changed

7 files changed

+12
-3
lines changed

.agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ ${buildArray(
292292
(isDefault || isMax) &&
293293
`- For any task requiring 3+ steps, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${isFast ? '' : ' You should include a step to review the changes after you have implemented the changes.'}:${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} You may be able to do reviewing and validation in parallel in the same step. Skip write_todos for simple tasks like quick edits or answering questions.`,
294294
isLite &&
295-
'- IMPORTANT: You must spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all changes.',
295+
'- IMPORTANT: You must spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
296296
isDefault &&
297297
'- IMPORTANT: You must spawn the editor agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all non-trivial changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
298298
isMax &&

cli/src/components/agent-mode-toggle.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type { AgentMode } from '../utils/constants'
1010

1111
const MODE_LABELS: Record<AgentMode, string> = {
1212
DEFAULT: 'DEFAULT',
13+
LITE: 'LITE',
1314
MAX: 'MAX',
1415
PLAN: 'PLAN',
1516
}

cli/src/data/slash-commands.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ export const SLASH_COMMANDS: SlashCommand[] = [
8484
label: 'mode:default',
8585
description: 'Switch to DEFAULT mode',
8686
},
87+
{
88+
id: 'mode:lite',
89+
label: 'mode:lite',
90+
description: 'Switch to LITE mode',
91+
},
8792
{
8893
id: 'mode:max',
8994
label: 'mode:max',

cli/src/hooks/use-send-message.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const resolveAgent = (
7979
const fallbackAgent = match(agentMode)
8080
.with('MAX', () => 'base2-max')
8181
.with('DEFAULT', () => 'base2')
82+
.with('LITE', () => 'base2-lite')
8283
.with('PLAN', () => 'base2-plan')
8384
.exhaustive()
8485

cli/src/state/chat-store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ export const useChatStore = create<ChatStore>()(
252252
toggleAgentMode: () =>
253253
set((state) => {
254254
if (state.agentMode === 'DEFAULT') {
255+
state.agentMode = 'LITE'
256+
} else if (state.agentMode === 'LITE') {
255257
state.agentMode = 'MAX'
256258
} else if (state.agentMode === 'MAX') {
257259
state.agentMode = 'PLAN'

cli/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ export const shouldRenderAsSimpleText = (agentType: string): boolean => {
4646
*/
4747
export const MAIN_AGENT_ID = 'main-agent'
4848

49-
const agentModes = ['DEFAULT', 'MAX', 'PLAN'] as const
49+
const agentModes = ['DEFAULT', 'LITE', 'MAX', 'PLAN'] as const
5050
export type AgentMode = (typeof agentModes)[number]

cli/src/utils/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface Settings {
1414
// Add new settings here over time
1515
}
1616

17-
const VALID_MODES: AgentMode[] = ['DEFAULT', 'MAX', 'PLAN']
17+
const VALID_MODES: AgentMode[] = ['DEFAULT', 'LITE', 'MAX', 'PLAN']
1818

1919
/**
2020
* Get the settings file path

0 commit comments

Comments
 (0)