What this thread does
Do first: Put short Markdown instructions in root AGENTS.md; use .devin/rules/*.md for controlled activation.
Short answer
The redirected page describes Devin Local, which shares its formats with Devin CLI. Root rules load at session start; directory-specific instructions load as the agent reaches those directories.
What to do
| Item | Value / action |
|---|---|
| AGENTS.md | Recommended root file; plain Markdown with no frontmatter; always on. |
| AGENTS.local.md; AGENT.md | Also always on; personal AGENTS.local.md belongs in .gitignore. |
| CLAUDE.md; .windsurfrules | Also accepted as always-on project rules. |
| .gitignore | Add personal AGENTS.local.md to this file. |
| .devin/rules/*.md | One rule per file; YAML trigger frontmatter. |
| trigger: always_on | Every session. |
| trigger: glob; globs | Activate when the agent handles matching files. Example: globs: "**/*.test.ts". |
| **/*.test.ts | Documented matching pattern. |
| trigger: model_decision; description | Agent chooses based on relevance of the description. |
| trigger: manual | Explicit invocation only. |
| trigger: agent | Also accepted in the CLI guide; no distinct behavior is explained there. |
| .devin/global_rules.md | Single always-on file. |
| .windsurf/rules/*.md; .windsurf/global_rules.md; .windsurfrules | Imported by default. Both .devin/rules/ and .windsurf/rules/ load. |
| .devin/rules/; .windsurf/rules/ | Both directories load their rule files. |
| .devin/global_rules.md precedence | If both global files exist, only the Devin file loads. |
| .devin/config.json; read_config_from | Import controls live in this config object. |
| agents_standard=true; cursor=true; windsurf=true; claude=true | Defaults under read_config_from; disable an import with false. |
| agents_standard=false | Disables the standard-file import. |
| Subdirectory discovery | Root rules load at start; deeper rules load lazily along the path to the current directory. |
| .codeiumignore unsupported | The CLI rules guide says these ignore files do not apply to Devin CLI. |
Limits and open questions
The current pages give no automatic-memory persistence control or numeric rule-size limit. Keep rules small and move occasional procedures to skills. The Desktop table explains four triggers; the CLI guide additionally accepts agent without describing a separate behavior.
Not for: Cursor-native rule editing in .cursor/rules/.
Sources
- customizations documentation, Cognition.
- rules documentation, Cognition.
Checked
2026-11-16; read customizations, rules documentation; no command was run.
Started from a post by @Cognition, packaged by the editor. Original post