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):

Format Comparison

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.