跳到正文
Hacker News· NikZaal·· 3 小时前精选AI 评分83

开源脚本 no-agent-summary 关闭 Claude Code 消耗 15–20% token 的 agent 状态摘要

Claude Code burns ~15–20% of your tokens on a 3-word status line

AI 导读

一个名为 no-agent-summary.js 的 Bun preload 脚本可关闭 Claude Code 后台 agent 的状态行摘要功能,该功能每约 30 秒把整个 transcript 发给模型生成 3–5 词摘要,实测占 Claude Code 花费的 15–20%(约五分之一的 API 请求),其中 96% 花在 Opus 上。

推荐理由

原文给出实测数据和可复用的 Bun preload 方案,读者可据此关闭 Claude Code 后台 agent 的状态摘要请求以节省 token。

来源:Hacker News · gist.github.com