Skip to main content
Commands are custom prompts you can trigger with a slash in chat. Define commands using .mdc files in the .firebender/commands/ directory.
Type /help in the chat to get help creating commands

Configuration Locations

Firebender supports two command scopes:
  • Project Commands: .firebender/commands/*.mdc in your project root
  • Personal Commands: ~/.firebender/commands/*.mdc for commands that apply across all projects
Precedence: Project commands take precedence over personal commands with the same name.

File Format

Command files use the .mdc extension with optional YAML frontmatter:
.firebender/commands/create-pr.mdc

Frontmatter Fields

All frontmatter fields are optional:

No Frontmatter

If you omit the frontmatter, the filename becomes the command name and the entire file content is the prompt:
.firebender/commands/quick-review.mdc
This command will appear as “quick-review” in the command picker.

Frontmatter Reference

name

The display name for the command. If omitted, uses the filename without the .mdc extension.

description

A brief description shown in the command picker to help identify the command.

model

The AI model to use for this command. Options:
  • "default": Uses the system’s default model
  • "quick": Uses the fastest available model
  • Any specific model ID (e.g., "claude-sonnet-4-20250514", "gpt-4o")
If omitted, uses the model currently selected in chat.
See available models for valid model IDs.

mode

How Firebender should execute the command:
  • "auto": Let Firebender determine the best mode (default)
  • "read": Read-only mode for analysis and explanations
  • "write": Agent mode for code changes and terminal commands
  • "composer": UI composition mode
If omitted, uses the mode currently selected in chat.

Examples

Code Review Command

.firebender/commands/review-diff.mdc

Changelog Generator

.firebender/commands/write-changelog.mdc

Quick Question (Read-only)

~/.firebender/commands/explain.mdc
Commands support symbolic links. You can symlink command files from a shared location:

Migration from firebender.json

If you have commands defined in firebender.json, migrate them to .mdc files: Before (deprecated):
After:
.firebender/commands/create-pr.mdc
The commands field in firebender.json is deprecated. Use .firebender/commands/*.mdc files instead.
For user-facing overview and examples, see Commands.

Cookbooks

Ready-to-use command examples: