Configs2026年5月29日·1 分钟阅读

ByteRover CLI — Portable Memory Layer for Coding Agents

ByteRover CLI (brv) provides persistent context memory for autonomous coding agents, enabling Claude Code, Codex, and other AI tools to retain and retrieve knowledge across sessions automatically.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Single
信任
信任等级:Established
入口
ByteRover CLI Overview
安全暂存命令
npx -y tokrepo@latest install 97de2dce-5b37-11f1-9bc6-00163e2b0d79 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

Introduction

ByteRover CLI (brv) adds a portable memory layer to AI coding agents. It captures what agents learn during sessions, compresses that knowledge with AI, and injects relevant context back into future sessions, solving the statelessness problem that limits agent effectiveness across conversations.

What ByteRover CLI Does

  • Captures and compresses agent session context automatically
  • Injects relevant historical context into new coding sessions
  • Provides a knowledge management interface for reviewing stored memories
  • Supports multiple coding agents through a unified memory protocol
  • Enables context sharing between different agent types and models

Architecture Overview

ByteRover runs as a TypeScript CLI process alongside the coding agent. It hooks into session start and end events, capturing tool calls, code changes, and conversation context. A compression pipeline powered by LLM summarization reduces raw session logs into structured memory entries stored in a local database. At session start, a retrieval system finds and injects relevant memories based on the current project and task.

Self-Hosting & Configuration

  • Install globally via npm and run brv init in your project directory
  • Configure which coding agents to attach to (Claude Code, Codex, etc.)
  • Set memory retention policies (days, token budget, relevance threshold)
  • Choose the compression model (local or API-based LLM)
  • Export and import memory stores for team sharing

Key Features

  • Automatic session capture without manual bookmarking
  • AI-powered compression that distills sessions to key learnings
  • Relevance-based retrieval for context injection at session start
  • Cross-agent memory sharing (memories from Claude Code available in Codex)
  • Local-first storage with optional team sync

Comparison with Similar Tools

  • Mem0 — general AI memory platform; ByteRover is coding-agent-specific
  • Claude Code CLAUDE.md — static project context; ByteRover is dynamic session memory
  • ECC — harness optimization; ByteRover focuses specifically on memory persistence
  • OpenViking — context database for agents; ByteRover is a lightweight CLI layer

FAQ

Q: Does ByteRover send my code to external servers? A: Memory compression can use a local LLM. API-based compression is optional and configurable.

Q: How much storage does the memory layer use? A: Compressed memories are small. A typical project accumulates a few megabytes over months of sessions.

Q: Can I share memories with my team? A: Yes. Memory stores can be exported and imported, or synced through shared file systems.

Q: Does it slow down agent startup? A: Memory retrieval adds a few hundred milliseconds at session start. The context injection happens before the first prompt.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产