From d78732df1421b03dddf33970ec11585ca08ac775 Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Thu, 6 Nov 2025 13:41:06 +1100 Subject: [PATCH] colors --- crates/g3-cli/src/lib.rs | 13 ++++++++----- crates/g3-core/src/lib.rs | 2 +- crates/g3-providers/src/anthropic.rs | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/g3-cli/src/lib.rs b/crates/g3-cli/src/lib.rs index 53638f8..08f46e5 100644 --- a/crates/g3-cli/src/lib.rs +++ b/crates/g3-cli/src/lib.rs @@ -449,10 +449,10 @@ async fn run_accumulative_mode( let output = SimpleOutput::new(); output.print(""); - output.print("🪿 G3 AI Coding Agent - Autonomous Mode"); + output.print("g3 AI Coding Agent - Autonomous Mode"); output.print(" >> describe what you want, I'll build it iteratively"); output.print(""); - output.print(&format!("📁 Workspace: {}", workspace_dir.display())); + output.print(&format!("workspace: {}", workspace_dir.display())); output.print(""); output.print("💡 Each input you provide will be added to requirements"); output.print(" and I'll automatically work on implementing them. You can"); @@ -792,7 +792,7 @@ async fn run_with_console_mode( output.print_smart(&result.response); } else { // Interactive mode (default) - println!("📁 Workspace: {}", project.workspace().display()); + println!("workspace: {}", project.workspace().display()); run_interactive(agent, cli.show_prompt, cli.show_code, combined_content).await?; } @@ -974,14 +974,17 @@ async fn run_interactive( let output = SimpleOutput::new(); output.print(""); - output.print("🪿 G3 AI Coding Agent"); + output.print("G3 AI Coding Agent"); output.print(" >> what shall we build today?"); output.print(""); // Display provider and model information match agent.get_provider_info() { Ok((provider, model)) => { - output.print(&format!("🔧 {} | {}", provider, model)); + print!("🔧 {}{}{} | {}{}{}\n", + SetForegroundColor(Color::Cyan), provider, ResetColor, + SetForegroundColor(Color::Yellow), model, ResetColor + ); } Err(e) => { error!("Failed to get provider info: {}", e); diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 3b1ac85..937d704 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -965,7 +965,7 @@ impl Agent { _ => config.agent.max_context_length as u32, }; - info!( + debug!( "Using context length: {} tokens for provider: {} (model: {})", context_length, provider_name, model_name ); diff --git a/crates/g3-providers/src/anthropic.rs b/crates/g3-providers/src/anthropic.rs index 573d59f..313d83f 100644 --- a/crates/g3-providers/src/anthropic.rs +++ b/crates/g3-providers/src/anthropic.rs @@ -139,7 +139,7 @@ impl AnthropicProvider { let model = model.unwrap_or_else(|| "claude-3-5-sonnet-20241022".to_string()); - info!("Initialized Anthropic provider with model: {}", model); + debug!("Initialized Anthropic provider with model: {}", model); Ok(Self { client,