Contexere 在模型读取前重写工具输出
Contexere 是一款在编码代理读取工具输出之前进行重写的工具,可去除重复文件内容、构建进度噪声,并把输出中的令牌或密码替换为 [REDACTED]。它通过 init 和 doctor 命令接入 Claude Code、Codex CLI 等代理,被移除的内容仍保留在本机。
 ## Contexere ***您的 AI 代理, 在每个环境中都是相同的: 它的工作流程、 工具和访问都随它而来, 它的密钥也永远无法到达它。** 这就是它去的地方。 今天它收缩了响亮的工具输出, 折叠了一个代理已经读过的东西, 并重写了输出中的证书。* 什么都没有丢失。 </em> [联合国](<https://github.com/fajarhide/contexere/blob/main/README.md>) | [🇯🇵 日本語](<https://github.com/fajarhide/contexere/blob/main/i18n/README-ja.md>) | [🇨🇳 简体中文](<https://github.com/fajarhide/contexere/blob/main/i18n/README-zh.md>) | [🇸🇦 阿拉伯语](<https://github.com/fajarhide/contexere/blob/main/i18n/README-ar.md>) | [印度尼西亚](<https://github.com/fajarhide/contexere/blob/main/i18n/README-id.md>) | [蒂扬·维斯特(英语:Tiawng Viist)](<https://github.com/fajarhide/contexere/blob/main/i18n/README-vi.md>) | [🇰🇷 韩语](<https://github.com/fajarhide/contexere/blob/main/i18n/README-ko.md>) [](https://github.com/fajarhide/contexere/actions/workflows/ci.yml) [](https://github.com/fajarhide/contexere/releases) [](https://github.com/fajarhide/contexere/blob/main/LICENSE) ```bash brew install fajarhide/tap/contexere && contexere init ``` < 图片> ".  </图片> --- > OMNI现在是 **交接器**,拉丁文为"to weave together"和"context"的词根. 0.9.0删除了该词. `omni` 命令和其他旧名称;如果代理商仍然打电话 `omni`运行 `contexere init --<host>` 。您的数据移动到 `~/.contexere` 独自一人。 ## 何处去. 目标 : 将 Contexere 带到一个新的 VPS 或 笔记本电脑上, 您的代理商知道它的工作流程, 并且可以访问 MCP 服务器和 API 。 访问背后的密钥从未显示给代理商, 因此它们不会泄露。 围绕这个位置, 您为每个代理商设置过一次技能, 以及携带过代理商和机器的内存。 这部分正在路上 。今天的舰艇是第一部作品,下面描述的背景和标志层. ## 为什么 编码代理读取命令打印的所有文件: 进度栏、 层散列、 10 分钟前已经读取的文件。 每个字节都被计费, 并占用代理对实际工作的需求 。 Contexere 在模型读完之前, 拿出模型不需要的东西。 没有任何东西被删除 : 不管它移除了什么, 都留在你的机器上, 一个命令把它带回来 。 ## 特征 - 读取代理已经读取的文件: 发送一条带控点的行, 而不是再次发送文件 。 - 运行一个吵闹的构建或测试:保留结果和失败,放下进度噪声. - 在输出中打印一个符号或密码, 它重写: 替换为 `[REDACTED]` 在模特儿看见之前 - 失败命令: 以打印方式传递, 因此真实错误会到达代理。 失败命令打印的证书也会到达代理 。 - 读作JSON,YAML或CSV:留其字节为字节. - `contexere doctor` 检查每个特工的钩子会起火和修补 它每命令花费21 ms。 节省取决于您的代理机构的工作; 运行 `contexere stats` 方法与全数 [基准页](https://omni.weekndlabs.com/docs/develop/benchmarks). ## 安装 ```bash brew install fajarhide/tap/contexere ``` | 何处 | 命令 | |---|---| | macOS, Linux, WSL (英语). | `curl -fsSL omni.weekndlabs.com/install \| bash` | | 视窗( PowerShell ) | `irm omni.weekndlabs.com/install.ps1 \| iex` | 0.9.0 安装无 `omni` 命令。一个仍然需要钩子的特工 `contexere init --<host>` ([变了什么](https://omni.weekndlabs.com/docs/use/install.html#moving-off-the-omni-name)). 在克劳德密码内部 `/plugin marketplace add fajarhide/contexere` 那样吧 `/plugin install contexere@omni` 添加一个为您安装和检查的技能。 ## 使用量 ```bash contexere init # pick your agents: Claude Code, Codex, Cursor, VS Code and more contexere doctor # check it is wired, or `contexere doctor --fix` contexere stats # what Contexere saved on your own history ```  之后 `init`钩子靠自己运行,没有前缀。 ## 支助代理人 | 级别 | 探员 | |---|---| | **满** (在模型读取前重写工具输出) | Claude Code, Codex CLI, 双子座 CLI, OpenClaw, Hermes, Pi, Aider (通过 `cmd \| contexere`) | | **首发手** (缩短代理运行的时间) `contexere_run`) | 光标、 风浪 | | **仅限MCP** (记忆和回忆,加) `contexere_run`) | Cline, Roo, OpenCode, VS代码, Zed, 副驾驶, 反重力 | 代码只运行它信任的钩子: 之后 `contexere init --codex`开始 `codex` 一次并核准一次[#359](https://github.com/fajarhide/contexere/issues/359)). ## 文档 - [手动](https://omni.weekndlabs.com/docs) - [CHANGELOG . md (英语).](<https://github.com/fajarhide/contexere/blob/main/CHANGELOG.md>) ## 捐款 欢迎提出问题和拉动请求。 [CONTRIBUTING . md (英语).](<https://github.com/fajarhide/contexere/blob/main/CONTRIBUTING.md>). ## 警卫 不要打开一个公开的问题。 [私下报告](https://github.com/fajarhide/contexere/security/advisories/new); 细节 [SECURITY . md (英语).](<https://github.com/fajarhide/contexere/blob/main/SECURITY.md>). ## 许可证 [Apache 许可证 2.0](<https://github.com/fajarhide/contexere/blob/main/LICENSE>).
查看原始来源