<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: curatedmcp</title><link>https://news.ycombinator.com/user?id=curatedmcp</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 19 Oct 2026 02:58:54 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=curatedmcp" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: What 482 hospitals charge vs. what insurers pay, from their own files]]></title><description><![CDATA[
<p>US hospitals must publish a machine-readable file of their prices, including the rate they've negotiated with each insurer. The files are huge (one is 36GB), in four formats and often messy, so almost nobody reads them.<p>I built a crawler that finds each hospital's official file and pulls out 29 common services. Across 482 hospitals: a moderate ER visit is listed at a median $1,285 while insurers pay $288; a metabolic panel is listed at $207 while insurers pay $11.46.<p>To keep it honest: only per-service fee-schedule dollar rates count (no case rates or percentages, which cover a whole visit), each figure needs at least 3 insurers, and every value is checked against Medicare reference rates. Surgery is excluded because insurer surgery rates cover the whole operation while the list price is one line item. Each hospital page links its source file. Feedback on the methodology is very welcome.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=49926185">https://news.ycombinator.com/item?id=49926185</a></p>
<p>Points: 32</p>
<p># Comments: 15</p>
]]></description><pubDate>Thu, 01 Oct 2026 19:42:09 +0000</pubDate><link>https://www.billmender.com/hospital-prices</link><dc:creator>curatedmcp</dc:creator><comments>https://news.ycombinator.com/item?id=49926185</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49926185</guid></item><item><title><![CDATA[New comment by curatedmcp in "Show HN: TokenShield – Local proxy that dedupes Claude Code conversation traffic"]]></title><description><![CDATA[
<p>I run Claude Code most days and my Anthropic bill kept creeping up
without me understanding which conversations were the expensive ones.
A 25-turn agentic session re-reads `auth.ts` five times and re-runs
`gh pr list` three times — every duplicate ships as a fresh
tool_result content block to the model, every time. The model already
saw identical bytes two turns ago, but it doesn't matter; you pay
for them again.<p>TokenShield is a small Node 22 proxy that sits in front of
api.anthropic.com. Set `ANTHROPIC_BASE_URL=<a href="http://127.0.0.1:7777" rel="nofollow">http://127.0.0.1:7777</a>` and
Claude Code (or Cursor, Windsurf, Zed, Aider — anything that uses the
Anthropic SDK) routes through it. The proxy hashes every tool_result
content block per-conversation; subsequent occurrences of the same
hash within the same conversation are replaced with a deterministic
stub:<p><pre><code>  { "type": "tool_result",
    "tool_use_id": "...",
    "content": "[tokenshield: identical content seen at message 2, sha:1f6063fe]" }
</code></pre>
The deterministic part matters — same input always produces the same
output, so Anthropic's prompt_cache (cache_control) stays valid.<p>The accounting side was the bug-hunt I didn't expect. First version
captured 0 tokens on successful responses. Turned out Anthropic
returns Content-Encoding: gzip and I was running JSON.parse on the
compressed buffer. The silent try/catch swallowed the error and I
shipped "200 status, $0.00 spent" for a week before noticing. Fix:
`accept-encoding: identity` on upstream — bandwidth on localhost
doesn't matter and reliable measurement does.<p>Real numbers from my own usage yesterday: one Opus-4 turn paid
$0.1719, saved $0.0747 — 30.3% on that turn. Bench numbers across
three recorded fixtures (light Q&A, medium coding, heavy 25-turn
agentic): 0%, 27.7%, 62.1%. The light case correctly does nothing
— there's nothing to dedup in a 5-turn conversation with no tool use.<p>What's deliberately not here:<p>- It only helps API-billed clients. Claude Desktop and claude.ai web
  are flat-subscription / hardcoded endpoint — no metered bill to
  compress.
- OpenAI / Gemini are on a waitlist. The provider adapter interface
  is in the code, but I'd rather ship one provider correctly than
  three half-baked.
- Compression is conservative (>= 256 byte payloads, content-hash
  keyed). It does not touch streaming SSE bytes — passthrough is
  byte-faithful so the prompt cache stays valid.<p>The piece I'd most appreciate feedback on: I'm staring at
`response-cache` as the next processor (LRU+TTL on (model,
system_prompt_hash, last_user_msg_hash)), but the correctness story
scares me — `temperature > 0` and tool-using conversations both
make caching risky. Would love thoughts from anyone who has done
semantic caching on LLM responses about where the landmines are.<p>`npm i -g @curatedmcp/tokenshield` to try it. MIT, self-hosted, your
API key never leaves the machine, telemetry is opt-in and
aggregate-only.<p>More at: <a href="https://curatedmcp.com/tokenshield" rel="nofollow">https://curatedmcp.com/tokenshield</a></p>
]]></description><pubDate>Tue, 19 May 2026 18:34:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=48197371</link><dc:creator>curatedmcp</dc:creator><comments>https://news.ycombinator.com/item?id=48197371</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48197371</guid></item><item><title><![CDATA[Show HN: TokenShield – Local proxy that dedupes Claude Code conversation traffic]]></title><description><![CDATA[
<p>I built a local proxy that dedupes Claude Code traffic. TokenShield — cuts your Claude Code bill 40-70%</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48197361">https://news.ycombinator.com/item?id=48197361</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Tue, 19 May 2026 18:34:03 +0000</pubDate><link>https://www.npmjs.com/package/@curatedmcp/tokenshield</link><dc:creator>curatedmcp</dc:creator><comments>https://news.ycombinator.com/item?id=48197361</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48197361</guid></item><item><title><![CDATA[New comment by curatedmcp in "Show HN: TokenShield – cut your Claude Code bill 40-70%"]]></title><description><![CDATA[
<p>awesome feature.</p>
]]></description><pubDate>Mon, 18 May 2026 15:10:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=48180948</link><dc:creator>curatedmcp</dc:creator><comments>https://news.ycombinator.com/item?id=48180948</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48180948</guid></item><item><title><![CDATA[Show HN: TokenShield – cut your Claude Code bill 40-70%]]></title><description><![CDATA[
<p>A local proxy that dedupes repeated context, caches tool results, summarizes long conversations, and streams a live savings counter. Your ANTHROPIC_API_KEY never leaves your machine.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48180942">https://news.ycombinator.com/item?id=48180942</a></p>
<p>Points: 3</p>
<p># Comments: 3</p>
]]></description><pubDate>Mon, 18 May 2026 15:10:10 +0000</pubDate><link>https://www.curatedmcp.com/tokenshield</link><dc:creator>curatedmcp</dc:creator><comments>https://news.ycombinator.com/item?id=48180942</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48180942</guid></item></channel></rss>