pub fn add_footer(response_output: &str, replacement_tool: &str) -> String {
format!(
"{}\n\nPrefer `{}` tool over bash.",
response_output, replacement_tool
)
}
pub fn add_grep_footer(response_output: &str, aft_search_registered: bool) -> String {
let hint = if aft_search_registered {
"DO NOT search code by running grep/rg in bash \u{2014} it is unindexed, unranked, and serial. Use the `aft_search` tool instead (it auto-routes concepts, identifiers, regex, and literals)."
} else {
"DO NOT search code by running grep/rg in bash \u{2014} it is unindexed, unranked, and serial. Use the `grep` tool instead (indexed and ranked)."
};
format!("{response_output}\n\n{hint}")
}