---
title: "Improve your cache hit rate — PromptConduit"
description: Reuse context across turns instead of re-pasting it. Cached reads cost a tenth of normal input or less, depending on the model.
image: "https://promptconduit.dev/og-image.png"
---

<!-- Markdown copy of https://promptconduit.dev/coaching/improve-cache-hit-rate. Index of every page: https://promptconduit.dev/llms.txt -->

# Improve your cache hit rate

Reuse context across turns instead of re-pasting it. Cached reads cost a tenth of normal input or less, depending on the model.

Updated October 8, 2026 · [Scott Havird](https://promptconduit.dev/about) · 3 min read

A **cache hit** is when the model reuses a prompt prefix it has already processed instead of reprocessing it as fresh input. Anthropic bills cached reads at a fraction of the base input price: 0.1× on most models, and lower on some newer ones.

## When PromptConduit flags this

PromptConduit computes **cache hit rate** from the token counts reported for each request:

```
cache hit rate = cache_read / (cache_read + cache_write + input)
```

The **“Improve your cache hit rate”** tip fires when the rate is **below 40%**. It needs token data, so it is evaluated only when the metric set includes a cache hit rate. Today that is the signed-in web Trends view (at least 5 prompts in the period). The editor extension’s cost panel computes the same rate per session and shows its own “Reuse context to hit the prompt cache” tip when the rate is below 40% on more than 20,000 input-side tokens and uncached input makes up at least half the cost (or the session’s model is unpriced).

## Why it matters

Each request to the model resends the full context: system prompt, tool definitions, project instructions, and every prior message and tool result. Prompt caching lets the API skip reprocessing the part of that request that matches a prefix it recently saw. Matching is exact and prefix-based. A change early in the request recomputes everything after it.

That has two effects:

-   **Cost.** A cache read is billed well below fresh input. A cache write costs *more* than base input (1.25× for the 5-minute cache, 2× for the 1-hour cache), so a session that keeps rewriting its cache pays a premium for nothing.
-   **Latency.** A turn that misses the cache has to reprocess the whole context, so it is noticeably slower.

A low rate usually means one of three things: sessions are short and keep restarting cold, something mid-session keeps changing the prefix, or there are long idle gaps that let the cache expire.

## What to do

**Keep one session per task.** Claude Code caches automatically. Starting a new session for every small step throws the warm cache away. Use `claude --continue` to resume the most recent session in a directory instead of starting fresh.

**Settle model and effort at the start.** Each model has its own cache, so switching with `/model` makes the next request read the whole history uncached. On most models, changing effort level does the same. Anthropic’s tip: pick both at the top of the session.

**Leave MCP and plugin changes for natural breaks.** When MCP tools are loaded upfront rather than deferred, connecting a server invalidates the cache. Tool definitions sit at the front of the prompt, so changing them invalidates everything after. Settling on the [servers you actually use](https://promptconduit.dev/coaching/right-size-mcp-servers) means fewer of these changes in the first place.

**Compact at boundaries, not mid-task.** Compaction replaces the history with a summary, which by design invalidates the conversation layer. Run `/compact` between tasks instead of letting auto-compaction trigger in the middle of one. If you want to abandon a path, `/rewind` truncates back to a prefix that is already cached. Use `/clear` when switching to unrelated work.

**Don’t re-paste files.** Point at a path or use `@file` once. Pasting the same large file again adds new uncached content.

**Watch idle gaps.** The cache expires after a period of inactivity: five minutes by default on API keys, one hour for the main conversation on a Claude subscription within plan usage. The `promptCacheTtl` setting lets you choose `5m` or `1h`. The 1-hour cache costs more to write, so it only pays off if you actually come back within the hour.

**Keep heavy reading out of the main session.** Delegate broad exploration to [subagents](https://promptconduit.dev/coaching/delegate-with-subagents) so the bulk of file reads never enters the context you keep resending.

## How to check it worked

Run `promptconduit cost` in the session. The `Signals:` line prints `cache-hit N%` using the same formula. The editor extension’s status bar and cost breakdown show it live, and the web Trends view shows it over 7, 30, or 90 days. In Claude Code itself, `/usage` shows a `Prompt cache (main)` line with the share of input served from cache, misses, and the likely cause of the last miss, on recent versions.

For a fuller walkthrough of the token fields and where they come from, see [track Claude Code token usage and cost](https://promptconduit.dev/blog/track-claude-code-token-usage-and-cost). For Cursor, see [Cursor AI spend by repo and model](https://promptconduit.dev/blog/cursor-ai-spend-by-repo-and-model). Extension setup is in [/docs/editor-extension](https://promptconduit.dev/docs/editor-extension).

## Frequently asked questions

### How does PromptConduit calculate cache hit rate?

Cache-read tokens divided by the sum of cache-read, cache-write, and fresh input tokens. Output tokens are not part of the calculation.

### What cache hit rate triggers the coaching tip?

Below 40%. The tip appears whenever token data is available for the metrics being coached and the rate is under that threshold.

### How much cheaper are cache reads than fresh input?

Anthropic bills cache reads at a fraction of the base input price: 0.1 times on most models, and lower on some newer models. Cache writes cost more than base input (1.25 times for the 5-minute cache, 2 times for the 1-hour cache).

### What breaks the prompt cache in Claude Code?

Anthropic's docs list switching models, changing effort level on most models, turning on fast mode, connecting or removing MCP servers when tools are loaded upfront, enabling or disabling some plugins, denying an entire tool, compacting the conversation, accumulating many images, and upgrading Claude Code.

Get this coaching on your own sessions

The free PromptConduit CLI and editor extension compute coaching insights like this one from your own Claude Code and Cursor sessions, fully offline.

`curl -fsSL https://promptconduit.dev/install | bash`

[Quick start →](https://promptconduit.dev/docs/quick-start) [Teams: free up to 3, Team $99/month flat →](https://promptconduit.dev/pricing)

## Related

-   [How to Check Claude Code Token Usage and Cost](https://promptconduit.dev/blog/track-claude-code-token-usage-and-cost)
    
    How to see and check Claude Code token usage, plan limits, and session cost with /usage (/cost, /stats), a status line, /context, ccusage, the Console, and PromptConduit.
    
-   [What a Month of Claude Code Actually Costs: $3,435 in 30 Days](https://promptconduit.dev/blog/what-a-month-of-claude-code-costs)
    
    A real 30-day breakdown of one developer's Claude Code usage at API list prices: $3,435 across 42,861 requests, with half of it spent by subagents, and where the rest went.
    
-   [Batch your tool calls](https://promptconduit.dev/coaching/batch-tool-calls)
    
    Grouping independent reads and edits cuts round-trips and output tokens.
    

[← All guides](https://promptconduit.dev/coaching)

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "@id": "https://promptconduit.dev/#software",
  "name": "PromptConduit",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "macOS, Linux, Windows",
  "description": "PromptConduit shows what AI coding costs per developer, repo, and pull request across Claude Code and Cursor. An open-source CLI records every session to a local JSONL file first, with git context and exact cost computed on your machine. Teams sync to see spend across members, models, repos, and clients, with budgets and alerts.",
  "url": "https://promptconduit.dev",
  "installUrl": "https://promptconduit.dev/docs/installation",
  "softwareHelp": {
    "@type": "CreativeWork",
    "url": "https://promptconduit.dev/docs"
  },
  "releaseNotes": "https://promptconduit.dev/changelog",
  "license": "https://opensource.org/licenses/MIT",
  "isAccessibleForFree": true,
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "offers": [
    {
      "@type": "Offer",
      "name": "Free",
      "description": "The full CLI on your machine, and a team of up to 3.",
      "price": "0",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 3,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Team",
      "description": "Up to 15 members. One flat price, no seat math.",
      "price": "99",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "99",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 15,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Growth",
      "description": "Up to 50 members, for teams and agencies running AI across many repos.",
      "price": "249",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "249",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 50,
        "unitText": "members"
      }
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://promptconduit.dev/#organization",
  "name": "PromptConduit",
  "url": "https://promptconduit.dev",
  "logo": "https://promptconduit.dev/favicon.svg",
  "email": "hello@promptconduit.dev",
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "hello@promptconduit.dev",
    "url": "https://promptconduit.dev/about"
  },
  "sameAs": [
    "https://github.com/promptconduit/cli",
    "https://github.com/promptconduit/editor-extension",
    "https://twitter.com/promptconduit"
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Improve your cache hit rate",
  "description": "Reuse context across turns instead of re-pasting it. Cached reads cost a tenth of normal input or less, depending on the model.",
  "author": {
    "@type": "Person",
    "@id": "https://promptconduit.dev/about#person",
    "name": "Scott Havird",
    "url": "https://promptconduit.dev/about",
    "sameAs": [
      "https://scotthavird.com",
      "https://github.com/scotthavird"
    ],
    "worksFor": {
      "@id": "https://promptconduit.dev/#organization"
    }
  },
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "datePublished": "2026-06-29",
  "dateModified": "2026-10-08",
  "mainEntityOfPage": "https://promptconduit.dev/coaching/improve-cache-hit-rate",
  "image": "https://promptconduit.dev/og-image.png",
  "keywords": "prompt caching, tokens, cost, agent skills"
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://promptconduit.dev/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Coaching guides",
      "item": "https://promptconduit.dev/coaching"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "Improve your cache hit rate",
      "item": "https://promptconduit.dev/coaching/improve-cache-hit-rate"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How does PromptConduit calculate cache hit rate?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Cache-read tokens divided by the sum of cache-read, cache-write, and fresh input tokens. Output tokens are not part of the calculation."
      }
    },
    {
      "@type": "Question",
      "name": "What cache hit rate triggers the coaching tip?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Below 40%. The tip appears whenever token data is available for the metrics being coached and the rate is under that threshold."
      }
    },
    {
      "@type": "Question",
      "name": "How much cheaper are cache reads than fresh input?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Anthropic bills cache reads at a fraction of the base input price: 0.1 times on most models, and lower on some newer models. Cache writes cost more than base input (1.25 times for the 5-minute cache, 2 times for the 1-hour cache)."
      }
    },
    {
      "@type": "Question",
      "name": "What breaks the prompt cache in Claude Code?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Anthropic's docs list switching models, changing effort level on most models, turning on fast mode, connecting or removing MCP servers when tools are loaded upfront, enabling or disabling some plugins, denying an entire tool, compacting the conversation, accumulating many images, and upgrading Claude Code."
      }
    }
  ]
}
```
