.mdc files in the .firebender/rules/ directory.
Firebender supports both project-specific rules and personal rules that apply across all projects.
- Project Rules:
.firebender/rules/*.mdcin your project root - Personal Rules:
~/.firebender/rules/*.mdcfor rules across all projects
Quick Start
Create a.firebender/rules/ directory in your project root and add .mdc files:
General Rules Example: Food delivery app
Create.firebender/rules/project-context.mdc:
.firebender/rules/project-context.mdc
Situational Rules Example: Test files
Rules can apply only to specific files using glob patterns:.firebender/rules/test-rules.mdc
ProfileViewModelKotest.kt, AI will follow the test rules. If you modify MainActivity.kt, AI will not be provided the irrelevant rule.
Architecture Documentation as Rules
For complex or extensive rules, you can reference existing documentation in your rules:.firebender/rules/architecture.mdc
Live Reload
Rules reload automatically when you save changes to.mdc files. If there are parsing errors in the frontmatter, Firebender will notify you.
For a complete reference of the rules syntax including advanced patterns and configuration options, see the Rules Reference.
Ignore Files
Firebender reads your project’s codebase to power its features like autocomplete and chat context. You can control which files Firebender can access automatically to protect sensitive information and improve performance.How it works
Firebender respects ignore patterns for:- Implicit context: Files added automatically to chat context
- Autocomplete: Code suggestions from ignored files are completely blocked
- Explicit mentions: You manually paste code from an ignored file into chat
- Direct edits: You run inline edit commands on ignored files
- Terminal/MCP tools: These tools cannot be restricted by ignore patterns