The Jerusalem PostPro-Israel Democrat Haley Stevens endorses Republican Rogers in Michigan US Senate raceTaipei TimesBOOKMAN BILINGUAL 雙語書林: Chinglish or Natural English? 中式英語或道地英語?Daily MaverickCONGRESS IN THE BALANCE: A blue tsunami, a tide, or chaos as usual — the US midterm election한겨레"알래스카 상원 선거 결과 확정 보류해달라" 미 법무부의 소송 기각돼ZDF heuteAktuelle Pressemitteilungen des ZDFDigital SpyBig Brother fans say "it's too late" as Yasmin and Omar turn on RochelleThe Sydney Morning HeraldMartha Stewart responds to Halloween costume uproar after dressing as homeless personCBS NewsJet from Texas crashes near homes in Palm Beach, Florida, killing 9 on boardRFIMidterms 2026: en Californie, la «Proposition 40» pour taxer les milliardaires divise les électeursSportstarIndia A vs New Zealand A LIVE Score, 2nd unofficial Test Day 3: Siraj gets Boyle early, Foxcroft moves closer to hundredVariety‘Between Us’ Director Matsumura Shingo on Finding Connection After Disaster and Making Films on Japanese BudgetsANSAF1: Antonelli fa la storia in Messico, è campione del mondo 73 anni dopo Ascari
The Daily Newsstand · Free, Always
Sunday, November 1, 2026

Claude Codeは各バックグラウンドエージェントのトランスクリプトを定期的にモデルに送信していることが発覚

Translate

Claude Codeの「エージェントサマリー」機能はバックグラウンドエージェントのステータスを約30秒ごとに更新するため、トランスクリプト(記録したデータ)全体をモデルに再送信しています。トランスクリプト送信によりトークンの約15~20%が消費されている計算になります。

Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT
https://gist.github.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce

Claude Code regularly sends each background agent’s transcript to its model | Hacker News
https://news.ycombinator.com/item?id=50284255

AI用ツールの開発元であるFlamerix AIがOpenTelemetryエクスポートの分析を行ったところ、エージェントサマリー機能がClaude Code全体のトークン支出の約15~20%を占め、APIリクエストの約5件に1件がエージェントサマリー機能のために送信されていることが明らかになりました。特にOpusモデルを使用した場合にコストの増大が顕著となり、18~26%のトークン消費が確認されています。

具体的には、Claude Codeは約30秒ごとにすべてのバックグラウンドエージェントに対して、エージェントの会話記録全体をエージェント自身のモデルに送信し「あなたの直近の行動を3~5語で説明してください」と要求します。各エージェントから得た回答はエージェントパネルのステータス行を更新するためにのみ使用され、モデルや会話に情報は提供されません。エージェントサマリー機能は2026年8月のClaude Codeバージョン2.1.232以降デフォルトで有効化されており、設定による無効化は不可能とのこと。

エージェントサマリーの無効化ができないという問題に対して、Flamerix AIは「no-agent-summary.js」というBunのプリロードスクリプトを開発することで解決策を提示しています。「no-agent-summary.js」は70行程度のJavaScriptスクリプトであり、グローバル関数setTimeout()をラップして「[AgentSummary] Timer fired」のような特定のアンカーを含むコールバックを検出した場合にタイマーの起動を阻止します。つまり、エージェントサマリー機能に関するタイマーのみを無効化し、それ以外のタイマー処理には影響を与えないという仕組みです。Claude Codeのバイナリ自体を変更することはなく、Bunの「--preload」オプションを使用してロードされるため、Claude Codeのアップデートによっても無効化されることはありません。

Flamerix AIによると「no-agent-summary.js」の影響及び注意点は以下の通りとなっています。

・目に見える効果:エージェントサマリー要求はゼロになりエージェントごとのパネルステータスが更新されなくなる
・オーバーヘッド:Function.prototype.toStringの呼び出しが各タイマーコールバックに対して行われるもののWeakMapでキャッシュされるため影響は軽微(約10msから約17msへ増加)
・OS互換性:Linux・macOS・Windowsで動作確認報告あり(ただしWindowsは限定的)
・アップデート時の注意:Claude Codeのアップデートでスクリプトのアンカーが変更されると機能しなくなるため、アップデート後には必ず検証手順を実行する必要あり

なお、ITベンチャー・Arrowheadsが運営するClaude Code研究所は上述のアンカーが変更された場合の問題に加え、環境変数「BUN_OPTIONS」を使用するためにマシン上のすべてのBunに読み込まれることなどを挙げ、「no-agent-summary.js」の使用は「勧めない」としています。

Claude Codeのサブエージェント、背景で動くと30秒ごとに要約?agent_summaryのトークン使用量を実測 | Claude Code研究所
https://www.claude-code-lab.com/blog/claude-code-subagent-agent-summary

また、OpusについてはリクエストのUser-Agentヘッダーに使用者のメールアドレスを含めてしまうという別の問題も報告されています。

While we're modding Claude Code, Anthropic includes your email in the system pro... | Hacker News
https://news.ycombinator.com/item?id=50285046

View the original on GIGAZINE →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.