What is a Context Tree?
A context tree is your project’s hierarchically organized knowledge base stored in.brv/context-tree/. It captures patterns, best practices, and learnings in a structured format that’s both human-readable and intelligently searchable.
Structure
The context tree organizes knowledge into a three-level hierarchy:1. Domains
Top-level folders that group related knowledge areas. ByteRover automatically detects and creates domains on-demand as you curate, letting your context tree structure emerge naturally from your project.2. Topics
Specific subjects within each domain:3. Subtopics (Optional)
Deeper organization within topics (maximum one level):4. Context Files
Each topic (and subtopic) contains markdown files with descriptive names:- Content - Your knowledge in markdown format (explanations, code examples, etc.)
- Relations - Links to related topics (optional
## Relationssection)
Relations: The Knowledge Graph
Relations create explicit connections between topics using@domain/topic/subtopic notation.
Why relations matter:
- Enable graph-like navigation between related knowledge
- Not based on similarity scores - these are explicit, intentional links
- Help find comprehensive context by following connections
- Prevent knowledge silos
Why This Matters
Human-readable and git-friendly:- Browse the context tree in your file explorer
- Edit markdown files with any text editor
- Track changes with git
- Review in pull requests
- Knowledge is categorized by domain and topic
- Easy to find what you need
- Clear structure vs flat document storage
- ByteRover follows connections between topics
- More reliable than similarity-based search
- Intentional knowledge graph vs automatic clustering