Component
Templates (spec, plan, tasks, etc.)
AI Agent
Gemini CLI
Bug Description
Describe the Bug
After running uvx specifyplus init . and trying to run the tool, I get a crash with the error:
[FileCommandLoader] Failed to parse TOML file .../.gemini/commands/sp.reverse-engineer.toml
The Cause
The file sp.reverse-engineer.toml wraps the prompt variable in triple double-quotes (""").
However, the prompt text itself contains Python code examples that also use """ (specifically inside the intelligence-object.md section). This confuses the TOML parser, causing it to exit the string early and fail on the remaining text.
Suggested Fix
Update the template file to use triple single-quotes (''') for the prompt variable instead of double-quotes.
I verified locally that changing the file to use ''' resolves the crash.
Expected Behavior
The tool should initialize and load all command templates, including "sp.reverse-engineer.toml", without crashing. The "reverse-engineer" command should be available for use.
Actual Behavior
The tool crashes immediately upon loading commands with a "[FileCommandLoader] Failed to parse TOML file" error pointing to the "sp.reverse-engineer.toml" file.
Steps to Reproduce
- Run
uvx specifyplus init . in a new directory.
- Select gemini as an AI.
- Run the
gemini command to start the tool.
- Observe the crash on startup when it attempts to load the command files.
Environment
OS: Linux (Kali)
Tool: specifyplus (via uvx)
Python Version: 3.13.11
Agent version: Gemini cli v0.26.0
Relevant Logs/Output
✕ [FileCommandLoader] Failed to parse TOML file .../Evolution-of-Todo-v3/.gemini/commands/sp.reverse-engineer.toml
Additional Context
Workaround verified: Changing the wrapping quotes of the prompt variable in the TOML file from """ to ''' fixes the issue. The crash happens because the prompt string contains Python code that also uses """ (specifically docstrings inside the intelligence-object.md section), which breaks the TOML string parsing.
Component
Templates (spec, plan, tasks, etc.)
AI Agent
Gemini CLI
Bug Description
Describe the Bug
After running
uvx specifyplus init .and trying to run the tool, I get a crash with the error:[FileCommandLoader] Failed to parse TOML file .../.gemini/commands/sp.reverse-engineer.tomlThe Cause
The file
sp.reverse-engineer.tomlwraps thepromptvariable in triple double-quotes (""").However, the prompt text itself contains Python code examples that also use
"""(specifically inside theintelligence-object.mdsection). This confuses the TOML parser, causing it to exit the string early and fail on the remaining text.Suggested Fix
Update the template file to use triple single-quotes (
''') for thepromptvariable instead of double-quotes.I verified locally that changing the file to use
'''resolves the crash.Expected Behavior
The tool should initialize and load all command templates, including "sp.reverse-engineer.toml", without crashing. The "reverse-engineer" command should be available for use.
Actual Behavior
The tool crashes immediately upon loading commands with a "[FileCommandLoader] Failed to parse TOML file" error pointing to the "sp.reverse-engineer.toml" file.
Steps to Reproduce
uvx specifyplus init .in a new directory.geminicommand to start the tool.Environment
OS: Linux (Kali)
Tool: specifyplus (via uvx)
Python Version: 3.13.11
Agent version: Gemini cli v0.26.0
Relevant Logs/Output
Additional Context
Workaround verified: Changing the wrapping quotes of the
promptvariable in the TOML file from"""to'''fixes the issue. The crash happens because the prompt string contains Python code that also uses"""(specifically docstrings inside the intelligence-object.md section), which breaks the TOML string parsing.