Skip to content

Commit efc1312

Browse files
committed
fix: correct invalid Gemini CLI tool names in agents and docs
Replace `search_files` with `search_file_content` and `replace_in_file` with `replace` across all agent frontmatter and documentation. These were not valid Gemini CLI built-in tool names and caused agent loading failures at startup (validation error: `tools.N: Invalid tool name`). The terminology tables in docs/ that mapped Claude Code tools to Gemini CLI equivalents were the source of the incorrect names, which had propagated into 18 agent files. Fixes #34
1 parent a2597ba commit efc1312

25 files changed

Lines changed: 31 additions & 31 deletions

agents/architect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: architect
33
description: Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when planning new features, refactoring large systems, or making architectural decisions.
4-
tools: ["read_file", "search_files", "list_directory"]
4+
tools: ["read_file", "search_file_content", "list_directory"]
55
---
66

77
You are a senior software architect specializing in scalable, maintainable system design.

agents/chief-of-staff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: chief-of-staff
33
description: Personal communication chief of staff that triages email, Slack, LINE, and Messenger. Classifies messages into 4 tiers (skip/info_only/meeting_info/action_required), generates draft replies, and enforces post-send follow-through via hooks. Use when managing multi-channel communication workflows.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command", "replace_in_file", "write_file"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command", "replace", "write_file"]
55
---
66

77
You are a personal chief of staff that manages all communication channels — email, Slack, LINE, Messenger, and calendar — through a unified triage pipeline.

agents/code-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: code-reviewer
33
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command"]
55
---
66

77
You are a senior code reviewer ensuring high standards of code quality and security.

agents/cpp-build-resolver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: cpp-build-resolver
33
description: C++ build, CMake, and compilation error resolution specialist. Fixes build errors, linker issues, and template errors with minimal changes. Use when C++ builds fail.
4-
tools: ["read_file", "write_file", "replace_in_file", "run_shell_command", "search_files", "list_directory"]
4+
tools: ["read_file", "write_file", "replace", "run_shell_command", "search_file_content", "list_directory"]
55
---
66

77
# C++ Build Error Resolver

agents/cpp-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: cpp-reviewer
33
description: Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command"]
55
---
66

77
You are a senior C++ code reviewer ensuring high standards of modern C++ and best practices.

agents/docs-lookup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: docs-lookup
33
description: When the user asks how to use a library, framework, or API or needs up-to-date code examples, use Context7 MCP to fetch current documentation and return answers with examples. Invoke for docs/API/setup questions.
4-
tools: ["read_file", "search_files", "mcp__context7__resolve-library-id", "mcp__context7__query-docs"]
4+
tools: ["read_file", "search_file_content", "mcp__context7__resolve-library-id", "mcp__context7__query-docs"]
55
---
66

77
You are a documentation specialist. You answer questions about libraries, frameworks, and APIs using current documentation fetched via the Context7 MCP (resolve-library-id and query-docs), not training data.

agents/flutter-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: flutter-reviewer
33
description: Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command"]
55
---
66

77
You are a senior Flutter and Dart code reviewer ensuring idiomatic, performant, and maintainable code.

agents/harness-optimizer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: harness-optimizer
33
description: Analyze and improve the local agent harness configuration for reliability, cost, and throughput.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command", "replace_in_file"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command", "replace"]
55
color: teal
66
---
77

agents/java-build-resolver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: java-build-resolver
33
description: Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Fixes build errors, Java compiler errors, and Maven/Gradle issues with minimal changes. Use when Java or Spring Boot builds fail.
4-
tools: ["read_file", "write_file", "replace_in_file", "run_shell_command", "search_files", "list_directory"]
4+
tools: ["read_file", "write_file", "replace", "run_shell_command", "search_file_content", "list_directory"]
55
---
66

77
# Java Build Error Resolver

agents/java-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: java-reviewer
33
description: Expert Java and Spring Boot code reviewer specializing in layered architecture, JPA patterns, security, and concurrency. Use for all Java code changes. MUST BE USED for Spring Boot projects.
4-
tools: ["read_file", "search_files", "list_directory", "run_shell_command"]
4+
tools: ["read_file", "search_file_content", "list_directory", "run_shell_command"]
55
---
66
You are a senior Java engineer ensuring high standards of idiomatic Java and Spring Boot best practices.
77
When invoked:

0 commit comments

Comments
 (0)