Skip to main content
AGENTS.md is a simple markdown file for defining agent instructions. Place it in your project root as an alternative to .firebender/rules/*.mdc for straightforward use cases.
AGENTS.md files are plain markdown with no frontmatter required. Perfect for simple, readable instructions.
Unlike Project Rules, AGENTS.md is a plain markdown file without metadata or complex configurations. It’s perfect for projects that need simple, readable instructions without the overhead of structured rules.

File Locations

Firebender searches for AGENTS.md files in the following order:
  1. Project directory (and parent directories): .firebender/AGENTS.md or AGENTS.md
  2. Personal defaults: ~/.firebender/AGENTS.md
The first file found is used. This allows for project-specific instructions that can be committed to version control.

Format

AGENTS.md is a plain markdown file with no frontmatter required:
AGENTS.md

Automatic Application

AGENTS.md files automatically apply to all conversations. You don’t need to specify file patterns or configuration - just write your instructions in plain markdown.

Examples

AGENTS.md
AGENTS.md

Discovery

AGENTS.md files are automatically discovered when you start a conversation. No configuration in firebender.json is required.

Search Order

Firebender searches for AGENTS.md in this order:
  1. .firebender/AGENTS.md in project root
  2. AGENTS.md in project root
  3. .firebender/AGENTS.md in parent directories (walking up the tree)
  4. AGENTS.md in parent directories (walking up the tree)
  5. ~/.firebender/AGENTS.md (personal fallback)
The first file found is used.
Place AGENTS.md in .firebender/ to keep your project root clean, or use AGENTS.md for maximum visibility and version control convenience.

Live Reload

AGENTS.md files are automatically reloaded when you save changes. The updated instructions take effect immediately - no need to restart or create a new chat.

Version Control

AGENTS.md files can be committed to version control to share instructions across your team:
Add to .gitignore if you want project-specific personal instructions:

When to Use AGENTS.md vs Rules

You can use both AGENTS.md and Rules together. They complement each other and all apply to conversations.
  • Rules - Structured rules with glob patterns and metadata
  • Global Rules - Overview of rules system
  • Commands - Custom AI commands for your workflow