Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tycode-core/src/chat/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ pub fn get_available_commands() -> Vec<CommandInfo> {
},
CommandInfo {
name: "agent".to_string(),
description: "Switch the current agent".to_string(),
usage: "/agent <name>".to_string(),
description: "Show or switch the current agent".to_string(),
usage: "/agent [name]".to_string(),
hidden: false,
},
CommandInfo {
Expand Down Expand Up @@ -786,10 +786,13 @@ fn create_message(content: String, sender: MessageSender) -> ChatMessage {

async fn handle_agent_command(state: &mut ActorState, parts: &[&str]) -> Vec<ChatMessage> {
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 <name>. Valid agents: {}",
state.agent_catalog.get_agent_names().join(", ")
"Current agent: {}\nAvailable agents: {}\n\nUsage: /agent <name>",
current,
available
),
MessageSender::System,
)];
Expand Down
2 changes: 1 addition & 1 deletion tycode-core/src/settings/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down