Curate context to your context tree
This guide walks you through curating context to your context tree.curate can both be executed by you via /curate in the REPL or by your coding agent (in your prompt to your coding agent, simply mention ByteRover and it will then run brv curate accordingly).curate offers two modes:
- Interactive mode: Manually select domain and topic, then add content (for developers who want full control)
- Autonomous mode: Automatically detects domains, searches for duplicates, organizes hierarchically, and prevents duplication using intelligent processing
The Easier Way - Let Your Coding Agent Work with Us
The context tree evolves with your project. Your coding agent can intelligently update existing knowledge. To update context, copy this prompt and paste it into your coding agent’s chat (e.g., Cursor, Claude Code, etc.):Two Manual Ways to Curate Context
Interactive Mode (Manual Selection)
Perfect for developers who want full control over where their context is placed. You manually navigate the context tree, select the domain and topic, then add your content. Step 1: Run the command- Select a domain (e.g.,
structure/,testing/,code_style/) - Navigate to or create a topic folder
context.md and opens it in your default editor. Add the health check context:
Autonomous Mode (Intelligent Curation)
Perfect when you want ByteRover to automatically categorize and organize your context. The autonomous mode detects domains, searches for duplicates, and places content intelligently using semantic understanding. Run the command with your context:- Domain Detection: Analyzes your input and detects relevant domains (code_style, testing, structure, etc.) using semantic understanding—not keyword matching.
- Search Existing Knowledge: Searches your context tree for related existing knowledge to prevent duplication.
- Decide Create or Update: Determines whether to create a new topic or update an existing one.
- Hierarchical Organization: Structures content into the appropriate hierarchy: domain → topic → (optional) subtopic.
- Add Relations: Identifies and creates explicit
@domain/topicrelations to connect related knowledge, building a navigable knowledge graph.
File Reference
You can include text/code files in your codebase when curating. Use the@ syntax or the --files flag to reference files:
- Maximum 5 file references per curation
- Files must be text-based (no binary files)
- Paths are relative to project root