Additional Context
Learn how to enhance AI agent performance by adding custom context files to your repository
Custom Context Files
Overview
Modern AI coding assistants work best when they understand the specific context of your project. By adding custom context files to your repository, you can provide the AI agent with essential information about your codebase, development practices, and project-specific requirements.
Supported File Formats
The AI agent automatically recognizes and processes several standard context file formats when they're placed in the root directory of your main branch:
agents.md
General-purpose context file for AI coding assistants (learn more about the agents.md standard)
qodo.md
Context specific to Qodo-based AI tools
claude.md
Context optimized for Claude AI integration
Warning: Context files must be placed in the root directory of your main branch to be detected by the AI agent.
What to Include
Context files can contain various types of information to guide the AI agent:
Architecture and Design Patterns
Overview of your system architecture
Design patterns and principles your team follows
Key technical decisions and their rationale
Coding Standards
Language-specific style guidelines
Naming conventions for variables, functions, and classes
Code organization preferences
Development Workflow
Testing requirements and strategies
Code review expectations
Deployment considerations
Project-Specific Information
Domain knowledge and business logic
Common patterns used across the codebase
Dependencies and their purposes
Known limitations or technical debt
Best Practices
Focus on key information impacting code suggestions. Avoid redundant details.
Getting Started
Enable the Feature
Before adding context files, you need to enable this feature in your Qodo Merge configuration file:
[config]
add_repo_metadata = true
Custom File Names
You can also specify custom file names for your context files using the configuration:
[config]
add_repo_metadata_file_list = ["file1.md", "file2.md", ...]
This allows you to use your own naming convention or include multiple context files tailored for different purposes.
Add Your Context File
Follow these steps to add a context file to your repository:
Enable
add_repo_metadata
in your Qodo Merge configuration fileCreate one of the supported context files (
agents.md
,qodo.md
, orclaude.md
) in your repository's root directoryAdd relevant context about your project, starting with your most important guidelines
Commit the file to your main branch
The AI agent will automatically detect and use this context in future interactions
By investing time in creating comprehensive context files, you'll see immediate improvements in the quality and relevance of AI-generated code suggestions.
Last updated