Package Exports
- byterover-cli
- byterover-cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (byterover-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ByteRover CLI
Command-line interface for ByteRover, enabling seamless team/space management, authentication, and space's memory operations directly from your terminal.
Important
Starting with version 0.2.0, the ByteRover CLI command has been renamed from br to brv to avoid conflicts with broot, another popular CLI tool that also uses the br command.
This is a breaking change that requires action from existing users.
Please check the migration guide here.
Table of Contents
- Installation
- Quick Start
- What is ACE?
- Core Workflow
- Essential Commands
- Authentication
- Configuration
- Getting Help
Installation
Requirements
- Node.js: >= 18.0.0
- Operating System:
- macOS
- Windows
- Linux
- Currently this CLI uses
libsecret. Depending on your distribution, you will need to run the following command:- Debian/Ubuntu:
sudo apt-get install libsecret-1-dev - Red Hat-based:
sudo yum install libsecret-devel - Arch Linux:
sudo pacman -S libsecret
- Debian/Ubuntu:
- Currently this CLI uses
Install globally via npm
npm install -g byterover-cliVerify installation
brv --versionQuick Start
Visit ByteRover's Beta Docs for more information.
Get started with ByteRover CLI in three simple steps:
1. Authenticate
brv loginThis opens your browser to complete OAuth authentication. Your credentials are securely stored in the system keychain.
2. Initialize a project
cd to/your/project
brv initSelect a space from your available spaces and configure your project.
3. Start using ByteRover
You're ready to use ByteRover commands in your project!
What is ACE?
Agentic Context Engineering (ACE) is a systematic workflow that helps coding agents (like Claude Code, Cursor, etc.) capture their work, learn from feedback, and build cumulative knowledge in a living playbook.
Based on the research paper Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models by Dang et al., ACE enables language models to iteratively improve their performance through structured context evolution.
Why Use ACE?
- Build Knowledge: Each task completed by an agent teaches the system
- Learn from Experience: Capture both successes and failures as insights
- Context Persistence: Maintain project-specific best practices that improve over time
- Traceability: Track what worked, what didn't, and why
Core Workflow
ACE follows a simple 3-phase cycle that coding agents can use to improve over time:
1. Executor
Agent performs coding task and saves detailed output with context.
2. Reflector
Agent analyzes results and provides honest feedback on what worked and what didn't.
3. Curator
Agent transforms insights into playbook updates that are automatically applied to improve future work.
Quick Example
If you're using a coding agent like Claude Code:
# Complete ACE workflow in a single command
brv complete "auth-feature" \
"Implemented JWT authentication with secure token handling" \
"Successfully added OAuth2 authentication" \
--tool-usage "Read:src/auth.ts,Edit:src/auth.ts,Bash:npm test" \
--feedback "All tests passed, auth works correctly"For comprehensive ACE instructions for coding agents, check the corresponding coding agents' instruction files after brv init or brv gen-rules.
Essential Commands
Authentication
# Log in to ByteRover
brv login
# Check your authentication and project status
brv statusProject Setup
# Initialize project with ByteRover
brv init
# List available spaces
brv space list
# Switch to a different space or team
brv space switchMemory Operations
# Retrieve memories from ByteRover (outputs to stdout for agent context)
brv retrieve --query "authentication best practices"
brv retrieve -q "error handling" -n "src/auth/login.ts,src/auth/oauth.ts"
# Push your playbook to ByteRover's memory storage
brv pushFor Coding Agents
# Complete ACE workflow (recommended for agents)
brv complete <hint> <reasoning> <answer> \
--tool-usage <tools> \
--feedback <feedback>
# Generate agent rules (sets up ACE workflow for your coding agent)
brv gen-rulesAuthentication
ByteRover CLI uses OAuth 2.0 with PKCE (Proof Key for Code Exchange) for secure authentication.
How it works
- Run
brv loginto start authentication - Your browser opens to the ByteRover authorization page
- After successful login, tokens are securely stored in your system keychain
- All subsequent commands automatically use your stored credentials
Security features
- PKCE flow: Prevents authorization code interception attacks
- System keychain: Tokens stored in macOS Keychain
- Session tracking: Each session includes a session key for request tracking
- Auto-refresh: Refresh tokens enable seamless credential renewal
Configuration
Project Configuration
When you run brv init, a configuration file is created at .brv/config.json in your project directory containing:
- Space ID: The ByteRover workspace/space associated with this project
- User information: Your user ID and email
- Project settings: Project-specific configuration
ACE File Structure
ACE stores all outputs in .brv/ace/:
.brv/ace/
├── playbook.json # Your living knowledge base
├── executor-outputs/ # Coding task outputs
├── reflections/ # Task analysis and feedback
└── deltas/ # Playbook updatesNote: When you run brv push, the playbook is uploaded to ByteRover's memory storage, and local ACE files are automatically cleaned up to keep your workspace organized.
Getting Help
Command Help
# Get general help
brv --help
# Get help for a specific command
brv login --help
brv init --help
brv push --helpSupport
If you encounter issues or have questions:
- Check the command help:
brv [command] --help - Review your status:
brv status - Contact ByteRover support
Copyright (c) ByteRover