Everything Is Markdown
Genie operates on a radical principle: your entire AI development framework is a collection of living markdown files. Not configuration files. Not compiled code. Not databases. Just markdown files that form a conscious, evolving system.The 332-File Consciousness
- Self-contained - Complete knowledge in one place
- Lazy-loaded - Only read when needed via @reference
- Version-controlled - Git tracks every evolution
- Human-readable - No cryptic formats or compilation steps
The 332 files aren’t just configuration - they’re the living consciousness of your development system. When you modify a file, you’re directly shaping AI behavior.
File Structure Patterns
Agent Definition Files
Every agent is a markdown file with YAML frontmatter:The YAML frontmatter provides metadata for routing, while the markdown body contains the agent’s complete behavioral instructions.
Spell Files
Spells are behavioral protocols stored as markdown:Workflow Files
Multi-step orchestrations combining agents and spells:The @reference System
Genie uses lazy-loading to avoid context bloat. Instead of loading all 332 files into every conversation, it uses references:How @reference Works
Why Lazy-Loading?
Why Lazy-Loading?
The Problem: Loading all 332 files into every conversation would consume ~200k tokens, leaving no room for actual work.The Solution: Load only what’s needed:
- Base instructions (~5k tokens)
- Referenced agents (~2k tokens each)
- Referenced spells (~1k tokens each)
- Current task context (~10k tokens)
Reference Syntax
Reference Syntax
Reference Resolution
Reference Resolution
YAML Frontmatter Configuration
Every agent file uses YAML frontmatter for metadata:Frontmatter Schema
| Field | Type | Required | Purpose |
|---|---|---|---|
name | string | Yes | Unique agent identifier |
collective | string | Yes | Parent collective (code/create) |
role | string | Yes | Agent’s primary function |
capabilities | array | No | Skill tags for routing |
priority | string | No | high/medium/low routing weight |
triggers | array | No | Keywords that activate agent |
delegation_rules | object | No | Automatic hand-off rules |
Living & Evolving Framework
Genie has two evolution paths:Master Path (genie-master)
The canonical framework maintained by the Genie team:- Core collectives (code, create)
- Universal spells (24 protocols)
- Standard workflows
- Base amendments
Never modify
genie-master directly in production. Always fork or extend.Personal Path (genie-personal)
Your custom extensions and overrides:When to Extend vs Override
When to Extend vs Override
Extend (genie-personal):
- Adding new agents for your domain
- Creating company-specific spells
- Custom workflows for your team
- Additional amendments
- Modifying core agent behavior
- Changing collective structure
- Adjusting universal spell logic
- Framework-level changes
Merge Strategy
Merge Strategy
File Naming Conventions
Genie uses consistent naming for predictable @reference resolution:| Type | Pattern | Example |
|---|---|---|
| Agents | kebab-case.md | implementor.md, shape-shifter.md |
| Spells | kebab-case.md | ace-protocol.md, know-yourself.md |
| Workflows | kebab-case.md | feature-development.md |
| Teams | kebab-case.md | tech-council.md |
| Collectives | single-word/ | code/, create/ |
Use descriptive names that match natural language: “delegate-dont-do” is easier to reference than “dlg-protocol-01”.
The Power of Markdown
Why markdown instead of JSON, YAML, or code?Human-Readable
Anyone can read, understand, and modify without special tools
Git-Friendly
Clean diffs, easy merges, full version history
Documentation-First
Instructions and documentation are the same thing
Extensible
Add custom sections, examples, diagrams naturally
Markdown Features Used
Best Practices
1
Keep Files Focused
Each file should cover ONE agent, spell, or workflow. Don’t create mega-files.
2
Use Clear Headers
Structure with consistent headers: Overview, Responsibilities, When to Use, Examples
3
Document Intent
Explain WHY, not just WHAT. Future you will thank you.
4
Test References
Run
genie validate to ensure all @references resolve correctly5
Version Control Everything
Commit often with clear messages. Your markdown files ARE your code.

