Skip to main content

The Adapter System

Drevon uses an adapter pattern to generate native config files for each supported agent. Every adapter:
  1. Extends a shared BaseAdapter class with common content generation
  2. Implements agent-specific formatting and file structure
  3. 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

OpenAI Codex

AGENTS.md

Windsurf

.windsurfrules

Cline

.clinerules

Aider

.aider/instructions.md + .aider.conf.yml

Continue.dev

.continue/rules/drevon.md

Content Structure

Every agent config contains these sections (in order):
SectionDescriptionAlways Included
HeaderAuto-generated comment with Drevon version
IdentityRole, description, posture
Memory ProtocolHow to read/write memory filesIf memory enabled
InstructionsCustom rules from configIf any defined
Agent ExtrasPer-agent extraInstructionsIf defined
SkillsInstalled skills table and skill file referencesIf skills enabled
WorkspaceWorkspace organization rulesHub mode only
PromptsAvailable prompt templatesIf prompts enabled

Format Comparison

AgentFilesFormatSpecial Features
Copilot1MarkdownStandard
Claude1MarkdownallowedCommands section
Cursor3+MDC (YAML + MD)Glob-targeted conditional rules
Codex1MarkdownStandard
Windsurf1MarkdownStandard
Cline1MarkdownStandard
Aider1-2Markdown + YAMLOptional .aider.conf.yml
Continue1MarkdownStandard
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.