Setup
1. Create Configuration Folder
Create a.codeant folder in your repository root (same level as your .git folder):
2. Create Instructions File
Inside the.codeant folder, create an instructions.json file with your custom review instructions.
Configuration Format
Theinstructions.json file uses the following structure:
.codeant/instructions.json
File Pattern Examples
CodeAnt uses minimatch for glob patterns. Here are common patterns:Instruction Examples
Add each instruction object below to theinstructions array in .codeant/instructions.json.
Common Use Cases
1. Ignore Specific Patterns:.codeant/instructions.json
.codeant/instructions.json
.codeant/instructions.json
.codeant/instructions.json
Sample instructions.json
Here’s a complete example configuration:.codeant/instructions.json
Best Practices
- Use descriptive IDs: Make instruction IDs clear and meaningful
- Be specific with patterns: Target exact files or directories that need special treatment
- Document reasoning: Use clear descriptions explaining why each instruction exists
- Test patterns: Verify your glob patterns match the intended files
- Keep it minimal: Only add instructions when necessary to avoid over-customization
- Scope appropriately: Use scope to control where instructions apply - IDE only, PR reviews only, or both
instructions.json file, CodeAnt will automatically apply these custom instructions during the next code review.