File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6565 "command" : " bun run generate-tool-definitions" ,
6666 "filePattern" : " common/src/tools/{params/tool/*.ts,list.ts}"
6767 }
68- ],
69- "maxAgentSteps" : 20
68+ ]
7069}
Original file line number Diff line number Diff line change @@ -118,3 +118,5 @@ export const AGENT_NAME_TO_TYPES = Object.entries(AGENT_NAMES).reduce(
118118 } ,
119119 { } as Record < string , string [ ] > ,
120120)
121+
122+ export const MAX_AGENT_STEPS_DEFAULT = 25
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { ProjectFileContextSchema } from '../util/file'
55
66import type { CodebuffMessage } from './message'
77import type { ProjectFileContext } from '../util/file'
8+ import { MAX_AGENT_STEPS_DEFAULT } from '../constants/agents'
89
910export const toolCallSchema = z . object ( {
1011 toolName : z . string ( ) ,
@@ -107,7 +108,7 @@ export function getInitialSessionState(
107108 agentContext : { } ,
108109 subagents : [ ] ,
109110 messageHistory : [ ] ,
110- stepsRemaining : 12 ,
111+ stepsRemaining : MAX_AGENT_STEPS_DEFAULT ,
111112 output : undefined ,
112113 } ,
113114 fileContext,
You can’t perform that action at this time.
0 commit comments