Skip to content

Commit 780e00d

Browse files
committed
Double the default max agent steps
1 parent 6bec422 commit 780e00d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

codebuff.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@
6565
"command": "bun run generate-tool-definitions",
6666
"filePattern": "common/src/tools/{params/tool/*.ts,list.ts}"
6767
}
68-
],
69-
"maxAgentSteps": 20
68+
]
7069
}

common/src/constants/agents.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

common/src/types/session-state.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ProjectFileContextSchema } from '../util/file'
55

66
import type { CodebuffMessage } from './message'
77
import type { ProjectFileContext } from '../util/file'
8+
import { MAX_AGENT_STEPS_DEFAULT } from '../constants/agents'
89

910
export 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,

0 commit comments

Comments
 (0)