Using Commands in Chat
Quickly access any configured command in chat:
- automate common repetitive tasks, with minimal prompting
- help your team to enforce standards around a task (ie. generating an RFC, changelog update, etc.)
- be extensible (set the
model
,mode
)
Cookbooks
Ready-to-use command setups with completefirebender.json
configurations:
- Quick Question - Rapid answers and explanations
- Review Pull Request - Structured code review with consistent feedback
- Update Changelog - Consistent changelog entries based on recent changes
- Create Design Document - Generate technical design documents for features and systems
Configuration
Commands are configured in yourfirebender.json
file using the commands
array:
~/firebender-commands/pr-description.md
:
- name: The display name that appears in the UI
- path: Path to the markdown file containing the command instructions
- model (optional): Preferred model to use for this command
- mode (optional): Preferred mode to use for this command
Model Property
Themodel
property allows you to specify which AI model should be used when executing a specific command. This is useful for optimizing performance based on the task:
Predefined Values:
"default"
- Uses the system’s default model selection"quick"
- Uses the fastest available model for quick tasks
"claude-4 sonnet"
"gpt-5"
"gpt-4 128k"
"gpt-3.5 turbo"
"quick"
(see above)
Mode Property
Themode
property allows you to specify which interaction mode should be used when executing a specific command:
"auto"
- Let Firebender automatically determine the best mode based on context (default)"read"
- Read-only mode for analysis, reviews, and explanations"write"
- Agent mode for making code changes and running terminal commands"composer"
- UI composition mode for creating interfaces
If the
model
or mode
properties are omitted, the command will use whatever model and mode the user has currently selected in the chat interface.Command Files
Command files are markdown documents that contain prompts or instructions for the AI. They can include:- Natural language instructions
- Code examples or templates
- Specific formatting requirements
- Context about the codebase or project
Path Resolution
Command file paths are resolved based on the configuration location:- Project configuration: Relative paths resolve from the project root
- Personal configuration: Relative paths resolve from
~/.firebender/
- Absolute paths:
/full/path/to/command.md
- Home directory expansion:
~/commands/my-command.md