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?
Theavante.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 theavante.md file in your project root directory:
- LSP workspace folders
- LSP root directory
- Root pattern of the current buffer’s filename
- Root pattern of current working directory
File Structure
A well-structuredavante.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 theavante.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 youravante.md file isn’t being loaded:
-
Check project root detection:
-
Verify filename:
- Default is
avante.md(case-sensitive) - Check your
instructions_fileconfig
- Default is
-
Restart Neovim:
- Instructions are loaded on startup
Instructions Not Being Applied
-
Test with explicit reference:
- Ask: “What instructions do you have for this project?”
-
Check file content:
- Ensure it’s valid markdown
- Avoid very large files (>10KB)
-
Be specific in prompts:
- Reference the instructions: “Following our coding standards, refactor this…”
Integration with Custom Prompts
Theavante.md file provides project-specific context:
avante.md- Project-specific context (what)- Custom prompts - Task-specific instructions (how)