Skip to main content

Overview

Drevon supports two workspace modes, each designed for a different workflow:
Hub ModeProject Mode
Best forMulti-project workspacesSingle codebases
UsersFounders, researchers, generalistsDevelopers, teams
MemoryCross-project contextProject-scoped context
Workspace dirworkspace/ for projectsNot created

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.
npx drevon init --hub

Directory Structure

my-workspace/
├── drevon.config.json
├── .drevon/
│   ├── memory/
│   │   ├── user.md          # Your preferences & decisions
│   │   ├── projects.md      # Registry of all projects
│   │   ├── systems.md       # Infrastructure & systems
│   │   └── log.md           # Chronological action log
│   ├── skills/
│   └── prompts/
├── workspace/
│   ├── project-alpha/
│   ├── project-beta/
│   └── landing-page/
├── .github/copilot-instructions.md
├── CLAUDE.md
└── AGENTS.md

Memory Files

FilePurposeUpdate When
user.mdYour preferences, communication style, confirmed decisionsUser expresses a preference
projects.mdRegistry of all workspace projects with statusProject created/updated/completed
systems.mdSystems, infrastructure, and conventionsNew system created or changed
log.mdChronological action log (append-only)After every significant action

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 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.
cd my-app
npx drevon init --project

Directory Structure

my-app/
├── src/                      # Existing code (untouched)
├── package.json              # Existing config (untouched)
├── drevon.config.json
├── .drevon/
│   ├── memory/
│   │   ├── context.md        # Project architecture & overview
│   │   ├── decisions.md      # ADR-style decision records
│   │   ├── patterns.md       # Code patterns & conventions
│   │   └── log.md            # Chronological action log
│   ├── skills/
│   └── prompts/
├── .github/copilot-instructions.md
├── CLAUDE.md
└── AGENTS.md

Memory Files

FilePurposeUpdate When
context.mdProject overview, architecture, key files, dependenciesTech stack or architecture changes
decisions.mdADR-style decision records with context and rationaleTechnical decision is made
patterns.mdCode patterns, conventions, anti-patterns, testing patternsNew pattern established or changed
log.mdChronological action log (append-only)After every significant action
Project mode’s decisions.md follows the ADR (Architecture Decision Records) format — a proven practice for documenting technical decisions with context, options considered, and rationale.

Auto-Detection

When you run drevon init without --hub or --project, Drevon automatically suggests a mode:
SignalSuggested ModeReason
Git repository detectedProjectExisting codebase
package.json existsProjectNode.js project
src/ directory existsProjectSource code present
workspace/ existsHubHub structure detected
Empty directoryHubFresh workspace
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