Skip to main content

Overview

Instructions are the rules that guide agent behavior. They live in the instructions 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

Each instruction should cover one concern. Don’t combine unrelated rules in a single instruction — use multiple instructions instead.
If you have a style guide or architecture doc, reference its path:
Static instructions go in instructions. Dynamic, evolving context belongs in memory files. Use instructions for rules, memory for state.
Too many rigid rules make agents less useful. Focus on the important guardrails and let agents use their judgment for the rest.