From d978032044a2b16d502b3a0ba8169d0cdc052a4f Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Thu, 5 Feb 2026 21:38:47 +1100 Subject: [PATCH] Remove redundant AGENTS.md heading from startup output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The loaded status line (✓ AGENTS.md ✓ Memory) already indicates that AGENTS.md was loaded, so the separate '>> AGENTS.md - Machine Instructions' heading line was redundant. - Remove print_project_heading() function from display.rs - Remove extract_project_heading call from interactive.rs - Clean up unused imports --- crates/g3-cli/src/display.rs | 11 ----------- crates/g3-cli/src/interactive.rs | 8 +------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/crates/g3-cli/src/display.rs b/crates/g3-cli/src/display.rs index 1e3853c..cde8c03 100644 --- a/crates/g3-cli/src/display.rs +++ b/crates/g3-cli/src/display.rs @@ -190,17 +190,6 @@ pub fn print_loaded_status(loaded: &LoadedContent) { println!(); } -/// Print the project name/heading from README content. -pub fn print_project_heading(heading: &str) { - print!( - "{}>> {}{}", - SetForegroundColor(Color::DarkGrey), - heading, - ResetColor - ); - println!(); -} - #[cfg(test)] mod tests { use super::*; diff --git a/crates/g3-cli/src/interactive.rs b/crates/g3-cli/src/interactive.rs index 4ac01a6..3fa904a 100644 --- a/crates/g3-cli/src/interactive.rs +++ b/crates/g3-cli/src/interactive.rs @@ -13,10 +13,9 @@ use g3_core::Agent; use g3_core::ToolCall; use crate::commands::{handle_command, CommandResult}; -use crate::display::{LoadedContent, print_loaded_status, print_project_heading, print_workspace_path}; +use crate::display::{LoadedContent, print_loaded_status, print_workspace_path}; use crate::g3_status::G3Status; use crate::project::Project; -use crate::project_files::extract_project_heading; use crate::simple_output::SimpleOutput; use crate::input_formatter::reprint_formatted_input; use crate::template::process_template; @@ -199,11 +198,6 @@ pub async fn run_interactive( if let Some(ref content) = combined_content { let loaded = LoadedContent::from_combined_content(content); - // Extract project name from AGENTS.md or memory - if let Some(name) = extract_project_heading(content) { - print_project_heading(&name); - } - print_loaded_status(&loaded); }