Skip to content

Commit 25c26f3

Browse files
committed
update agent name to kiro-default
1 parent 8dd7edf commit 25c26f3

File tree

10 files changed

+15
-20
lines changed

10 files changed

+15
-20
lines changed

crates/agent/src/agent/consts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/// Name of the default agent.
2-
pub const DEFAULT_AGENT_NAME: &str = "q_cli_default";
1+
pub const DEFAULT_AGENT_NAME: &str = "kiro_default";
32

43
pub const MAX_CONVERSATION_STATE_HISTORY_LEN: usize = 500;
54

crates/chat-cli/src/cli/agent/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ use crate::cli::agent::hook::{
6060
Hook,
6161
HookTrigger,
6262
};
63+
use crate::constants::DEFAULT_AGENT_NAME;
6364
use crate::database::settings::Setting;
6465
use crate::os::Os;
6566
use crate::theme::StyledText;
@@ -71,8 +72,6 @@ use crate::util::{
7172
paths,
7273
};
7374

74-
pub const DEFAULT_AGENT_NAME: &str = "default";
75-
7675
#[derive(Debug, Error)]
7776
pub enum AgentConfigError {
7877
#[error("Json supplied at {} is invalid: {}", path.display(), error)]

crates/chat-cli/src/cli/chat/cli/tools.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ use crossterm::{
1515
};
1616

1717
use crate::api_client::model::Tool as FigTool;
18-
use crate::cli::agent::{
19-
Agent,
20-
DEFAULT_AGENT_NAME,
21-
};
18+
use crate::cli::agent::Agent;
2219
use crate::cli::chat::consts::{
2320
AGENT_FORMAT_TOOLS_DOC_URL,
2421
DUMMY_TOOL_NAME,
@@ -30,6 +27,7 @@ use crate::cli::chat::{
3027
ChatState,
3128
trust_all_text,
3229
};
30+
use crate::constants::DEFAULT_AGENT_NAME;
3331
use crate::constants::help_text::tools_long_help;
3432
use crate::theme::StyledText;
3533
use crate::util::consts::MCP_SERVER_TOOL_DELIMITER;

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ use winnow::stream::Offset;
162162

163163
use super::agent::{
164164
Agent,
165-
DEFAULT_AGENT_NAME,
166165
PermissionEvalResult,
167166
};
168167
use crate::api_client::model::ToolResultStatus;
@@ -191,6 +190,7 @@ use crate::cli::experiment::experiment_manager::{
191190
ExperimentName,
192191
};
193192
use crate::constants::{
193+
DEFAULT_AGENT_NAME,
194194
error_messages,
195195
tips,
196196
};

crates/chat-cli/src/cli/chat/prompt_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::cli::agent::DEFAULT_AGENT_NAME;
1+
use crate::constants::DEFAULT_AGENT_NAME;
22

33
/// Components extracted from a prompt string
44
#[derive(Debug, PartialEq)]

crates/chat-cli/src/cli/chat/tools/delegate.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use strum::{
2323
EnumString,
2424
};
2525

26+
use crate::cli::Agent;
2627
use crate::cli::agent::Agents;
2728
use crate::cli::chat::tools::{
2829
InvokeOutput,
@@ -32,10 +33,7 @@ use crate::cli::experiment::experiment_manager::{
3233
ExperimentManager,
3334
ExperimentName,
3435
};
35-
use crate::cli::{
36-
Agent,
37-
DEFAULT_AGENT_NAME,
38-
};
36+
use crate::constants::DEFAULT_AGENT_NAME;
3937
use crate::os::Os;
4038
use crate::theme::StyledText;
4139
use crate::util::env_var::get_all_env_vars;

crates/chat-cli/src/cli/mcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use eyre::{
2323
use super::agent::{
2424
Agent,
2525
Agents,
26-
DEFAULT_AGENT_NAME,
2726
McpServerConfig,
2827
};
2928
use crate::cli::chat::tool_manager::{
@@ -34,6 +33,7 @@ use crate::cli::chat::tools::custom_tool::{
3433
CustomToolConfig,
3534
default_timeout,
3635
};
36+
use crate::constants::DEFAULT_AGENT_NAME;
3737
use crate::os::Os;
3838
use crate::util::paths::PathResolver;
3939

crates/chat-cli/src/cli/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ use std::io::{
2121
};
2222
use std::process::ExitCode;
2323

24+
pub use agent::Agent;
2425
use agent::AgentArgs;
25-
pub use agent::{
26-
Agent,
27-
DEFAULT_AGENT_NAME,
28-
};
2926
use anstream::println;
3027
pub use chat::ConversationState;
3128
pub use chat::tools::todo::TodoListState;
@@ -54,6 +51,7 @@ use crate::cli::user::{
5451
WhoamiArgs,
5552
is_logged_in,
5653
};
54+
pub use crate::constants::DEFAULT_AGENT_NAME;
5755
use crate::logging::{
5856
LogArgs,
5957
initialize_logging,

crates/chat-cli/src/constants.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ pub const CLIENT_NAME: &str = "Kiro Developer for command line";
1414
/// GitHub issues URL for bug reports and feature requests
1515
pub const GITHUB_ISSUES_URL: &str = "https://github.com/kirodotdev/Kiro/issues/new";
1616

17+
/// Default agent name
18+
pub const DEFAULT_AGENT_NAME: &str = "kiro_default";
19+
1720
/// Error message templates
1821
pub mod error_messages {
1922
/// Standard error message for when the service is having trouble responding

crates/chat-cli/src/util/knowledge_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use semantic_search_client::types::{
1515
use tokio::sync::Mutex;
1616
use uuid::Uuid;
1717

18-
use crate::cli::DEFAULT_AGENT_NAME;
18+
use crate::constants::DEFAULT_AGENT_NAME;
1919
use crate::os::Os;
2020
use crate::util::paths;
2121
use crate::util::paths::PathResolver;

0 commit comments

Comments
 (0)