@@ -333,42 +333,6 @@ func conversationPieces(entries []TranscriptEntry, skillBodyNames map[string]str
333333 }
334334 add ("file_attachments" , ext , kindUsage , float64 (tokEstimate (w .File .Content )), false )
335335 }
336- case "deferred_tools_delta" :
337- // The deferred catalog mixes built-in tool names with MCP
338- // ones — split so each lands in its lane (built-in names are
339- // part of Claude Code's own overhead, not MCP rent).
340- lines := e .Attachment .AddedLines
341- names := e .Attachment .AddedNames
342- if len (lines ) != len (names ) {
343- lines = names // fall back to names-only sizing
344- }
345- var builtinPayload , mcpPayload []string
346- for i , name := range names {
347- line := name
348- if i < len (lines ) {
349- line = lines [i ]
350- }
351- if strings .HasPrefix (name , "mcp__" ) {
352- mcpPayload = append (mcpPayload , line )
353- } else {
354- builtinPayload = append (builtinPayload , line )
355- }
356- }
357- add ("static_overhead" , "deferred_tool_names" , kindDefinition ,
358- float64 (measuredOrEstimate (strings .Join (builtinPayload , "\n " ), "deferred_tools_payload" )), false )
359- add ("mcp_servers" , "catalog_deltas" , kindDefinition ,
360- float64 (measuredOrEstimate (strings .Join (mcpPayload , "\n " ), "deferred_tools_payload" )), false )
361- case "mcp_instructions_delta" :
362- // Per-server when the parallel arrays line up.
363- if len (e .Attachment .AddedNames ) == len (e .Attachment .AddedBlocks ) && len (e .Attachment .AddedNames ) > 0 {
364- for i , name := range e .Attachment .AddedNames {
365- add ("mcp_servers" , name , kindDefinition ,
366- float64 (measuredOrEstimate (e .Attachment .AddedBlocks [i ], "prose" )), false )
367- }
368- } else {
369- add ("mcp_servers" , "instructions" , kindDefinition ,
370- float64 (tokEstimateAs (strings .Join (e .Attachment .AddedBlocks , "\n " ), "prose" )), false )
371- }
372336 }
373337 case "assistant" :
374338 if e .Message == nil || len (e .Message .Content ) == 0 {
0 commit comments