Skip to main content

Curation Operations

When you curate context (via /curate or brv curate), ByteRover’s agent decides how to modify the context tree using five operations:
OperationWhat It Does
ADDCreates a new knowledge file. Auto-generates context.md overviews at the domain, topic, and subtopic levels if they don’t already exist.
UPDATEModifies an existing knowledge file. Resets recency to 1.0 and increases importance by +5.
UPSERTCreates the file if it doesn’t exist, updates it if it does — a single operation without needing to check first.
MERGECombines a source file into a target file. Merges content sections (Raw Concept, Narrative, Facts), takes the higher scoring metadata from each, then deletes the source.
DELETERemoves a specific knowledge file, or an entire folder if no file title is specified.
The agent selects the appropriate operation automatically. For example, when you curate context that overlaps with existing knowledge, the agent may choose UPDATE to enrich the existing file rather than ADD a duplicate.

Folder Packing

Use the -d/--folder flag to curate an entire directory at once:
# In the REPL:
/curate -d src/auth

# Or via CLI:
brv curate -d src/auth
ByteRover packs the folder into a structured representation and analyzes its contents. Supported file types include:
  • Code — TypeScript, JavaScript, Python, Go, Rust, Ruby, Java, C/C++, and 30+ other languages
  • Config & data — JSON, YAML, TOML, XML, .env files
  • Documentation — Markdown, MDX, RST, plain text
  • PDFs — Automatic text extraction (up to 50 pages)
  • Office files — Word (.docx), Excel (.xlsx), PowerPoint (.pptx)
The folder pack respects .gitignore patterns and skips binary files automatically.

Facts Extraction

During curation, the agent extracts structured facts from your content. Each fact captures a specific, verifiable statement:
## Facts
- **jwt_secret**: Access tokens are signed with RS256 algorithm [convention]
- **refresh_token**: Refresh tokens are single-use and rotated on renewal [convention]
- Token pairs are stored in the database for revocation tracking [project]
- Team uses PostgreSQL 15 for all persistence [environment]
Facts are categorized as personal, project, preference, convention, team, or environment. When files are merged, facts are deduplicated by statement text to avoid repetition.