Appearance
Bootstrap from Codebase
This workflow covers bulk context extraction from your entire codebase. Your coding agent reads through your project and curates knowledge in multiple passes, automatically organizing everything into the context tree.
For onboarding individual files (1-3 documents), see Onboard Existing Context.
Prerequisites
- ByteRover CLI installed
- Project initialized (run
brvto start the REPL and initialize your project) - A codebase with existing patterns, conventions, or documentation worth capturing
Step 1: Curate from Your Codebase
Via Coding Agent
Copy this prompt and paste it into your coding agent's chat (e.g., Cursor, Claude Code, etc.):
markdown
> curate all important context from this codebase using brv curate; focus on:
1. Code Style and Quality
2. Styling and Design
3. Naming Conventions
4. Project Structure and Dependencies
ByteRover should intelligently organize into appropriate domains and topicsYour coding agent will read through your codebase and run brv curate multiple times to capture the knowledge. ByteRover automatically organizes everything into the context tree.
Commands
Curate from key documentation files using the -f flag:
bash
brv curate "Project architecture and conventions" -f README.md -f ARCHITECTURE.md -f CONTRIBUTING.mdOr curate from specific source files:
bash
brv curate "API patterns and authentication flow" -f src/api/routes.ts -f src/auth/middleware.tsYou can reference up to 5 files per curation. For larger codebases, run multiple curations:
bash
brv curate "Database models and schema" -f prisma/schema.prisma -f src/models/user.ts
brv curate "Testing patterns" -f tests/setup.ts -f tests/helpers.ts
brv curate "Frontend component conventions" -f src/components/Button.tsx -f src/styles/theme.tsOr curate an entire directory using the -d flag:
bash
brv curate -d src/ByteRover packs the folder into a structured representation and analyzes all supported files (code, config, docs, PDFs, Office files). See How Curation Works for full details on folder packing.
Manual REPL
Curate from key documentation files using the @ syntax:
bash
# In the REPL:
/curate "Project architecture and conventions" @README.md @ARCHITECTURE.md @CONTRIBUTING.mdOr curate from specific source files:
bash
# In the REPL:
/curate "API patterns and authentication flow" @src/api/routes.ts @src/auth/middleware.tsYou can reference up to 5 files per curation. For larger codebases, run multiple curations:
bash
/curate "Database models and schema" @prisma/schema.prisma @src/models/user.ts
/curate "Testing patterns" @tests/setup.ts @tests/helpers.ts
/curate "Frontend component conventions" @src/components/Button.tsx @src/styles/theme.tsOr curate an entire directory using the @ syntax with a trailing slash:
bash
/curate @src/ByteRover packs the folder into a structured representation and analyzes all supported files (code, config, docs, PDFs, Office files). See How Curation Works for full details on folder packing.
Step 2: Review Changes
Verify what was added:
Commands
bash
brv vc statusManual REPL
bash
# In the REPL:
/vc statusThis shows your context tree changes (added, modified, and deleted files). Your context is already stored locally and ready to query.
Step 3: Query to Verify
Test that your context is retrievable.
Via Coding Agent
Copy this prompt and paste it into your coding agent's chat:
markdown
> use brv query to retrieve context related to (your intention)Your coding agent will execute brv query with your query and return the relevant context.
Commands
bash
brv query "how is authentication implemented"Manual REPL
Run the /query command directly:
bash
# In the REPL:
/query how is authentication implementedByteRover will search intelligently, follow relations between topics, and synthesize an answer from your context tree.
What Happened Behind the Scenes
Autonomous Analysis: ByteRover analyzed your codebase content and detected relevant domains (code_style, testing, structure, api, etc.) using semantic understanding.
Intelligent Organization: Content was organized hierarchically into the context tree at
.brv/context-tree/, with appropriate domain and topic structure.Relation Mapping: ByteRover identified connections between related topics and created explicit
@domain/topicrelations to build a navigable knowledge graph.Duplicate Prevention: Before creating new topics, ByteRover searched for existing related knowledge to prevent duplication and update existing topics when appropriate.
Facts Extraction: ByteRover extracted structured facts from your content -- categorized as
personal,project,preference,convention,team,environment, orother-- and stored them in the## Factssection of each knowledge file. See How Curation Works for details.
Customizing Your Bootstrap
You can customize how ByteRover processes your codebase:
Focus on specific areas:
markdown
> curate context about testing patterns and conventions from this codebase using brv curateBreak into smaller pieces:
markdown
> curate context from this codebase, break it into small focused piecesSummarize before storing:
markdown
> curate context from this codebase, summarize it before addingFor more customization options, see Curate Context with Intelligence.
Cloud Sync (Optional)
NOTE
Push/pull requires a cloud account. See Local vs Cloud for setup.
To share your bootstrapped context with teammates, stage, commit, and push:
CLI
bash
brv vc add .
brv vc commit -m "bootstrap project context"
brv vc pushTUI
/vc add .
/vc commit -m "bootstrap project context"
/vc pushNext Steps
- Onboard Existing Context - For individual files (1-3 docs)
- Query the Context Tree - Effective query patterns and tips
- Curate Context with Intelligence - Interactive vs autonomous modes, advanced options