AIFCC
記事一覧へ
claude-setup

Claude Codeセッション926件を監査した結果

Om Patel@om_patel5
1,893154
この人物はClaude Codeのセッション926件を監査し、トークンの無駄のほとんどが自分側にあると判明した。 みんなAnthropicに制限の責任を押しつけているが、彼は実際にデータを確認することにした。 858セッション、18,903ターン、33日間で推定1,619ドルの支出。 判明したこと: 1. あるデフォルト設定が1ターンあたり14,000トークンを消費していた Claude Codeはセッション開始時に、すべてのツールのフルJSONスキーマをコンテキストに読み込む。使うかどうかに関係なく。2万トークンのツール定義が最初からそこにある。 最もトークンを食う犯人はこれだった。設定を一つ変えることで、毎ターン数千トークンを節約できた。 多くの人が感じているコンテキストウィンドウの制限は、Anthropicの限界ではなく自分のセットアップによるものだった。
原文を表示 / Show original
THIS GUY AUDITED 926 CLAUDE CODE SESSIONS AND FOUND MOST OF THE TOKEN WASTE WAS ON HIS SIDE everyone is blaming anthropic for the limits, so he decided to actually look at the data 858 sessions, 18,903 turns, and $1,619 estimated spend across 33 days here's what he found: 1\ one default setting was burning 14,000 tokens per turn Claude Code loads the full JSON schema for every tool into context at session start. whether you use them or not. 20,000 tokens of tool definitions sitting there on every single turn. the fix: one line in your settings.json "ENABLE_TOOL_SEARCH": "true" context dropped from 45K to 20K instantly. across 858 sessions that one setting was wasting an estimated 264 million tokens 2\ cache expiry is the single biggest waste 54% of his turns came after a 5+ minute idle gap. every one of those turns re-processed the entire conversation at full price which caused a 10x cost jump you go grab coffee. come back 5 minutes later. type your next message. everything rebuilds from scratch. the context didn't change. you didn't change. the cache just expired. 12.3 million tokens wasted on idle gaps alone 3\ 42 skills loaded. 19 of them used twice or less across 858 sessions. every one of those skill schemas sat in context on every turn eating tokens for nothing. 4\ 1,122 redundant file reads where the same file was read 3+ times one session read the same file 33 times. he ALSO built a full token auditor dashboard that shows you exactly where your waste is coming from 19 charts, opens in your browser, free AND open source

AIFCC — AI Fluent CxO Club

読み書きそろばん、AI。経営者が AI を自分で動かせるようになるコミュニティ。

Claude Codeセッション926件を監査した結果 | AIFCC