claude-code - 💡(How to fix) Fix [Bug] System-injected tools and schemas consume excessive tokens without user control [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52942Fetched 2026-04-25 06:16:36
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Root Cause

Bug Description "What I can't fix: The deferred tools list, skills list, and tool schemas — all system-injected by the harness before my context even loads. Those are the biggest token cost and they're outside project config." I'm absolutely ripping thru tokens because you're forcing me to on every turn. These need to either be accessed in a different way or not subject to customer's tokens. I have gone thru nearly a dozen sessions now reducing my overhead to the lowest possible, but none of it even matters because I can't pull any levers that will actually move the needle any longer. I'm out of cuts to make.

RAW_BUFFERClick to expand / collapse
<img width="770" height="439" alt="Image" src="https://github.com/user-attachments/assets/b8eba2b5-cebc-4759-b204-d3ec51f28fd9" />

Bug Description "What I can't fix: The deferred tools list, skills list, and tool schemas — all system-injected by the harness before my context even loads. Those are the biggest token cost and they're outside project config." I'm absolutely ripping thru tokens because you're forcing me to on every turn. These need to either be accessed in a different way or not subject to customer's tokens. I have gone thru nearly a dozen sessions now reducing my overhead to the lowest possible, but none of it even matters because I can't pull any levers that will actually move the needle any longer. I'm out of cuts to make.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.118
  • Feedback ID: ff0f289c-d895-41fc-88a6-f19e0a4bba28

extent analysis

TL;DR

The issue may be resolved by optimizing or reconfiguring the system-injected tools list, skills list, and tool schemas to reduce token consumption.

Guidance

  • Investigate alternative access methods for the deferred tools list, skills list, and tool schemas that do not rely on customer tokens.
  • Review the project configuration to determine if there are any settings that can be adjusted to reduce the token cost of these system-injected components.
  • Consider reaching out to the harness developers or maintainers to discuss potential optimizations or changes that can be made to reduce token consumption.
  • Evaluate the possibility of caching or pre-loading the tools list, skills list, and tool schemas to minimize the number of requests and subsequent token usage.

Notes

The provided information does not include specific details about the harness or the token system, which may be necessary to develop a comprehensive solution. Further investigation and collaboration with the harness developers or maintainers may be required to resolve the issue.

Recommendation

Apply workaround: The issue is likely related to the token consumption of system-injected components, and optimizing or reconfiguring these components may provide a temporary solution until a more permanent fix can be implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] System-injected tools and schemas consume excessive tokens without user control [2 comments, 2 participants]