Overview
Auggie automatically loads custom rules and guidelines from several file locations to provide context-aware assistance. These files help Auggie understand your project’s conventions, coding standards, and preferences.The Auggie CLI uses the same rules system as the VSCode and JetBrains IDE extensions. For more information on IDE specific features like user guidelines, see Rules & Guidelines for Agent and Chat.
Supported Rules Files
Auggie looks for rules files in the following order of precedence:- Custom rules file (via
--rules
flag):/path/to/custom-rules.md
- CLAUDE.md: Compatible with Claude Code and other AI tools
- AGENTS.md: Compatible with Cursor and other AI development tools
- Workspace guidelines:
<workspace_root>/.augment/guidelines.md
(legacy format) - Augment rules folder:
<workspace_root>/.augment/rules/
- Recursively searches .md files in the directory in the workspace root
Rules File Format
Rules files should be written in Markdown format with natural language instructions. Here’s the recommended structure:Frontmatter Configuration for Rules
Rules files in the.augment/rules/
directory support frontmatter to configure their behavior. Use YAML frontmatter at the beginning of your rule file to specify how the rule should be applied:
Frontmatter Field | Purpose | Options | Default |
---|---|---|---|
type | Controls when the rule is applied | always_apply , agent_requested | always_apply |
description | Brief description of the rule’s purpose (required for agent_requested type) | Any text | None |
always_apply
: Rule contents are automatically included in every user messageagent_requested
: Rule is automatically detected and attached based on the description field when relevant
Manual rules are not yet supported in the CLI. In the CLI, all rules in
.augment/rules/
are currently treated as always_apply
rules and automatically included. The manual
type only works in the IDE extensions where you can use @ mentions to selectively attach rules.agent_requested
(also called auto
in IDE extensions) over always_apply
if you want to optimize context usage. For these rules, the agent will determine the rule is relevant to your current task, ensuring specialized guidelines are available when needed.
Example with frontmatter:
Best Practices for Rules Files
- Be Specific: Provide clear, actionable guidelines rather than vague suggestions
- Use Examples: Include code examples when describing patterns or conventions
- Keep Updated: Regularly review and update rules as your project evolves
- Be Concise: Focus on the most important guidelines to avoid overwhelming the AI
- Test Guidelines: Verify that Auggie follows your rules by testing with sample requests
Command-Line Flag
You can specify a custom rules file when starting Auggie:See Also
- Rules & Guidelines for Agent and Chat - Configure rules in VSCode and JetBrains IDEs
- CLI Reference - Complete command-line reference
- Workspace Context - Understanding workspace configuration
- Custom Commands - Create reusable command templates