pi-byterover
Pi ByteRover extension
Package details
Install pi-byterover from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-byterover- Package
pi-byterover- Version
0.2.2- Published
- May 1, 2026
- Downloads
- not available
- Author
- ianpascoe_
- License
- MIT
- Types
- extension
- Size
- 172.8 KB
- Dependencies
- 2 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./dist/index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-byterover connects Pi sessions to ByteRover through @byterover/brv-bridge.
It automatically recalls relevant ByteRover memory before an agent response and injects that context into the session. After useful completed turns, it persists durable facts, decisions, preferences, and technical details back to ByteRover.
Prerequisites
- Pi installed.
- ByteRover CLI installed as
brv, or a custom executable path configured withbrvPath. - A project where ByteRover can bootstrap and use
.brvstate.
Installation
Install the package with Pi:
pi install npm:pi-byterover
For local development:
pnpm install
pnpm build
pi -e ./dist/index.js
Configuration
Configure pi-byterover with either a project config file or a global config file:
- Project:
.pi/byterover.json - Global:
~/.pi/agent/byterover.json
Project configuration takes precedence over global configuration. If no config file is present, defaults are used.
{
"enabled": true,
"brvPath": "brv",
"searchTimeoutMs": 30000,
"recallTimeoutMs": 30000,
"persistTimeoutMs": 60000,
"quiet": false,
"autoRecall": true,
"autoPersist": true,
"manualTools": true,
"contextTagName": "byterover-context",
"recallPrompt": "Recall any relevant context that would help answer the latest user message.\nUse the recent conversation only to resolve references and intent.\nDo not restate the query in your findings.",
"persistPrompt": "The following is a conversation between a user and an AI assistant.\nCurate only information with lasting value: facts, decisions, technical details, preferences, or notable outcomes.\nSkip trivial messages such as greetings, acknowledgments (\"ok\", \"thanks\", \"sure\", \"got it\"), one-word replies, anything with no substantive content.",
"maxRecallTurns": 3,
"maxRecallChars": 4096
}
Configuration fields:
enabled: Enable or disable the package without removing configuration. Defaults totrue.brvPath: ByteRover CLI executable path. Defaults tobrv.searchTimeoutMs: ByteRover search timeout in milliseconds. Defaults to30000.recallTimeoutMs: ByteRover recall timeout in milliseconds. Defaults to30000.persistTimeoutMs: ByteRover persist timeout in milliseconds. Defaults to60000.quiet: Suppress Pi notifications for ByteRover operations. Defaults tofalse.autoRecall: Automatically recall and inject ByteRover context before agent responses. Defaults totrue.autoPersist: Automatically persist useful completed conversation turns after responses. Defaults totrue.manualTools: Register manual ByteRover tools. Defaults totrue.contextTagName: XML-style tag name used for injected recall context. Defaults tobyterover-context.recallPrompt: Instruction text prepended to recent conversation context for automatic recall.persistPrompt: Instruction text prepended to completed turns for automatic persistence curation.maxRecallTurns: Maximum recent user turns used to resolve automatic recall context. Defaults to3.maxRecallChars: Maximum recent conversation characters used for automatic recall. Defaults to4096.
Numeric timeout and limit values must be positive integers. brvPath, recallPrompt, and persistPrompt must be non-empty strings. contextTagName must be a simple XML-style tag name such as byterover-context.
Persist does not require ByteRover to be ready ahead of time. ByteRover bootstraps automatically when persist is called.
Manual Tools
When manualTools is enabled, Pi agents can use these ByteRover tools:
brv_recall: Ask ByteRover to synthesize relevant memory for a query. Use it when the agent needs targeted, summarized context beyond automatic recall. Accepts optionaltimeoutMs.brv_search: Search ByteRover memory and return ranked file-level results. Use it when the agent needs to inspect matching memory sources or compare multiple candidates. Accepts optionallimit,scope, andtimeoutMs.brv_persist: Persist raw memory text directly into ByteRover. Use it when a durable fact, decision, preference, or technical detail should be saved immediately instead of waiting for automatic turn persistence. Defaults to fire-and-forget mode and accepts optionaltimeoutMsfor long-running writes.
With autoRecall and autoPersist enabled, routine memory behavior is automatic. Manual tools are best for explicit lookups, source searches, or immediate saves.
Development
pnpm install
pnpm format:check
pnpm lint
pnpm test
pnpm typecheck
pnpm build