Skip to main content
The avante.md file allows you to provide project-specific context and instructions to the AI. This file is automatically referenced during all interactions with Avante, helping the AI understand your project’s conventions, architecture, and requirements.

What is avante.md?

The avante.md file is a markdown file that contains instructions and context for the AI assistant. When placed in your project root, it’s automatically loaded and used as additional context for all AI interactions.
string
default:"avante.md"
Name of the project-specific instruction file

File Location

Place the avante.md file in your project root directory:
The project root is determined by:
  1. LSP workspace folders
  2. LSP root directory
  3. Root pattern of the current buffer’s filename
  4. Root pattern of current working directory

File Structure

A well-structured avante.md file typically includes these sections:

1. Your Role

Define the AI’s persona and expertise level:

2. Your Mission

Clearly describe what the AI should focus on:

3. Additional Sections

Consider including:
  • Project Context - Brief description of the project, its goals, and target users
  • Technology Stack - List of technologies, frameworks, and tools used
  • Coding Standards - Specific conventions, style guides, and patterns to follow
  • Architecture Guidelines - How components should interact and be organized
  • Testing Requirements - Testing strategies and coverage expectations
  • Security Considerations - Specific security requirements or constraints

Complete Example

Custom Filename

You can use a different filename for project instructions:

Per-Project Configuration

Different projects can have different instruction files. The file is loaded based on the project root of the current buffer.

Example: Multiple Projects

Best Practices

Be Specific

Provide concrete examples instead of vague instructions:

Include Examples

Show the AI what good code looks like in your project:

Keep It Updated

Update the avante.md file as your project evolves:
  • Add new conventions as they’re established
  • Update technology stack information
  • Refine the AI’s role based on what works
  • Remove outdated instructions

Focus on “Why”

Explain the reasoning behind your conventions:

Example: Different Project Types

Backend API Project

CLI Tool Project

Troubleshooting

File Not Being Loaded

If your avante.md file isn’t being loaded:
  1. Check project root detection:
  2. Verify filename:
    • Default is avante.md (case-sensitive)
    • Check your instructions_file config
  3. Restart Neovim:
    • Instructions are loaded on startup

Instructions Not Being Applied

  1. Test with explicit reference:
    • Ask: “What instructions do you have for this project?”
  2. Check file content:
    • Ensure it’s valid markdown
    • Avoid very large files (>10KB)
  3. Be specific in prompts:
    • Reference the instructions: “Following our coding standards, refactor this…”

Integration with Custom Prompts

The avante.md file provides project-specific context:
  • avante.md - Project-specific context (what)
  • Custom prompts - Task-specific instructions (how)
Both are combined to provide comprehensive context to the AI.

Tips

Start with a simple avante.md file and expand it over time as you discover what helps the AI understand your project better.
Include links to your internal documentation, style guides, or architecture decision records (ADRs) in the avante.md file.
If working on a monorepo, place avante.md files in each package/service directory for package-specific instructions.
Use the avante.md file to specify domain-specific terminology and acronyms used in your project.