@@ -342,6 +342,14 @@ impl<A: API + 'static, F: Fn() -> A + Send + Sync> UI<A, F> {
342342
343343 async fn handle_subcommands ( & mut self , subcommand : TopLevelCommand ) -> anyhow:: Result < ( ) > {
344344 match subcommand {
345+ TopLevelCommand :: Agent ( agent_group) => {
346+ match agent_group. command {
347+ crate :: cli:: AgentCommand :: List => {
348+ self . on_show_agents ( agent_group. porcelain ) . await ?;
349+ }
350+ }
351+ return Ok ( ( ) ) ;
352+ }
345353 TopLevelCommand :: List ( list_group) => {
346354 let porcelain = list_group. porcelain ;
347355 match list_group. command {
@@ -881,7 +889,7 @@ impl<A: API + 'static, F: Fn() -> A + Send + Sync> UI<A, F> {
881889 Porcelain :: from ( & info)
882890 . skip ( 1 )
883891 . drop_col ( 0 )
884- . map_col ( 4 , |text| match text. as_deref ( ) {
892+ . map_col ( 5 , |text| match text. as_deref ( ) {
885893 Some ( "ENABLED" ) => Some ( "Reasoning" . to_string ( ) ) ,
886894 Some ( "DISABLED" ) => Some ( "Non-Reasoning" . to_string ( ) ) ,
887895 _ => None ,
@@ -1024,6 +1032,7 @@ impl<A: API + 'static, F: Fn() -> A + Send + Sync> UI<A, F> {
10241032 "List all available tools with their descriptions and schema [alias: t]" ,
10251033 ) ,
10261034 ( "skill" , "List all available skills" ) ,
1035+ ( "agent" , "Select and switch between agents [alias: a]" ) ,
10271036 ( "commit" , "Generate AI commit message and commit changes." ) ,
10281037 (
10291038 "suggest" ,
0 commit comments