From 1f42454fbface09e36ef4e875ca75b515cd431a4 Mon Sep 17 00:00:00 2001 From: Kaustubh Nawade Date: Sat, 17 Jan 2026 13:02:13 -0800 Subject: [PATCH] Change default agent to coordinator and improve /agent command - Update default agent from one_shot to coordinator for new users - Enhance /agent command to show current agent when called without arguments --- tycode-core/src/chat/commands.rs | 11 +++++++---- tycode-core/src/settings/config.rs | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/tycode-core/src/chat/commands.rs b/tycode-core/src/chat/commands.rs index 3d51770..2a021df 100644 --- a/tycode-core/src/chat/commands.rs +++ b/tycode-core/src/chat/commands.rs @@ -302,8 +302,8 @@ pub fn get_available_commands() -> Vec { }, CommandInfo { name: "agent".to_string(), - description: "Switch the current agent".to_string(), - usage: "/agent ".to_string(), + description: "Show or switch the current agent".to_string(), + usage: "/agent [name]".to_string(), hidden: false, }, CommandInfo { @@ -786,10 +786,13 @@ fn create_message(content: String, sender: MessageSender) -> ChatMessage { async fn handle_agent_command(state: &mut ActorState, parts: &[&str]) -> Vec { if parts.len() < 2 { + let current = current_agent(state).agent.name(); + let available = state.agent_catalog.get_agent_names().join(", "); return vec![create_message( format!( - "Usage: /agent . Valid agents: {}", - state.agent_catalog.get_agent_names().join(", ") + "Current agent: {}\nAvailable agents: {}\n\nUsage: /agent ", + current, + available ), MessageSender::System, )]; diff --git a/tycode-core/src/settings/config.rs b/tycode-core/src/settings/config.rs index c543ef8..23e73b1 100644 --- a/tycode-core/src/settings/config.rs +++ b/tycode-core/src/settings/config.rs @@ -314,7 +314,7 @@ fn default_claude_command() -> String { } fn default_agent_name() -> String { - "one_shot".to_string() + "coordinator".to_string() } fn default_auto_context_bytes() -> usize {