Skip to main content

Overview

Drevon supports two workspace modes, each designed for a different workflow:

Hub Mode

Hub mode creates a centralized workspace where you manage multiple projects from a single directory. It’s designed for people who context-switch between different projects and need their AI agents to maintain awareness across all of them.

Directory Structure

Memory Files

Workspace Rules

Hub mode includes a workspace section in the config that instructs agents to:
  • Keep projects organized in workspace/ subdirectories
  • Name folders after the task
  • Never create files outside workspace/ unless explicitly told
  • Register new projects in topics/projects.md

Project Mode

Project mode embeds AI capabilities into an existing codebase. It’s designed for repositories where a team collaborates and needs consistent AI behavior without affecting the project structure.

Directory Structure

Memory Files

Project mode’s decision files under topics/decisions/ follow the ADR (Architecture Decision Records) format — a proven practice for documenting technical decisions with context, options considered, and rationale. One file per decision keeps PR review and merges clean.

Auto-Detection

When you run drevon init without --hub or --project, Drevon automatically suggests a mode: You can always override the suggestion during the interactive wizard.

Switching Modes

Switching modes after initialization requires re-running drevon init and will regenerate memory files. Back up any important memory content first.
To switch from hub to project mode (or vice versa):
  1. Back up .drevon/memory/ if it contains important context
  2. Edit mode in drevon.config.json
  3. Update memory.files to match the new mode’s file set
  4. Run drevon sync
  5. Manually create any missing memory files