billion-context
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 是
- 近月下载
- 303.3 万
- 最近推送
- 今天更新
项目说明
From README
billion-context English 中文 Context-compression plugin — billion-context is all you need.small context windows (100K is enough) · 5× fewer tokens · month-long single sessions (billions of tokens) · high compression quality npm install -g billion-context --prefix= /.
local --- Cache health at a glance: a healthy session keeps a 95–97% prefix-cache hit rate — compression itself costs ≤2%.Sustained lower?
Check attribution with /acp or /acp-cache (see FAQ); usual causes, in order: upstream cache TTL expiry · model switch · a bili bug (please report) · other/unknown.
Community QQ Group: 1056132097 (full) 1108730198 (full) 1129868472 (open) --- 📄 Paper / Preprint - Model-Driven Incremental Hierarchical Compression: Training-Free Multi-Generational Context Management for Long-Lived Coding Agents (English, v0.
2) 📝 The paper itself is open-sourced under the MIT License as part of the codebase
Original description
A context-compression plugin for month-long single sessions (billions of tokens) ,small context windows (a 100K context is enough) and token savings (5x fewer tokens) .上下文压缩插件,月级长会话会话, 兼顾小窗口(100k上下文足矣)省token(省5倍token) . billion-context is all you need
安装方式
npm 包安装 · 需要额外配置密钥
npm install -g billion-context --prefix=~/.local安装命令包含风险形态
- 全局安装,会改动系统级依赖
全局安装会修改系统级依赖;远程脚本执行等于把执行权交给仓库作者。装前请通读命令。
安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 执行命令
- 写入文件
- 读取文件
- 访问网络
- 读取环境变量
- 调用模型
发现 1 项需要留意的行为
- 直接用 IP 地址 1.3.101.112 联网,绕过域名与证书校验
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 1 天仍在推送;README 给出了可直接复制的安装命令;运行前需要准备 API Key 或环境变量;4322 stars,社区使用面较广。
- 维护活跃
- 100
- 实用度
- 62
- 生态热度
- 100
- 上手便捷
- 68
- 信号质量
- 96
- 数据置信度
- 100%