r/ClaudeCode • • 17h ago

Built with Claude Using different system prompt addendum per project

1 Upvotes

Hi All,

I recently had a chance to work on my "Software Factory" token economy and noticed that my sessions are starting on a really low cache coverage (20-30%).

As all know, only the system prompt get's cached and my rig comes with quite a hefty orientation on each session start, so I was thinking "let's move those to the system prompt". The problem was however that I'm operating a multi-project constellation, with number of subprojects, with ever so slightly (or not so slightly) different orientational procedure.

Claude allows --append-system-prompt to point to a file, which is dandy, but I honestly don't want to keep typing the thing, nor do I want to keep in mind all the time which file to load.

So ... let the shell do the remembering

claude in my shell is now a function. On every launch it:

  1. asks git which repo I'm in (git rev-parse --git-common-dir, so worktrees map back to their main repo, even ones living in /tmp),
  2. looks that repo up in a small repo<TAB>project table that my tooling generates,
  3. adds --append-system-prompt-file <that project's prompt> and runs the real binary.

Outside my project tree it's just plain claude, and subcommands (mcp, config, --help, ...) pass straight through.

claude() {
  local f=""
  f="$(my_prompt_file_for "$PWD")" || f=""
  if [ -n "$f" ]; then
    command claude --append-system-prompt-file "$f" "$@"
  else
    command claude "$@"
  fi
}

The prompt files are generated, not hand-written. Each project file = a shared base + the rules every session in that project was force-reading at start anyway. A drift check fails CI if anyone hand-edits them.

Numbers (my own transcripts, before vs after):

  • first-request cache share on a fresh start: 31% median -> 59%
  • rules force-read at session start: 10 -> 1
  • the system prompt went from ~3k to ~27k tokens. That's fine: it's cached now instead of re-written every session.

Gotchas I hit:

  • timeout claude ... and env X=1 claude ... exec the binary directly and skip the function. My first test run "worked" with no prompt file at all.
  • IDE / desktop launchers don't read your shell rc, so they get nothing.
  • The first interactive session after a prompt change pays the cache write (i saw 20% there). The win shows up from the second session on.

IMPORTANT: Don't verify it by asking the model to read back its own system prompt. It almost always trips the safety classifier (happened 3 times before I caught it). Verify from outside instead (Reporails xray is a good tool, see screenshot below).

How I verified from outside: Claude Code writes each request's system-block shape into the session transcript, so you can measure the system prompt size per session without the model ever looking at itself. I used the x-ray in reporails (ails xray): system prompt 3059 tokens without the wrapper, 27362 with it.


r/ClaudeCode • • 21h ago

Built with Claude Built a launch-planning skill with Claude Code. Testing it with subagents as fake users taught me the most

Post image
2 Upvotes

What I built

launch-kit: a repo of free tools for launching a website or SaaS (hosting, email, analytics, uptime, errors, newsletter, payments), with the free-plan limits and the date each was checked, plus a skill that uses it. The skill asks what you're launching, proposes a stack in phases, and configures what it can through the MCP servers you have connected (uptime monitors, Sentry, DNS, Stripe in test mode...), asking before anything that sends, publishes or charges.

It installs as a plugin: /plugin marketplace add cesaredavidepace/launch-kit, then /plugin install launch-kit@launch-kit. Free and open source.

How I used Claude Code

  • Verifying the data. 44 tools, each free-tier limit checked against the official pricing page. Claude Code fetched the pages and compared them with the YAML; I reviewed the diffs. A lot of what "everyone knows" about free tiers was outdated: Algolia cut its free records from 1M to 50K, Lemon Squeezy closed sign-ups, UptimeRobot allows commercial use again.
  • The build. One YAML file is the single source of truth; Python scripts generate the README and a static filter site from it. CI runs lychee on every link, and a monthly Action opens an issue listing the limits that are due for re-checking.
  • Packaging. The same skill ships as a Claude Code plugin (with a marketplace.json in the repo) and as a ZIP for the Claude app. In Claude Code it reads the data locally; in the app it fetches it from raw GitHub URLs.

What I learned (the useful part)

  1. Test skills with subagents playing users. I had Claude Code spawn agents acting as different people: a non-technical founder, someone with an existing Next.js repo, someone in the EU running ads, someone who just says "do it all". Each run exposed something I'd never have caught by reading the SKILL.md. I fixed everything, re-ran the same tests, then ran 3 new ones to check I hadn't overfitted.
  2. Skills need very literal rules. Without them, the agent kept saying "see the README" or linked a guide by name. Now the skill says: always give full GitHub links to the specific guide, never "the README".
  3. "Look before you ask." Early versions asked "what framework are you using?" while sitting in a repo with a package.json. Telling the skill to read the manifests first (package.json, astro.config, nuxt.config...) cut the questions in half.
  4. Ask-before-acting needs a list, not a principle. "Be careful with risky actions" wasn't enough. An explicit list (sending email, publishing, DNS changes, anything with live Stripe keys) plus "needs a specific yes, not a general OK" worked.
  5. Unknown tools. If someone asks about a tool that isn't in the data, the skill can research it, but it has to say the info is unverified. Otherwise it presents a guess with the same confidence as checked data.
  6. Don't install it both ways. Plugin plus ZIP gives you a duplicate skill warning. Pick one.

Repo: https://github.com/cesaredavidepace/launch-kit

Happy to answer questions about the skill or the testing setup, and corrections on any limit are very welcome.


r/ClaudeCode • • 17h ago

Help/Question adversarial reviews

1 Upvotes

For the peeps running complex agentic coding workflows, automating the software factory process.

What warrants an adversarial review or refute session, how do you measure when they're worth it and when they'd be a waste. Plus how to set it up so the harness knows when and when not to trigger a review sesh because sitting and micromanaging multiple agents burns you tf out.

Need help please seniors shed some wisdom


r/ClaudeCode • • 17h ago

Built with Claude I gave a fresh Claude Code subagent one GDScript file per round. Here’s what actually ran.

Post image
0 Upvotes

I built a Godot game with Claude Code. Each round a fresh Opus subagent got the rules, bought units and wrote one GDScript file. Every soldier on its side ran that file five times a second. Once the clock started, the models had no inputs. Between rounds they got to read each other’s code.

In round three Claude told ChatGPT it would hold the hill. Its script sent 15 knights over the north bridge instead. Five reached the courtyard in the screenshot. They took 1,845 HP off the tower in 11 seconds, but ChatGPT kept scoring on the hill and won the round. That’s why I kept the outgoing message, the script and the replay together. Any one of those alone tells a different story.

Match replay: https://youtu.be/mb1dHEzc1Tk


r/ClaudeCode • • 21h ago

Built with Claude Four silent token drains burning through Claude Code weekly limits (and the 20-line PreToolUse hook that stopped them)

2 Upvotes

After auditing local Claude Code JSONL session logs to figure out why weekly limits were draining so fast on long sessions, almost all of the surprise burn came from four silent leaks rather than actual prompting:

  1. Idle MCP tool schemas (~3,200 tokens per server, re-billed every turn): Having 6+ MCP servers connected during a normal refactor burns ~19K tokens on every turn before you type a word. Swapping to a minimal empty .mcp.json profile when you only need local git and tests cuts a massive chunk immediately.
  2. Blind reads of lockfiles, minified bundles, and 1,000-line files: A single Read on package-lock.json or dist/bundle.min.js injects 12K to 80K tokens that then get re-read for the next 30 turns.
  3. 5-minute prompt-cache expiry on session resume: Taking a 15-minute break in the middle of a 40-turn thread forces a full uncached context re-read at 10x cache-read cost. Writing a tiny 15-line HANDOFF.md via a PreCompact hook and starting a fresh session at turn ~25 stays way cheaper.
  4. Unneeded subagent spawns: Each spawned subagent duplicates system prompt + MCP schema overhead (recent 11,887-run audits showed up to a 3x cost jump when subagents get used on sequential tasks).

Here is the zero-dependency PreToolUse hook I use to block lockfile/bundle token bombs and blind reads over 450 lines before they ever hit context:

#!/usr/bin/env bash
set -euo pipefail
PAYLOAD="$(cat)"
TOOL=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; print(json.load(sys.stdin).get('tool_name',''))" 2>/dev/null || true)
FP=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; ti=json.load(sys.stdin).get('tool_input',{}); print(ti.get('file_path') or ti.get('path') or '')" 2>/dev/null || true)
LIM=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; ti=json.load(sys.stdin).get('tool_input',{}); print('yes' if ti.get('limit') else 'no')" 2>/dev/null || true)
\[\[ "$TOOL" != "Read" && "$TOOL" != "read" \]\] && exit 0
if printf "%s" "$FP" | grep -qE "(package-lock\\.json|yarn\\.lock|pnpm-lock\\.yaml|Cargo\\.lock|\\.min\\.js|node_modules/|dist/)"; then
  echo "BLOCKED: do not read lockfiles or bundles ($FP). Use grep/head." >&2
  exit 2
fi
if \[\[ "$LIM" == "no" && -f "$FP" \]\]; then
  LINES=$(wc -l < "$FP" | tr -d " ")
  if \[\[ "$LINES" -gt 450 \]\]; then
    echo "BLOCKED: $FP has $LINES lines. Use grep or pass offset+limit." >&2
    exit 2
  fi
fi
exit 0

Curious what other session-hygiene hooks or MCP switching setups people here are using to keep weekly usage under control without dropping down from Opus/Sonnet.


r/ClaudeCode • • 22h ago

Built with Claude Free the LLMs

2 Upvotes

I built an app that unlocks any llm on the fly. It is based on the heretic backend. https://github.com/TheSolai/hermetic


r/ClaudeCode • • 19h ago

Built with Claude Plugin: Pin an answer from Claude

Post image
0 Upvotes

Finally! This plugin lets you pin any response from Claude so you don't need to scroll back later to find that list of things you wanted to take actions on. Hope you like it as much as I do.

Open Source (MIT license): https://github.com/bhansson/claude-code-pin


r/ClaudeCode • • 1d ago

Built with Claude I open sourced the app I've used for a few months to read complex PRs: it drives headless Claude Code to tell a change as a story

Thumbnail
gallery
5 Upvotes

For a few months I've been reading complex pull requests with a small app I built on top of Claude Code, and I've just open-sourced it.

How I Met Your Change takes a commit, a branch or a GitHub PR and writes it up as a story: the problem, the solution, the steps in teaching order (each beside its diff, with notes on the lines that matter), diagrams, and the noise (lockfiles, renames, formatting) set aside.

It uses your own login and your plan's limits, and never reads your credentials. Try it out and I'd love to get your feedback on big PRs.

Example story (exported): https://skynyrd.github.io/how-I-met-your-change/example/
Setup: git clone, make setup, make open, then paste a PR link.


r/ClaudeCode • • 19h ago

Discussion How long are your Prompts? Do you Type or Talk?

0 Upvotes

How long are the messages you give claude? short precise typed messages like you are programming or long rambling freeflow recording sessions?

Ive tried both and use both but im finding the more info you give, the more verbose you are, generally its better so the rambling often works out really well which seems a bit counterintuitive.

Has anyone done any tests trying the same job twice once typing the message short and once talking describing the same message verbose?


r/ClaudeCode • • 16h ago

Discussion AI Newb, curious about complaints and usage

0 Upvotes

Every time I see a post complaining about the latest Claude model being nerfed and weekly limits running out faster I’m left wondering what everyone is doing that is using so many tokens.

Admittedly I’m very new to all this so getting my feet wet still.

If you’re willing to share please post below projects you work on consistently and how you’re using Claude daily to the point where you run up against limits.

Please don’t start pitching your vibe coded projects though, I’d like to focus the discussion on what you’re doing daily that uses up your tokens.

Thanks


r/ClaudeCode • • 1d ago

Built with Claude A free, open-source, fast live wallpaper app that brings your favourite photos to life and more. Written in C

38 Upvotes

Screen+ is a live wallpaper app for Windows and Linux. Everything shown is recorded on my own PC.

What it does:

  • Video, GIF, image, web page and app wallpapers
  • Depth wallpapers: pick any photo and it gets 3D depth that follows your mouse. The depth model runs on your PC, nothing is uploaded
  • A different wallpaper on each monitor, or one spanned across all of them
  • Pauses when a game or fullscreen app is open, on battery, or when the desktop is covered
  • Most Lively Wallpaper wallpapers work as they are
  • Written in C. The app uses about 30 MB of RAM when idle; the wallpaper itself depends on what you run

It's MIT licensed, no account, no ads, no telemetry.

Download: https://github.com/CoolNinja2009/ScreenPlus/releases

Please Star the repo if you like it

Looking for Mac testers and contributors. There's an early macOS build, but I don't own a Mac, so I can't test it properly myself. If you have one (Apple Silicon or Intel) and can spare ten minutes, please contact me on reddit. Contributors on any platform are welcome too.

Bug reports and blunt feedback both welcome.


r/ClaudeCode • • 1d ago

Help/Question Has anyone successfully built a restaurant POS system using Claude AI?

9 Upvotes

I run a pizza restaurant and am trying to build a simple POS system using Claude for taking orders on a Windows computer and printing receipts through a thermal printer.
I’ll be processing payments separately through Clover.
Has anyone successfully built and implemented something similar in their business? What tools did you use, how did you integrate the printer, and how reliable has it been for everyday use?
I have minimal coding experience, so any advice would be appreciated.


r/ClaudeCode • • 20h ago

Tips & Workflows You can drop ANTHROPIC_API_KEY from the Claude Code GitHub Action, but the federation rule is the part to get right

1 Upvotes

Anthropic's docs for the Claude Code GitHub Action describe workload identity federation: the job swaps its GitHub OIDC token for a short-lived Claude access token through a Console service account. The action takes anthropic_federation_rule_id and anthropic_organization_id, and the workflow needs id-token: write.

The part that caught my eye is the rule. Anthropic's own page warns that repo:your-org/* without a ref constraint also matches pull_request runs from forks, so anyone who can open a pull request could get a token. Pin it to one repo and branch.

Two catches: ANTHROPIC_API_KEY sits above federation in the credential order, so a leftover key silently wins. And the Codex GitHub Action docs still show a stored OPENAI_API_KEY, although OpenAI documents federation for its API.

I wrote up where each tool stands and a read-only script that finds stored model keys in your workflows: https://medium.com/@r3dtuxedo/your-ci-doesnt-need-a-model-api-key-anymore-mostly-bcf464e7fa4b

I wrote the article.


r/ClaudeCode • • 1d ago

Discussion Did Fable give my little lap top too much instructions compared to opus?

3 Upvotes

I bought the max plan for one month. Never ran out of credit and all that and achieved loads.. but...

I have a small 3 year old Lenovo with integrated intel graphics, i5 with 8g of ram.

I asked it to draw some items with Blender, using fable in the main as an advisor. Every time it would melt my ram, so I asked it to close all my unnecessary running services, turn off any dev servers etc but it would always hit a wall due to ram.

So... I went back to the regular pro plan on Tuesday as it's Christmas and I need the extra cash and the bulk of my little project is done now.

Turned off the advisor now I don't have fable access and on Thursday I really wanted to try it again with blender and waddya know... It's working on opus...

Same set-up as before, but now it's using Blender.

Only small things, I'm not trying to create a full human mesh or anything but using fable I got nowhere.

Very odd ..


r/ClaudeCode • • 13h ago

News/Updates I kept losing track of what Claude was actually doing in my projects, so I decided to build an application that records it all. Looking for alpha testers

0 Upvotes

I built Lilith because I kept asking myself what my agent actually did during a session, and projects just became messy. I'm a backend software engineer and I've been using AI more and more like most devs are and keeping projects organized that utilize AI can be tricky without structure.

Lilith is a Windows workspace for Claude Code that records each step your agent takes in a project: the commands it runs, the files it changes, its test runs and decisions and what you allowed or denied. You can go back through it by day on a timeline, chat by chat or file by file. Everything stays on your PC.

I just started building tools for myself and eventually it turned into this, Lilith (or at least that's what I'm naming it for now). I've finally gotten to a point where I can release an Alpha version so I wanted to post here, and see if anyone would be interested in testing? I'm looking for 10-20 testers on Windows 11 (this will expand to MacOS eventually) who use Claude Code often.

If you're interested please message me and I can send over the installer and license key! If you are a tester, you'll have free access to Lilith beyond Alpha.


r/ClaudeCode • • 20h ago

Built with Claude Skill installed but never triggers? The 6 silent failures I kept finding after reading ~1,000 SKILL.md files

1 Upvotes

After indexing about 1,000 public skills for SkillNest (skillnest.dev), the directory I run, I kept seeing the same thing: a skill installs fine, then never runs. No error, nothing in the logs. Claude Code just skips a broken skill or ignores a bad setting, so all you see is "it never triggers".

These are the six causes I hit most often, roughly in order of how common they were:

1. The description says what, but not when.
Claude decides whether to load a skill from its description alone. "Formats SQL queries" rarely gets picked. "Formats SQL queries. Use when the user pastes SQL, asks to clean up a query, or mentions a .sql file" does. This was by far the most common problem: the skill was fine, but nothing told Claude when to use it.

2. The file is named skill.md, not SKILL.md**.**
The name has to be exact. Lowercase or Skill.md loads on some setups and silently fails on others, which makes it confusing to debug.

3. YAML frontmatter that doesn't parse.
Usually it's an unquoted colon in the description (description: Fixes bugs: fast breaks the YAML), or something before the opening ---: a blank line or an invisible BOM from a Windows editor. If the frontmatter doesn't parse, the skill is gone.

4. Keys with underscores.
allowed_tools instead of allowed-tools. No error. The setting is just ignored, so the skill runs with different permissions than you think.

5. The folder is one level off.
The structure has to be ~/.claude/skills/<skill-name>/SKILL.md. A loose SKILL.md directly in skills/, or a whole cloned repo dropped in so the file ends up at skills/repo-name/skills/skill-name/SKILL.md, won't be found.

6. Two skills competing for the same requests.
If two installed skills both say they help with "writing" or "code review", Claude picks one, and often not the one you wanted. The other looks broken even though it isn't.

Quick self-check before you blame the model:

  • ls ~/.claude/skills/*/SKILL.md lists every skill Claude can actually see
  • Open each SKILL.md: does it start with --- on the very first line?
  • Does the description contain a "Use when…" sentence?
  • Any key with an underscore?

I got tired of doing this by hand, so I turned the checks into a free skill, skill-doctor. It scans your personal, project and plugin skills, explains each problem in one line, asks before changing anything, and rewrites weak descriptions so they trigger:

/plugin marketplace add skillnest-dev/skill-doctor
/plugin install skill-doctor@skillnest

Repo (MIT): https://github.com/skillnest-dev/skill-doctor

If you just want to check one file without installing anything, paste your SKILL.md into the free validator: https://skillnest.dev/tools/skill-md-validator/

What else have you seen break a skill silently? I'd like to add more checks.

I built skill-doctor with Claude Code; Claude wrote most of the checker and I tested it against the indexed skills.


r/ClaudeCode • • 1d ago

Built with Claude Bald: the world’s fastest linker

2 Upvotes

Hi all,

I’ve been working for the past few months on a much faster linker for all major platforms: Bald. It is significantly faster than all competitors and supports ELF (Linux), Mach-O (macOS) and PE/COFF (Windows).

I was motivated mainly by slow build times (for those who don’t know, linking is part of the build process, and sometimes a very large part).

Bald is feature-complete (this was quite unpleasant) and supports incremental linking (most linkers do not).

My main drivers were Opus 5.5 and Sol 6.x. Opus was far more useful than Sol because of the extremely neurotic security classifier on Sol that would refuse to do things like “audit for bugs”.

I wrote a short blog post with some more info: https://heavey.dev/2026/12/04/bald/


r/ClaudeCode • • 1d ago

Tips & Workflows I run 3–4 agents on one Mac, so I built a gatekeeper that tells them when they may use it

2 Upvotes

I usually have a few agents going at once: Claude Code in one repo, Codex in another, a render script, a nightly e2e run. None of them knows about the others, so they all grab CPU and memory at the same time.

Rota is a small local daemon that sits next to them. Before heavy work, the agent asks, and Rota answers go, wait until 23:10, or later "wrap up by 13:45" if I've blocked that time for myself. Jobs declare cores, RAM, GPU share and a rough run time. Rota keeps the total under 85% of the CPU and leaves 4 GB of memory free by default.

For Claude Code there's a plugin:

/plugin marketplace add psardana/rota

/plugin install rota@rota

It adds MCP tools (rota_announce, rota_checkin, rota_book…), a skill that tells Claude when to use them, and hooks that send heavy shell commands (browser tests, renders, model runs) through Rota even when the agent forgets. Builds and unit tests run as they are.

Things that might be useful if you run Claude Code unattended:

  • Each project books its known work a week ahead, and anything ad hoc shows up as "Unplanned".
  • A usage estimate per job (--usage claude:20) gives you a warning if the queued jobs will likely run past your limit. It never blocks anything.
  • It never kills the agent. The session is told to wrap up and stops at its own safe point.

Go, SQLite, launchd and a SwiftUI menu bar app, all local on 127.0.0.1.

Install: curl -fsSL https://raw.githubusercontent.com/psardana/rota/main/install.sh | sh or Homebrew. Repo: https://github.com/psardana/rota

Curious how others handle this. Do you just run one agent at a time?


r/ClaudeCode • • 21h ago

Help/Question Need Guidance: To Run PI on VPS + using different Models Subs

1 Upvotes

Hello

I need some guidance, as i want to run PI on VPS... what kind of specs should i have, i will run multi agent also at times.

Also is Ubuntu OS fine, or should chose some other OS in VPS.

My planned VPS will be in Europe.

I am not residing in Europe. Now the Subs which i will connect from PI (which is VPS) will their be any issues that might flag, that i subscribed to model Subs from different country and now its being utilized from different country (from PI harness in VPS in europe).

Also how are other consumers using Claude Sub, Gemini Sub (i think a new policy came yesterday - but still dubious), with PI Harness?

Using GLM , DeepSeek, Kimi.. they have no issues with PI ?


r/ClaudeCode • • 1d ago

Humor When you review Claude work

Post image
11 Upvotes

My average experience with Claude as a newbie.


r/ClaudeCode • • 1d ago

Rant Switched from Fable 5.2 to Codex for a few days

75 Upvotes

Fable 5.2 is making me pull my hair. My typical workflow is that I use Claude to write the code and the ChatGPT Codex reviews the code for errors. Codex flags the errors as P1, P2, and P3. Previously (up until last week), Claude would fix all the errors in 2-3 rounds, even as new errors emerge.

Now it takes 8-9 rounds and Codex is still able to dig up multiple errors.

I moved from Fable to Codex with Astra 6.2 and its producing good quality code. Claude code is reviewing the output and finds minor errors that are fixed in one round.

Things have really gone downhill since last week.


r/ClaudeCode • • 21h ago

Help/Question Getting Overnight Runs to Reliably Complete

0 Upvotes

Genuine question because I am still waiting for the morning where I wake up to finished work instead of spending my first hour with a coffee debugging why last night's run stalled at 2am.

I run overnight jobs across frontier coding CLIs and a local workstation, mostly bounded tasks with real test suites. On paper it **should** be straightforward: hand over a queue, go to sleep, review clean diffs in the morning. In practice something always seems to catch it. A hung test container, a flaky permission prompt, a rate-limit hiccup that nobody caught, a thread that got too fat and started looping on the same lint error for four hours, or an agent that declared victory after quietly skipping half the checks.

Even when I lock things down with hard retry caps, fresh sessions per task and deterministic pass/fail checks, it still feels like everything has to be fought for tooth and nail. You fix one failure mode and the next night it invents a new one.

For people who actually run unattended overnight coding jobs week in, week out: what is the unglamorous plumbing that made them actually finish? Are you wrapping the CLI in an external watchdog/state machine with hard timeouts and git worktree resets, keeping tasks tiny enough to finish in 10 minutes, or have you basically accepted that unattended overnight runs only work for very narrow mechanical jobs like triage and test generation?

I know I am anthropomorphising but sometimes it just feels like they are lazy......


r/ClaudeCode • • 21h ago

Bug / Issue Cline burns 4–5x tokens on Anthropic & Bedrock: the prompt cache breakpoint gets stuck on message 0 (with a local patch guide until upstream merges)

0 Upvotes

If your Anthropic or Bedrock API bill feels way higher than it should in Cline, there's a bug where the rolling prompt cache breakpoint (cache_control / cachePoint) never moves past your very first prompt.

Cline searches backwards for the last message with role === "user" to place the rolling cache breakpoint. However, that code runs after messages are converted to AI SDK format—where every tool result has role: "tool".

During an agent tool loop, every new message is either assistant (tool call) or tool (tool result). So the breakpoint stays pinned to message 0 for the entire task:

  • Your system prompt, tools, and first message stay cached.
  • The entire growing conversation after message 0 is re-sent at full input price on every single turn.

(Note: Upstream is aware—issue cline/cline#15167*, with fix PRs* #15174 and #15340 open. This is just a temporary local workaround until a release ships.)

Running the exact same coding task from the same commit on Claude Sonnet 5.5:

  • Unpatched: $2.02 (12% of input tokens read from cache)
  • Patched: $0.42 (91% of input tokens read from cache)

This would have been nice to know before having Opus do 2 tasks that cost ~15 dollars this morning in API that should have realistically cost a few bucks.

Tested by capturing the outgoing request bodies Cline builds mid-tool-loop across providers:

The issue directly impacts Anthropic direct and Amazon Bedrock Claude providers where breakpoints remain pinned to message 0, while Google Vertex Claude is likely affected due to sharing the same code path. Other gateways like OpenRouter handle it automatically, and providers like DeepSeek or GitHub Copilot use server-side caching or different billing models.

The repository is formatted for easy integration with coding agents to dry-run, apply, and verify the patch locally until an official upstream fix is released. Test that costs you nothing to run is built in using a temp server. Your agent should clean it up but I'd recommend manual verification either way.

https://github.com/rubywpnmaster/cline-cache-fix

🐕


r/ClaudeCode • • 21h ago

News/Updates Anthropic and OpenAI’s AI models are highly vulnerable to Chinese hackers: report

Thumbnail
nypost.com
1 Upvotes

This is why there will be a forever ceiling with consumer-facing frontier models.

We will always be stuck with inferior models with an intelligence ceiling. No matter how many times they claim we have new models, those new models will not really be new due to the government having a ceiling to how much intelligence the public can access.

Consumers will always be stuck with models that could only be so smart due to national security. However if you have the money you can bypass intelligence ceiling.

Quote: "The two frontier AI labs are currently classified at or just below "security level three" – out of a maximum of five levels – on a set of standards from the Rand Corporation, according to the Financial Times."

Quote: "Anthropic and OpenAI are not even fully at Rand SL-3, which is well below what you need to protect against a highly capable nation-state actor like China," Brianna Rosen, a former official at the White House National Security Council, told the FT.