Skip to content

Compatibility Issue with Gemini CLI: 'Invalid tool name' errors when loading agents #373

@xilu0

Description

@xilu0

When using Gemini CLI (v0.41.2, darwin), the ExtensionManager fails to load the agents in the caveman extension.

Error Log:

[ExtensionManager] Error loading agent from caveman: Failed to load agent from ~/.gemini/extensions/caveman/agents/cavecrew-builder.md: Validation failed: Agent Definition:
tools.0: Invalid tool name
tools.1: Invalid tool name
tools.2: Invalid tool name
tools.3: Invalid tool name
tools.4: Invalid tool name

Observations:
The agents (cavecrew-builder.md, cavecrew-investigator.md, cavecrew-reviewer.md) define their tools using Claude Code's naming conventions (e.g., [Read, Edit, Write, Grep, Glob]).
Gemini CLI's ExtensionManager validates these tool names. Since Gemini CLI uses different tool names (e.g., read_file, replace, write_file, grep_search, glob), it rejects these agents as invalid.

Expected Behavior:
The extension should provide compatible tool names for the Gemini CLI environment or include a mapping layer.

Environment:

  • macOS (darwin)
  • Gemini CLI v0.41.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions