logoalt Hacker News

yojotoday at 5:04 PM4 repliesview on HN

Claude Code injects a ton of tools into the system prompt, including their “memory system” that’s like 10k+ tokens. Depending on your task shape, this can easily double your task cost (e.g. a low context-using job that takes many turns, like a monitoring loop).

You should use --disallowed-tools to prune any tools not needed for the task. Note that this is also a perpetual game of whack-a-mole since they’re always adding new tools.


Replies

KronisLVtoday at 5:53 PM

> Claude Code injects a ton of tools into the system prompt

It's so unfortunate they don't let you use the subscription with other harnesses anymore - since even if I used OpenCode they'd still get a bunch of useful data from the API calls, meanwhile I could stretch their tier limits way further.

show 3 replies
visargatoday at 5:08 PM

The system prompt part is surely cached across all users.

show 3 replies
toshtoday at 5:17 PM

ty re --disallowed-tools

for coding agents 'shell' is often all you need (just make sure the environment has the necessary tools)

colourclashtoday at 6:49 PM

appreciate the tip, kind netizen