AGENTS.md
The simplest way to add rules is with anAGENTS.md file at your project root:
Supported File Names
Devin for Terminal reads rules from any of these files at your project root:| File | Notes |
|---|---|
AGENTS.md | Recommended |
AGENT.md | Singular alternative |
CLAUDE.md | Compatible with Claude Code |
Rules From Other Tools
If you’re coming from another AI coding tool, Devin for Terminal can read your existing rules:Cursor
Cursor
Devin for Terminal reads from Activation behavior:
.cursorrules and .cursor/rules/*.md.Cursor rules support frontmatter to control activation:alwaysApply: true— Always activeglobsspecified — Active when working with matching filesdescriptiononly — Agent decides when to apply- None of the above — User must invoke manually
Windsurf
Windsurf
Devin for Terminal reads from Trigger values:
.windsurf/rules/*.md.Windsurf rules support frontmatter:always_on, manual, model_decision, globClaude Code
Claude Code
Devin for Terminal reads from the
.claude/ directory.Controlling Imports
You can enable or disable reading from specific tool formats in your config file (~/.config/cognition/config.json or .cognition/config.json):
AGENTS.md is always read and cannot be disabled.
Rule Activation Types
Rules loaded from external formats may have different activation behaviors:| Type | Behavior |
|---|---|
| Always-on | Active in every session, no user action needed |
| Glob-activated | Active when the agent works with files matching specific patterns |
| Agent-decided | The agent chooses when to apply based on the rule’s description |
| User-invocable | Only active when explicitly triggered by the user |
AGENTS.md are always “always-on”.
Best Practices
Keep rules concise
Long, verbose rules dilute the agent’s attention. Focus on what matters most.
Be specific
“Use pnpm” is better than “use the right package manager”. Concrete instructions are easier to follow.
Include examples
Show the pattern you want, not just a description of it.
Version control them
Keep rules in your repo so the whole team benefits from the same guidelines.
For rules that are personal preferences (not team standards), consider using skills instead. Skills give you more control over when and how they’re applied.

