@@ -7,7 +7,7 @@ import { type CostMode } from '@codebuff/common/constants'
77import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
88import { Command , Option } from 'commander'
99import { red } from 'picocolors'
10- import { CodebuffClient } from '@codebuff/sdk'
10+ import { CodebuffClient , type AgentConfig } from '@codebuff/sdk'
1111
1212import { displayLoadedAgents , loadLocalAgents } from './agents/load-agents'
1313import { CLI } from './cli'
@@ -79,12 +79,26 @@ async function codebuff({
7979 console . log ( 'client created' )
8080 console . log ( 'starting run' )
8181
82+ const agentConfig : AgentConfig = {
83+ id : 'my-awesome-agent' ,
84+ displayName : 'My awesome agent' ,
85+ model : 'openai/gpt-5' ,
86+ instructionsPrompt : 'Do something awesome' ,
87+ }
8288 const run = await client . run ( {
8389 agent : agent ?? 'base' ,
8490 prompt : initialInput ?? 'hi' ,
8591 handleEvent : ( event ) => {
8692 console . log ( 'event:' , event )
8793 } ,
94+ agentConfigs : [
95+ {
96+ id : 'my-awesome-agent' ,
97+ displayName : 'My awesome agent' ,
98+ model : 'openai/gpt-5' ,
99+ instructionsPrompt : 'Do something awesome' ,
100+ } ,
101+ ] ,
88102 } )
89103
90104 console . log ( 'run1 complete' )
0 commit comments