Putting a single live timestamp or session UUID on line 1 of your system prompt invalidates prompt caching for every token below it.
Paste your system prompt, AGENTS.md, or tool prefix below (or load a sample preset). The auditor scans locally in your browser for dynamic cache-busters, calculates the exact cache-safe prefix percentage, and generates a reordered version with dynamic values moved to the end.
Nothing you paste ever leaves your browser or enters shared URLs.
Nothing pasted here leaves your browser or enters shared links.
Cache-safe prefix0%
Prefix size~189 tok
Est. monthly savings$0.73/mo
Line 1 busts your prompt cache, leaving only 0% cacheable. Moving dynamic values to the bottom keeps the static prefix cached and saves an estimated $0.73/month at 40 turns x 60 sessions.
Share this benchmark setup (excludes pasted text)
Cache breaks on line 1 (ISO date or timestamp, UUID)Breaks cache
Only 0% of your prompt sits above the first changing token. Everything below line 1 misses prompt cache on every turn.
Fix: Move timestamps, dates, UUIDs, and session IDs to the very bottom of the prompt after all static instructions and tool schemas.
Reordered cache-friendly prefix
# Repository Coding Agent Rules
You are working on a TypeScript Next.js monorepo.
Always run npm test and npm run typecheck before opening a pull request.
Never push directly to main or edit .env files.
Keep diffs scoped to the requested task and avoid reformatting unrelated files.
When a verification command fails twice, stop and report the exact failure output.
## Architecture summary
- apps/web: Next.js App Router frontend and public marketing routes
- packages/core: shared domain types, validation schemas, and pure calculators
- packages/db: Postgres queries and migration files
- Every API route validates inputs at the boundary and returns typed JSON errors.
## Runtime context (append last)
Current time: 2026-12-02T00:15:42Z
Session ID: 00000000-0000-4000-8000-000000000001
How caching works: Anthropic and OpenAI cache exact matching prefixes from token 0. Putting a live timestamp or session ID at the top invalidates everything below it on every turn. Caching rules checked as of October 2026.
Want a clean, concise repository instruction file from scratch? Generate a short AGENTS.md and CLAUDE.md pointer built to stay well inside your prompt-cache budget.
The scanner checks each line sequentially for ISO dates/timestamps, live clock labels, UUIDs, and request/session ID patterns, measuring what percentage of the prompt precedes the first changing line.
Monthly savings compare Turn 2..N prefix input cost at the current cache-safe fraction against a reordered 92%-cacheable prefix at the selected model's published input rate.
All inspection and reordering happen client-side in JavaScript; zero pasted text is transmitted or stored.
Last checked October 2026.
Worked examples
ISO timestamp and UUID on lines 1 and 2
Inputs: busted-timestamp preset, Claude Sonnet 5.5, 40 turns, 60 sessions/mo.
Restores prompt-cache hits across turns 2 to 40 without changing a single rule in the prompt.
Dynamic request ID plus 45 verbose tool rules
Inputs: bloated-mcp preset, Claude Sonnet 5.5, 40 turns, 60 sessions/mo.
Flags both line-1 cache break and missing stop condition
Shows how moving the request ID down and adding a two-failure stop rule prevents both cache misses and retry-loop rot.
Clean static prefix with runtime footer
Inputs: clean-cached preset, Claude Sonnet 5.5, 40 turns, 60 sessions/mo.
Cache-safe prefix: ~88% (Cache-safe)
Confirms static rules sit ahead of changing context.
Cite this page
Hivra, "Prompt-Cache Prefix Auditor", https://hivra.cloud/tools/prompt-cache-auditor, facts last checked October 2026.
Source: <a href="https://hivra.cloud/tools/prompt-cache-auditor">Hivra</a>, Prompt-Cache Prefix Auditor, facts last checked October 2026.
Common questions
Why does one timestamp at the top of a system prompt break prompt caching?+
Anthropic and OpenAI prompt caches match exact byte-for-byte prefixes starting from token 0. If line 1 changes on every turn or session (such as Currenttime or a UUID), every static rule and tool schema below line 1 misses the cache.
Where should dynamic runtime variables like dates or session IDs go?+
Place static system instructions, repository maps, and tool schemas first, then append changing values like timestamps, user IDs, or active branch names at the very bottom or inside the user message.
How much can fixing prompt-cache prefix order save?+
Because cached input reads cost roughly 10% of standard input tokens, moving a cache-busting timestamp from line 1 to the bottom of a 40-turn session can cut prefix input costs by 70% to 85%.
Does this auditor send my prompt text to Hivra or any third-party API?+
No. All pattern checks, token estimates, and prefix reordering run 100% locally in your browser. Share links only encode the dropdown preset and session counts.
What causes context rot in long coding agent sessions?+
Oversized static rule files, verbose tool outputs, and missing stop conditions cause the context window to fill with stale failed-attempt text, degrading reasoning quality over long runs.
How long should my static AGENTS.md or system prompt prefix be?+
Aim for concise, verifiable commands and hard rules under roughly 1,000 to 2,000 tokens, loading deeper docs only when a task actually needs them.
When you need a computer that stays on
If you want the computer to stay on after you leave your desk, Hivra offers a managed computer starting at $9.99 a month for 2 vCPU and 4 GB of RAM. A paid Hivra Cloud computer stays on and is not paused for inactivity. The plan does not include AI usage. Bring your own account or key where the agent supports it, or pay with Hivra credits. Claude Code can use your own Anthropic sign-in or Hivra credits. There is a 7-day money-back guarantee on card payments.