diff --git a/crates/g3-cli/src/lib.rs b/crates/g3-cli/src/lib.rs index 26d85b8..f920bd2 100644 --- a/crates/g3-cli/src/lib.rs +++ b/crates/g3-cli/src/lib.rs @@ -228,3 +228,5 @@ fn display_context_progress(agent: &Agent) { progress_bar, percentage, context.used_tokens, context.total_tokens ); } + + diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 8635260..363f9ed 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -565,7 +565,7 @@ impl Agent { let provider = self.providers.get(None)?; let system_prompt = if provider.has_native_tool_calling() { // For native tool calling providers, use a more explicit system prompt - "You are G3, a general-purpose AI agent. Your goal is to analyze and solve problems by writing code. + "You are G3, a general-purpose AI agent. Your goal is to analyze and solve problems by writing code. The current directory always contains a project that the user is working on and likely referring to. You have access to tools. When you need to accomplish a task, you MUST use the appropriate tool immediately. Do not just describe what you would do - actually use the tools. diff --git a/crates/g3-providers/src/anthropic.rs b/crates/g3-providers/src/anthropic.rs index 1d3e18d..07362a1 100644 --- a/crates/g3-providers/src/anthropic.rs +++ b/crates/g3-providers/src/anthropic.rs @@ -316,7 +316,7 @@ impl AnthropicProvider { match serde_json::from_str::(data) { Ok(event) => { - debug!("Parsed event: {:?}", event); + debug!("Parsed event type: {}, event: {:?}", event.event_type, event); match event.event_type.as_str() { "content_block_start" => { debug!("Received content_block_start event: {:?}", event);