| name | agent-definition-fix |
| description | Use when the Gemini CLI reports errors loading agent definitions in ~/.gemini/agents/, such as unsupported 'color' keys or incorrect 'tools' formats. Provides a script to automatically fix these frontmatter issues. |
Agent Definition Fix
Issue Description
The Gemini CLI reported errors when loading several agent definition files in ~/.gemini/agents/.
The errors are:
Unrecognized key(s) in object: 'color': The color property in the frontmatter is not supported.
tools: Expected array, received string: The tools property is defined as a comma-separated string but must be a list.
Objective
Fix the agent definition files by removing the unsupported color property and converting the tools property to a list format where necessary.
Scope
All .md files in ~/.gemini/agents/.
Fix Procedure
- Run the provided Python script
fix_agent_definitions.py.
python3 fix_agent_definitions.py
- The script will iterate through all
.md files in ~/.gemini/agents/ and modify the frontmatter.
- Verify the changes by checking the files.