Prerequisites
- ByteRover CLI installed and authenticated (
/login) - Project initialized (
/init) - Existing markdown file(s) with documentation or context
Step 1: Identify Your Context Source
You likely have existing documentation in your codebase:README.md, ARCHITECTURE.md, SECURITY.md, or similar files containing valuable context.
For this example, we’ll use a security.md file:
Step 2: Curate to Context Tree
You can curate context using either your coding agent or manually in the REPL.- Via Coding Agent
- Manual REPL
Copy this prompt and paste it into your coding agent’s chat (e.g., Cursor, Claude Code, etc.):Your coding agent will read the file and execute:
compliance or code_style) and creating an appropriate topic structure.
Step 3: Review Changes
Before pushing, verify what was added:Step 4: Push to Remote
Sync your context to the remote space:Step 5: Query to Verify
Test that your context is retrievable using either your coding agent or manually in the REPL.- Via Coding Agent
- Manual REPL
Copy this prompt and paste it into your coding agent’s chat:Your coding agent will execute:
What Happened Behind the Scenes
-
Curate Command: Whether via your coding agent (
brv curate) or manually (/curate), ByteRover processed the content from your file. -
Intelligent Curation: ByteRover automatically detected relevant domains, organized content hierarchically, and created
context.mdfiles in.brv/context-tree/. -
Review & Push: You verified the organization with
/statusand synced to remote with/push. -
Agentic Search: Whether via your coding agent (
brv query) or manually (/query), ByteRover reasoned about your question and retrieved relevant context with citations.
Curating Multiple Files
For 2-3 related files, reference them together using either method.- Via Coding Agent
- Manual REPL
Copy this prompt and paste it into your coding agent’s chat:Your coding agent will read both files and execute
brv curate with their combined context.Next Steps
- Bootstrap from Codebase - Bulk context extraction from entire codebase
- Query the Context Tree - Effective query patterns and tips
- Curate Context with Intelligence - Advanced curation options, interactive vs autonomous modes