frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Tell HN: Claude-code prompt-cache workaround/fix

1•g4cg54g54•1h ago
TLDR: for now launch using `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 claude "Hello"`

(Note: setting includeGitInstructions=false in settings.json is an option to and likely the better thing anyhow since that git-status will always be noise....)

Currently the whole query is build from 3 cache-able blocks:

  {tools | claude-version}, 
  {system-prompt | ~/.claude/claude.md | git-status},
  {skills | ./claude.md | user-prompt}
the env-var will allow the system-prompt line go get cached again https://github.com/anthropics/claude-code/issues/47107

the "Hello" allows skills & ./claude.md to get cached again https://github.com/anthropics/claude-code/issues/47098

otherwise you will only ever hit on the tools-block, and your first follow-up-question

Before:

  claude
  > alive?
  > -> Yes, alive and ready. What do you need? 
  > /exit
  # (11k cache read, 6k cache write)

  claude
  > are you here?
  > -> Yes, I'm here. What can I help you with? 
  > /exit
  # (11k cache read, 6k cache write)
  ^^ nothing changed, still cashed 6k write tokens

  claude
  > alive?
  > -> Yes, I'm here. What can I help you with?  
  > /exit
  # (18k cache read)
  ^^ the "exact same question" DOES hit the cache
  
  git commit --allow-empty -m "Dummy"
  claude
  > alive?
  > -> Yes, alive and well. What do you need?
  > /exit
  # (11k cache read, 6k cache write)
  ^^ same question, but now git busts the cache....


After:

  $ CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 claude "Hello"
      Claude Code v2.1.104
   Hello
  ● Hello! How can I help you today?
   Alive?
  ● Yes, alive and ready to help! What are you working on?
  # (10k cache read, 6k cache write)
  
  
  
  $ CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 claude "Hello"
      Claude Code v2.1.104
   Hello
  ● Hello! How can I help you today?
   are you alive?
  ● I'm an AI, so not alive in the biological sense — but I'm here and ready to help. What can I do for you?
  # (16k cache read, 20 cache write)
  
  
  
  $ git commit -m "just a dummy" --allow-empty
  [main 642ce16] just a dummy
  
  
  $ CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 claude "Hello"
      Claude Code v2.1.104
   Hello
  ● Hello! How can I help you today?
   is this alive?
  ● Yes, I'm alive and running! Is there something I can help you with?
  # (16k cache read, 18 cache write)




Note: This does not address the 5 minutes vs 1 hour discussions from yesterday - but rather that whole discussion is pointless unless these root-causes are fixed....

- https://news.ycombinator.com/item?id=47739260 (Pro Max 5x quota exhausted in 1.5 hours despite moderate usage)

- https://news.ycombinator.com/item?id=47736476 (Anthropic downgraded cache TTL on March 6th)

Show HN: Bad Apple (Oscilloscope-Like) – one stroke per frame

https://bad-apple-on-oscilloscope.pages.dev/
1•araniwa•1m ago•1 comments

The Paper Computer

https://jsomers.net/blog/the-paper-computer
1•jsomers•5m ago•0 comments

No Degree, $155K Pay: Trump's FAA Is Recruiting Gamers as Air Traffic Controller

https://www.ibtimes.co.uk/faa-recruits-gamers-air-traffic-control-1791239
2•onemoresoop•10m ago•0 comments

Altman Shooters Are Paid Actors

https://twitter.com/boneGPT/status/2043550790095134846
2•fakeshoot•15m ago•0 comments

Ask HN: Insta, X, Reddit or HN?

1•wasimsk•15m ago•0 comments

What web browser do you use?

1•nicp•16m ago•2 comments

Reconciling Two UC Berkeleys – The Soapbox

https://www.dailycal.org/opinion/the_soapbox/reconciling-two-uc-berkeleys/article_0fe38fc6-1399-4...
2•paulpauper•18m ago•1 comments

My Dialogue with Jonathan Zittrain

https://marginalrevolution.com/marginalrevolution/2026/04/my-dialogue-with-jonathan-zittrain.html
2•paulpauper•20m ago•0 comments

Your Single Use iPhone [video]

https://www.youtube.com/watch?v=NG-lLt5X3Rs
3•Klaster_1•27m ago•0 comments

A unified Go SDK for working with large language models

https://github.com/aarock1234/ai
1•abdelsabbah•27m ago•1 comments

Lightweight internet radio management tool

https://github.com/tchovi/AirBoneRadio
1•Indigenism•30m ago•1 comments

Code Review Is the New Bottleneck for Engineering Teams

https://newsletter.eng-leadership.com/p/code-review-is-the-new-bottleneck
1•gpi•32m ago•0 comments

End of the Orban Era

https://www.bloomberg.com/news/articles/2026-04-12/end-of-the-orban-era-the-party-is-just-startin...
2•dlx•33m ago•1 comments

Self-Improving AI Agent

https://github.com/NousResearch/hermes-agent
1•granto•33m ago•0 comments

Jyf

1•ramzidddinq•35m ago•0 comments

Show HN: Cryptr a shell utility for encrypting and decrypting files with OpenSSL

https://github.com/nodesocket/cryptr
1•nodesocket•36m ago•0 comments

A Canonical Generalization of OBDD

https://arxiv.org/abs/2604.05537
1•luu•36m ago•0 comments

The Expensive Anxiety of AI

https://aarils.com/personal/the-expensive-anxiety-of-ai
2•bridgettegraham•37m ago•0 comments

How are you reducing LLM token costs for async workflows?

https://github.com/parallem-ai/parallem
1•alexliu79•48m ago•1 comments

Balsamiq AI

https://balsamiq.com/product/ai/
1•ilt•52m ago•0 comments

StackTrove: Encrypted local registry for all your side projects

https://github.com/sennaBruno/stacktrove
1•essieli•55m ago•0 comments

Justin Sun Accuses Trump's WLFI Cryptocurrency of Hiding Wallet Freeze Function

https://beincrypto.com/justin-sun-slams-world-liberty-financials-blacklist-feature/
3•jrflowers•1h ago•0 comments

'The gravest crime against humanity': What does the UN vote on slavery mean?

https://www.bbc.com/news/articles/c0rxqng5pyno
3•gpi•1h ago•0 comments

IBM AP-101 general-purpose computer [pdf]

https://gandalfddi.z19.web.core.windows.net/Shuttle/IBM%20AP-101S%20General%20Purpose%20Computer%...
2•__patchbit__•1h ago•0 comments

Your Harness, Your Memory

https://blog.langchain.com/your-harness-your-memory/
3•tanelpoder•1h ago•0 comments

Show HN: Tokemon – monitor token use with out refreshing 27 browser tabs

https://github.com/rvantonder/tokemon
1•rvttt•1h ago•0 comments

Overcoming Informational Risk

https://bencornia.com/blog/overcoming-informational-risk
1•bencornia•1h ago•0 comments

Best AI coding interview assistant in 2026

https://www.linkjob.ai/interview-questions/ai-coding-interview-assistant/
1•Silviaaa•1h ago•1 comments

Kindle users in uproar re: latest update, old devices now unusable: 'Fuck You '

https://nypost.com/2026/04/09/tech/kindle-to-cease-support-for-old-devices-causing-user-uproar/
7•1vuio0pswjnm7•1h ago•1 comments

Going Beyond World Models and VLAs

https://generalistai.com/blog/apr-07-2026-beyond-world-models
1•NeoInHacker•1h ago•1 comments