@@ -218,13 +218,6 @@ pub enum CliRootCommands {
218
218
/// Inline shell completions
219
219
#[ command( subcommand) ]
220
220
Inline ( inline:: InlineSubcommand ) ,
221
- /// Agent root commands
222
- #[ command( disable_help_flag = true ) ]
223
- Agent {
224
- /// Args for Agent subcommand
225
- #[ arg( trailing_var_arg = true , allow_hyphen_values = true ) ]
226
- args : Vec < String > ,
227
- } ,
228
221
}
229
222
230
223
impl CliRootCommands {
@@ -259,7 +252,6 @@ impl CliRootCommands {
259
252
CliRootCommands :: Chat { .. } => "chat" ,
260
253
CliRootCommands :: Mcp { .. } => "mcp" ,
261
254
CliRootCommands :: Inline ( _) => "inline" ,
262
- CliRootCommands :: Agent { .. } => "agent" ,
263
255
}
264
256
}
265
257
}
@@ -383,13 +375,6 @@ impl Cli {
383
375
Self :: execute_chat ( "mcp" , Some ( args) , true ) . await
384
376
} ,
385
377
CliRootCommands :: Inline ( subcommand) => subcommand. execute ( & cli_context) . await ,
386
- CliRootCommands :: Agent { args } => {
387
- if args. iter ( ) . any ( |arg| [ "--help" , "-h" ] . contains ( & arg. as_str ( ) ) ) {
388
- return Self :: execute_chat ( "agent" , Some ( args) , false ) . await ;
389
- }
390
-
391
- Self :: execute_chat ( "agent" , Some ( args) , true ) . await
392
- } ,
393
378
} ,
394
379
// Root command
395
380
None => Self :: execute_chat ( "chat" , None , true ) . await ,
0 commit comments