From 3fb5563b52f8cd9528bcf175c88a5295c2a597d0 Mon Sep 17 00:00:00 2001 From: Droid Date: Wed, 21 Jan 2026 15:07:54 +0400 Subject: [PATCH] fix: make agent install detection more specific Previously, the installer checked for any occurrence of 'vgrep' in CLAUDE.md or AGENTS.md, which caused false positives if the file contained casual mentions of vgrep. This change makes the check more specific by looking for 'name: vgrep', which is part of the actual skill definition block. --- src/cli/install.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/install.rs b/src/cli/install.rs index ba03e5b..f3a8084 100644 --- a/src/cli/install.rs +++ b/src/cli/install.rs @@ -58,7 +58,7 @@ pub fn install_claude_code() -> Result<()> { String::new() }; - if !content.contains("vgrep") { + if !content.contains("name: vgrep") { content.push_str("\n\n"); content.push_str(VGREP_SKILL.trim()); fs::write(&instructions_path, content)?; @@ -225,7 +225,7 @@ pub fn install_codex() -> Result<()> { String::new() }; - if !content.contains("vgrep") { + if !content.contains("name: vgrep") { content.push_str("\n\n"); content.push_str(VGREP_SKILL.trim()); fs::write(&agents_path, content)?;