From cc62125244e383a748cd2b5d052e7e1c1e98a67e Mon Sep 17 00:00:00 2001 From: Umesh Yadav <23421535+imumesh18@users.noreply.github.com> Date: Wed, 25 Jun 2025 22:44:49 +0530 Subject: [PATCH] agent: Add GEMINI.md as a supported rules file name (#33381) Gemini cli creates GEMINI.md file. This PR adds support for it. Release Notes: - agent: Add GEMINI.md as a supported rules file name --- crates/agent/src/thread_store.rs | 3 ++- docs/src/ai/rules.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/agent/src/thread_store.rs b/crates/agent/src/thread_store.rs index 3c9150ff75..516151e9ff 100644 --- a/crates/agent/src/thread_store.rs +++ b/crates/agent/src/thread_store.rs @@ -71,7 +71,7 @@ impl Column for DataType { } } -const RULES_FILE_NAMES: [&'static str; 8] = [ +const RULES_FILE_NAMES: [&'static str; 9] = [ ".rules", ".cursorrules", ".windsurfrules", @@ -80,6 +80,7 @@ const RULES_FILE_NAMES: [&'static str; 8] = [ "CLAUDE.md", "AGENT.md", "AGENTS.md", + "GEMINI.md", ]; pub fn init(cx: &mut App) { diff --git a/docs/src/ai/rules.md b/docs/src/ai/rules.md index 81b8480bd9..ed916874ca 100644 --- a/docs/src/ai/rules.md +++ b/docs/src/ai/rules.md @@ -16,6 +16,7 @@ Other names for this file are also supported for compatibility with other agents - `AGENT.md` - `AGENTS.md` - `CLAUDE.md` +- `GEMINI.md` ## Rules Library {#rules-library}