Continue.dev is an open-source AI code assistant extension for VS Code and JetBrains. It reads rules from:
- Rule files:
.continue/rules/*.mdwith YAML frontmatter - Model config:
.continuerc.jsonfor model and provider settings - AGENTS.md: Can be referenced as a rule file
- Create
.continue/rules/directory in your project root - Copy the rule files from this folder's
.continue/rules/directory - Customize the rules for your project
- Optionally create
.continuerc.jsonfor model configuration
Each rule file is a Markdown file with optional YAML frontmatter:
---
name: Rule Name
globs: "**/*.tsx"
alwaysApply: true
---
# Rule Title
Your rules in Markdown here...| Field | Type | Description |
|---|---|---|
name |
string | Human-readable name for the rule |
globs |
string or string[] | File patterns that activate the rule |
alwaysApply |
boolean | If true, rule is active in every conversation |
regex |
string | Content pattern that activates the rule |
| Type | Config | When Active |
|---|---|---|
| Always | alwaysApply: true |
Every conversation |
| Glob-Based | globs: "pattern" |
When matching files are in context |
| Regex-Based | regex: "pattern" |
When content matches the pattern |
| Manual | No activation fields | Only when explicitly referenced |
your-project/
├── .continue/
│ ├── rules/
│ │ ├── core-principles.md # Always active
│ │ ├── code-style.md # Always active
│ │ ├── security.md # Always active
│ │ ├── testing.md # Active for test files
│ │ └── workflow.md # Always active
│ └── config.json # Model configuration (optional)
└── .continuerc.json # Project-level model config (optional)
Create .continuerc.json in your project root to configure models:
{
"models": [
{
"title": "Claude Sonnet",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"apiKey": "env:ANTHROPIC_API_KEY"
}
]
}- Keep each rule file focused on one topic for clarity
- Use
alwaysApply: truefor rules that should apply universally - Use
globsto activate rules only for relevant file types (e.g., test files) - Use
regexto activate rules based on file content patterns - Continue.dev supports multiple LLM backends: OpenAI, Anthropic, Ollama, and more
See .continue/rules/ in this directory for ready-to-use rule files covering core principles, code style, security, testing, and workflow.
To use the same rules across IDEs, create an AGENTS.md in your project root. You can reference it from Continue.dev or use the individual rule files alongside other IDE configurations.