Skip to content

Commit dc1a037

Browse files
committed
Add tool renderer for set_output
1 parent 4114a37 commit dc1a037

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.agents/templates/git-committer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { DynamicAgentConfig } from '@codebuff/common/types/dynamic-agent-templat
33
export default {
44
id: 'CodebuffAI/git-committer',
55
version: '0.0.1',
6-
model: 'google/gemini-2.5-pro',
7-
override: false,
6+
model: 'anthropic/claude-sonnet-4',
87
name: 'Git Committer',
98
purpose:
109
'A git committer agent specialized to commit current changes with an appropriate commit message.',

npm-app/src/utils/tool-renderers.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,17 @@ export const toolRenderers: Record<ToolName, ToolCallRenderer> = {
366366
// Don't render anything
367367
},
368368
set_output: {
369-
// Don't render anything
369+
onToolStart: (toolName) => {
370+
return '\n\n' + gray(`[${bold('Set Output')}]`) + '\n...\n'
371+
},
372+
onParamStart: (paramName) => {
373+
Spinner.get().start('Setting output...')
374+
return null
375+
},
376+
onToolEnd: () => {
377+
return () => {
378+
return '\n'
379+
}
380+
},
370381
},
371382
}

0 commit comments

Comments
 (0)