The Adapter System
Drevon uses an adapter pattern to generate native config files for each supported agent. Every adapter:
Extends a shared BaseAdapter class with common content generation
Implements agent-specific formatting and file structure
Generates native config files that agents read without modification
This means all agents receive the same content (identity, memory protocol, instructions, skills) — just formatted for their specific config format.
Supported Agents
GitHub Copilot .github/copilot-instructions.md
Claude Code CLAUDE.md with allowedCommands
Cursor .cursor/rules/*.mdc — multi-file with YAML frontmatter
Aider .aider/instructions.md + .aider.conf.yml
Continue.dev .continue/rules/drevon.md
Content Structure
Every agent config contains these sections (in order):
Section Description Always Included Header Auto-generated comment with Drevon version ✓ Identity Role, description, posture ✓ Memory Protocol How to read/write memory files If memory enabled Instructions Custom rules from config If any defined Agent Extras Per-agent extraInstructions If defined Skills Installed skills table and skill file references If skills enabled Workspace Workspace organization rules Hub mode only Prompts Available prompt templates If prompts enabled
Agent Files Format Special Features Copilot 1 Markdown Standard Claude 1 Markdown allowedCommands sectionCursor 3+ MDC (YAML + MD) Glob-targeted conditional rules Codex 1 Markdown Standard Windsurf 1 Markdown Standard Cline 1 Markdown Standard Aider 1-2 Markdown + YAML Optional .aider.conf.yml Continue 1 Markdown Standard
MDC is Cursor’s custom format: Markdown with YAML frontmatter containing alwaysApply, description, and globs fields. Instructions with globs in your config automatically become separate .mdc files that activate only for matching files.