Overview
Instructions are the rules that guide agent behavior. They live in theinstructions array in drevon.config.json and are injected into every agent’s config file.
Instruction Structure
Writing Effective Instructions
Be Specific and Actionable
Use Domain-Specific Rules
Leverage Globs for Cursor
Cursor’s.mdc format supports conditional rules that only activate for specific file types:
Glob-targeted instructions generate separate
.mdc files for Cursor. Other agents receive all instructions regardless of globs, since they don’t support conditional activation.Example: Full-Stack Project
Tips
Keep instructions focused
Keep instructions focused
Each instruction should cover one concern. Don’t combine unrelated rules in a single instruction — use multiple instructions instead.
Reference existing docs
Reference existing docs
If you have a style guide or architecture doc, reference its path:
Use memory for evolving context
Use memory for evolving context
Static instructions go in
instructions. Dynamic, evolving context belongs in memory files. Use instructions for rules, memory for state.Don't over-constrain
Don't over-constrain
Too many rigid rules make agents less useful. Focus on the important guardrails and let agents use their judgment for the rest.