Architecture Reference Documentation
Visual and textual documentation of the cortex architecture.
📚 Documentation Files
1. VISUAL_SUMMARY.txt
Type: ASCII Art Diagram Size: 7.2K Format: Plain Text
Quick visual overview perfect for terminal display.
Contents:
- System architecture (4 layers)
- Component counts and organization
- Example refactoring flow
- Quick lookup tables
- System statistics
Best for:
- Terminal viewing
- Quick reference
- README files
- Presentations
View:
cat docs/reference/architecture/VISUAL_SUMMARY.txt
2. architecture-diagrams.md
Type: Comprehensive Diagrams Size: 15K Format: Markdown + Mermaid
Deep dive with 10+ interactive diagrams.
Contents:
- System architecture overview (graph)
- Command → Mode → Workflow flow (sequence diagram)
- Mode activation flow (flowchart)
- Workflow execution flow (detailed flowchart)
- Refactoring example: End-to-end (full flow)
- Decision tree: Which layer to use?
- System statistics (pie chart)
- Mode + Workflow compatibility matrix
- Legend and symbols guide
- Quick start guide
Best for:
- Learning the system
- Teaching and onboarding
- Architecture reviews
- Understanding integration patterns
View:
# In VS Code with Mermaid extension
code docs/reference/architecture/architecture-diagrams.md
# Online at https://mermaid.live/
# Copy/paste diagrams to view and export
3. DIAGRAMS_README.md
Type: Documentation Guide Size: 8.1K Format: Markdown
How to use, read, and maintain all diagrams.
Contents:
- Diagram index and descriptions
- How to use each diagram type
- Reading guide (symbols, colors, formats)
- Diagram templates for creating new ones
- Update checklist
- Learning paths (Beginner → Advanced)
- Tools and viewing methods
Best for:
- Finding the right diagram
- Understanding diagram conventions
- Creating custom diagrams
- Maintaining documentation
View:
cat docs/reference/architecture/DIAGRAMS_README.md
🎯 Quick Start
For New Users
Day 1: Start here
# 1. View ASCII summary for quick overview
cat docs/reference/architecture/VISUAL_SUMMARY.txt
# 2. Launch the TUI
cortex tui
Week 1: Dive deeper
# 3. Read the cheat sheet
cat docs/reference/architecture/quick-reference.md
# 4. Study the diagrams
# Open architecture-diagrams.md in VS Code or browser
For Developers
Daily Use:
- Keep
quick-reference.mdopen for command lookup - Reference
VISUAL_SUMMARY.txtfor system overview - Use TUI keyboard shortcuts (in quick-reference.md)
When Learning:
- Study sequence diagrams in
architecture-diagrams.md - Follow the refactoring example end-to-end
- Review decision tree for guidance
For Architects
Architecture Reviews:
- Present system architecture diagram
- Show component distribution
- Explain integration patterns
- Discuss compatibility matrix
Documentation:
- Use diagrams in documentation
- Reference decision trees
- Show workflow examples
📖 System Architecture
Agents → Specialized AI agents with focused responsibilities (29+)
Skills → Progressive disclosure knowledge packs (127+)
Rules → Behavioral constraints and best practices
Hooks → Automation scripts triggered by Claude Code events
Commands → Slash command definitions for common workflows
📊 System Statistics
- 29+ Specialized Agents
- 127+ Skills
- 3 MCP Servers (Codanna, Context7, Memory)
- Slash commands, rules, and hooks
🛠️ Installation & Setup
These documentation files are automatically installed with cortex.
Installation copies them to:
~/.claude/docs/architecture-diagrams.md
~/.claude/docs/DIAGRAMS_README.md
~/.claude/docs/VISUAL_SUMMARY.txt
To reinstall/update documentation:
# From project directory
just install
# Or manually copy
cp docs/reference/architecture/* ~/.claude/docs/
🎨 Viewing Diagrams
ASCII Art (Terminal)
cat docs/reference/architecture/VISUAL_SUMMARY.txt
# Or from installed location
cat ~/.claude/docs/VISUAL_SUMMARY.txt
Markdown (Any Editor)
# VS Code, Sublime, etc.
code docs/reference/architecture/quick-reference.md
Mermaid Diagrams
In VS Code:
- Install "Markdown Preview Mermaid Support" extension
- Open
architecture-diagrams.md - Press
Cmd+Shift+V(Mac) orCtrl+Shift+V(Windows)
Online:
- Visit https://mermaid.live/
- Copy diagram from
architecture-diagrams.md - Paste to view and export as PNG/SVG
Command Line:
# Install mermaid-cli
npm install -g @mermaid-js/mermaid-cli
# Generate images
mmdc -i architecture-diagrams.md -o diagrams.png
🔄 Keeping Documentation Updated
When adding new components:
New Commands:
- Update command count in VISUAL_SUMMARY.txt
- Add to quick-reference.md command table
- Update namespace list if new namespace
See DIAGRAMS_README.md for full update checklist.
📚 Related Documentation
../../guides/- Step-by-step guides and tutorials../../README.md- Main documentation index../../../README.md- Project README~/.claude/commands/- Slash command definitions
🤝 Contributing
To improve these diagrams:
- Edit source files in
docs/reference/architecture/ - Test rendering with Mermaid preview
- Update statistics if component counts changed
- Commit changes with descriptive message
- Reinstall to update
~/.claude/docs/
📞 Getting Help
Can't find something?
- Check VISUAL_SUMMARY.txt for quick overview
- Search quick-reference.md for specific commands/modes
- Study architecture-diagrams.md for detailed flows
- Read DIAGRAMS_README.md for guidance
Need more diagrams?
- Review DIAGRAMS_README.md for templates
- Follow color coding and symbol conventions
- Add to appropriate file
- Update this README
Last Updated: 2026-03-06 Part of cortex: https://github.com/NickCrew/claude-cortex