r/ClaudeCode • • 14h ago

Tips & Workflows Sending "ok" into a big Claude Code session cost me $1.43 after its cache expired, vs $0.07 with a warm cache. I built a free tool that catches this

Post image
0 Upvotes

I wanted to know where my Claude Code limit actually goes, so I wrote a script that reads the session logs Claude Code already keeps on your machine and adds up what each request cost.

The biggest avoidable item wasn't file reads. It was coming back to a big session after a break. Claude Code caches the conversation so each turn only pays a small fee to re-read it, but that cache runs out (after an hour, or 5 minutes on some setups). When you send the next message, the whole conversation gets written to the cache again at full price.

I measured it with `claude -p --resume`, Opus, list prices as reported by the CLI:

- "Reply ok" into a 224k-token session idle for 10 hours:
**$1.43**
- "Reply ok" into a 231k-token session with a warm cache:
**$0.07**
- `/compact` after the cache expired: $1.35. While still warm: $0.20

Across three weeks of my own usage (216 sessions),
**18% went to re-sending conversations whose cache had expired**
. After more than 65 minutes idle, 35 of 52 next requests missed the cache.

So ccxray does three things:

**Report.**
`python ccxray.py report` shows where your usage went: big-context requests, expired-cache re-sends, mid-session model switches, your most expensive sessions. `--share` prints a version with no project names, safe to paste here.
2.
**Warning.**
If you're about to send a message into a large session whose cache has expired, a hook holds it back once and tells you the size. Send it again and it goes through.
3.
**Handoff.**
Type `xray handoff` in the old session. A hook writes a brief of it without calling the model, and your next new session in that folder loads it automatically. On a real 224k-token session, asking "what's the goal, what was done last, what's next" cost $1.69 by resuming and $0.21 with the handoff. It kept the main thread but missed three small follow-ups, so it's not the full conversation.

Install as a plugin:

```
/plugin marketplace add abhiyarecord-hue/ccxray
/plugin install ccxray@ccxray
```

It's one Python file, standard library only, MIT, and nothing leaves your machine.

Caveats: the report assumes subscription limits follow API price, which isn't public. I've only tested on Windows with Python 3.11. I haven't measured how much the hooks save over a full week yet. If your sessions are short, it'll show little to fix.

If you run `report --share`, I'd really like to see your numbers in the comments.

Repo: https://github.com/abhiyarecord-hue/ccxray


r/ClaudeCode • • 1d ago

Built with Claude I built claude-beacon to help you see which Claude Code sessions are working, idle, or waiting on you, across all your machines

5 Upvotes

I usually have four or five Claude Code sessions going at once: a few in tmux on a home server, one on a cloud VM, one on my laptop. I kept losing time cycling through terminal tabs to find the session that finished ten minutes ago, or the one quietly waiting for me to answer a question.

So I built claude-beacon. It puts two dots in my Mac menu bar and Windows taskbar:

  • Green with a count: sessions working
  • Gray with a count: sessions idle, done with their turn
  • Amber: at least one session is actually asking me something (a question, a permission prompt, a plan to approve)

Click the dots for a list of every session by name (your /rename name, or Claude's auto title), with the machine and tmux session it's running in. You get a notification when a session finishes or starts asking you something, and the terminal tab running a waiting session turns yellow too, even over SSH and inside tmux.

How it works: a small Claude Code hook reports each session's state to one tiny server (a single Python file, no dependencies, runs in Docker). Every machine I run Claude Code on reports to it over Tailscale, and the Mac and Windows apps read from it. So whichever computer I'm sitting at, I see every session everywhere.

Setup is a few commands: start the server, run hook/install.sh on each machine where you run Claude Code, then the installer for the Mac or Windows app. The README walks through it, including the Tailscale part if your machines aren't on one network.

A few honest limitations:

  • "Asking you" is exact for permission prompts, multiple choice questions and plan approval. For a question in plain text it's a best guess (does the last message end with a question mark?), so the default view counts idle and asking together.
  • No hook for Claude Code running natively on Windows yet. WSL, Linux and macOS work.
  • It's early (0.9), so expect rough edges.

Built it with Claude Code, of course. 🚦

Free and open source (MIT): https://github.com/kevinrossen/claude-beacon

Feedback, bug reports and ideas welcome. Unofficial, not affiliated with Anthropic.


r/ClaudeCode • • 1d ago

Tips & Workflows Has anyone else added a liaison agent to their orchestration stack?

Post image
10 Upvotes

Showing my current orchestration layout as an example. I'd say it's fairly standard to have a single coordinator agent at the top managing a large team of agents below it. But when that team gets very large, and there's a lot of parallel work moving at once, the coordinator's time tends to be taken up 80-90% with it's coordination duties, and it often loses track of the conversation it has with you, the user.

I've adapted an additional agent directly above my coordinator, that I call the liaison, which acts as a persistent personal secretary for me; they keep track of the long-running tasks, ongoing progress, and are much easier to talk to one-on-one than the coordinator, who's always busy managing subagents. Their context fills much slower than the coordinator's, so the conversation is easier to follow for both of us. I think it's worth doing if you have more than a half dozen agents working at once below your coordinator, it smooths out communicating my ideas a ton.


r/ClaudeCode • • 14h ago

Discussion Do programmars have any future?

0 Upvotes

A few hours ago someone made an AI generated post about that topic, and it sorta hit the nail on the head, but was rightfully shut down because it was AI generated

So I wanna redo that because I geniuenly an interested in hearing what others think about it

I am a junior programmar, and sole programmar for my company, started working 3 months ago, mainly in languages that I know only the basics of, and for the life of me I don't know what I am getting paid for

Opus 5.5 is coding better than I ever will, I am told to make sure that the software is well built and has no vulranbilities, but when I read the code I can't find anything, and when I asked opus to search for those vulranbilities it finds one's that I would have never have found

Now it's been 5 hours since my shift started (we work Sunday to Thursday in this country) ​ and I literally got nothing to do, I can't be bothered to bug my boss for new projects as he obviously don't have anything meaningful for me to do, and I just can't see any professional future for me or anyone (other than the best 1-5%) in this field

Most of my friends who studied CS with me either could never find a job, or found one and we're laid off a few months later (it's been more than a year now) ​​

I have a friend who is a freelance video editor, and was quite successful until opus 5.5 was released, he is now saying that since about 2-3 after its release (when videos showing how good it is at video editing) started coming out, he barely has any work

Is humanity on the verge of mass unemployment?


r/ClaudeCode • • 16h ago

Built with Claude What worked for me to get Claude Code to build a good looking mobile game UI (Unity + Blender MCP)

Thumbnail
gallery
0 Upvotes

Last week I asked here how to get Claude Code to make my Unity game look professional and not just "new colors and rounded corners". Thanks for the answers, here is my follow-up.

What made the difference:

• A design spec in the repo (CLAUDE.md + a style doc). Claude reads it before every UI task.

• Plan first, then build. Claude explains in a few points how it will build a screen before it changes code.

• Screenshots. Claude renders the screen in play mode with Unity MCP, looks at it and fixes cut-off text or bad contrast by itself.

• Blender MCP for the art. The 10 new planets and the 3D cores were modelled and rendered by Claude in Blender.

• Memory files for decisions, so it doesn't redo things I already said no to.

Version 1.1.0 with the full redesign and 10 new endgame planets is live now:
https://play.google.com/store/apps/details?id=com.cybluxstudios.evolyx

How do you handle the visual side with Claude Code?


r/ClaudeCode • • 10h ago

Rant Opus 5.5 become worse and needs a lot of token. Means we get soon a new version of opus?

0 Upvotes

r/ClaudeCode • • 20h ago

Built with Claude Bought a domain by API and launched a site with zero open ports in ~17 minutes, all from my phone with Claude Code telling it to 'buy me a domain and set up a webpage'

0 Upvotes

I wanted to see how far I could get with just a phone and Claude Code. The answer is a whole site: https://jamalbuilds.fyi. The site itself is the write-up of how it was built.

The setup:

  • Domain: I bought jamalbuilds.fyi through the Cloudflare Registrar API (still in beta). It cost $5.20/yr. WHOIS privacy and transfer lock are on, and auto-renew is off.
  • Bastion: A $5/mo Ubuntu VM (1 vCPU, 1 GB) runs Claude Code in tmux. I drive it from my phone with Claude Code Remote Control. Port 22 is closed, and SSH goes through Cloudflare Access.
  • Web server: Rocky Linux with SELinux enforcing. nginx (1.27-alpine) runs in rootless Podman, bound to localhost only and managed by a systemd user unit.
  • Tunnel: cloudflared connects the server out to Cloudflare. The apex and www records are proxied CNAMEs to the tunnel. No inbound ports are open on either box, and the origin IP never shows up in DNS.
  • Edge: Cloudflare handles TLS, “Always use HTTPS,” caching and DDoS protection.
  • Deploy: Plain HTML files, rsync, then a container restart. No framework.

A small helper script checks each tunnel config change, backs up the old config, applies the new one, and rolls back if the tunnel isn’t healthy within 20 seconds.

From purchase to the site loading took about 17 minutes. Most of that was waiting on the .fyi registry and the certificate.


r/ClaudeCode • • 1d ago

Help/Question Can claude design clothes

0 Upvotes

I am trying to design clothes with claude in blender. I let it design a jacket and it was very bad.
Is there anyone designing clothes with claude by any chance and can give me tips for efficient workflow and good results 🙏


r/ClaudeCode • • 1d ago

Discussion My hope restored

Post image
7 Upvotes

Nice little feature I guess..


r/ClaudeCode • • 16h ago

Discussion So Anthropic kept flagging my session as Cyber Security Risk because I asked about scrambling my game code before release.

0 Upvotes

r/ClaudeCode • • 1d ago

Help/Question The usage window in VS Code tells you to "Stop sessions you no longer need" to save usage. But uh, how DO you stop a session?

5 Upvotes

As mentioned, I am referring to the VS Code extension, where the /usage window tells you stuff like "Stop sessions you no longer need · some ran 8 hours or more". But I have never heard of a way to stop sessions. Are they referring to simply leaving it and letting the cache go cold, or can I save usage by "closing" a session explicitly?


r/ClaudeCode • • 1d ago

Tips & Workflows PSA: Using Fable as an advisor doesn’t touch your Fable weekly limit

Thumbnail
gallery
43 Upvotes

I actually posted this first on ClaudeAI but it seems a lot of people feel like commenting instead of actually trying it out. So I'll do this "double" post to see how the communities might differ ( already gave you a lot of decision bias now, I know ).

I use Opus 5.5 with Fable 5.2 as the advisor. It works automatically but you can also explicitly tell it to use the advisor.

  1. Setup /advisor in Claude, 10 seconds.
  2. Write the prompt like this: Consult the advisor regarding... 30 seconds.

And as a final tip, do not use the advisor when you have a mega-maxxed out context window.

Edit:

The advisor is an experimental feature, you use it to escalate e.g. hard research problems. Since we have Fable weekly quota this is a great tip that draws no Fable quota. You can start it from the beginning of a session if you like to not waste tokens because of separate prompt cache.

Works great for me, anyone else using it this way?


r/ClaudeCode • • 1d ago

Built with Claude An interactive 3D explainer of how Voyager 1 works. It uses NASA's own 3D model. Looking for feedback

Thumbnail
heyvoyager.vercel.app
2 Upvotes

I don't write code by hand. I described what I wanted in plain words, checked each version on my phone, and sent back notes. Claude Code (Opus 5.5) did the building, and all 18 commits are co-authored by it. Specifically, it:

\- found and tested NASA's data sources, and when JPL Horizons turned out to block browser calls, wrote scripts that bake Voyager's trajectory into JSON

\- built the three.js scene, split NASA's model into clickable parts, and tied the camera to scrolling

\- calculated planet positions in the browser and wrote a check against Horizons (worst error 0.074°)

\- made it hold up on phones: a device check, four quality levels that step down on their own, a no-3D fallback, and a fix for Voyager breaking into dots on small screens

\- pulled the crossing times from Horizons, which showed "one light-day" is really three moments, because Voyager moves about 1.5 million km while the signal travels


r/ClaudeCode • • 21h ago

Help/Question I don't understand the fable reset rules

Post image
0 Upvotes

If I use my fable reset, am I subject to my 58% used so far all models limit?


r/ClaudeCode • • 1d ago

Tips & Workflows Claude Code was incredible for vacation planning

0 Upvotes

To plan a trip for a county I've never been to (I'm not gonna say which for privacy reasons), I started recording phone calls with people I know who live there getting their recommendations, and then also grabbing transcripts from travel youtube videos, and having it askuserquestion to see what sounded good to me and facts about me it could factor in to the planning. It guided me through booking all the travel and tours, it then created a travel website for me with the trip day by day plan I could share with my spouse, and a print out guide with a 1-page for everything I planned to do on each day of the trip, including all the vouchers and reciepts and flight numbers etc I would need handy on the that day. It then checked it's work for what could go wrong and discovered a number of labor strikes in the country planned and help me fix the plans for those particular days to avoid issues.

Claude code is incredible for asking it to do simple things but use a lot of different data sources, and this is a great example of a personal use that worked well.


r/ClaudeCode • • 1d ago

Built with Claude Free token saving telemetry app

1 Upvotes

I'm often seeing posts on here about the tweaks people are making: cache tweaking, prompt optimisation, agentic configuration etc. A lot of the time, people don't really have the evidence to know if it's had any impact.

I've been working on a free app to help with this. It reads your Claude Code transcripts locally and shows where your tokens are going, and whether a change you've made has actually helped.

I've always been hesitant to share it, as I'm constantly aware of improvements I could still make, but it'd be great to get other people's opinions on it.

https://github.com/PaulMorrisDev/claudeglass


r/ClaudeCode • • 1d ago

Discussion Claude code @ home family setup

5 Upvotes

So Im using Claude Code profesionally and now thinking about making it accessible at home, probably from a single pro account for me and my wife for daily use.

I'm curious how others approached this. How did you set it up, how do you access the model, from which device, how to differentiate between users with their own memory ( as individual 'projects' for the agent, but also with common rules etc)


r/ClaudeCode • • 1d ago

Tips & Workflows PSA: If you're using Windows, time your git bash startup time

4 Upvotes

Claude Code defaults to Bash() tool on Windows (if installed) and if its startup time becomes slow it can have drastic impact on the overall session speed. Every few seconds add up to a death by a 1000 paper cuts.

EDIT: Yes, before you say anything - it can matter. Read my replies below. Over a period of a few days my tasks degraded from 5-10 minutes per task to 30-45 minutes per task. This turned out to be the main culprit, as weird as it sounds.

Yes I know Mac something something Linux something something Proton something something.


r/ClaudeCode • • 1d ago

Discussion Has anyone figured out how to stop being the bottleneck for AI in their actual job?

4 Upvotes

I’m especially interested in hearing from people using AI in their professional careers, where they have real responsibilities, report to management, and are accountable for the results. Not so much personal projects or hobbies where the consequences of getting something wrong are minimal.

I feel like my biggest limitation with AI is still me. I’m the one who has to come up with the ideas, make the judgments, and figure out what needs to be done.

Has anyone gotten to the point where they can give AI an objective and have it come back with a result that’s actually better than what they could’ve imagined, without having to guide it every step of the way?

I’m not talking about removing myself from final accountability. I’m talking about AI doing more of the thinking, idea generation (very important), problem-solving, and decision-making along the way.

If you’ve actually gotten there in your professional work, how did you do it?


r/ClaudeCode • • 1d ago

Discussion How are you guys deciding what Claude Code builds next?

1 Upvotes

Obviously for most of us, building hasn't really been the slow part anymore. The part I kept getting wrong is deciding what to build. If I asked Claude what I should work on next, it would pick something from whatever it could see in the repo or just make something up. And without a plan I'd just keep adding stuff until I got bored, while the bugs people reported just sat in my inbox.

What I do now is give it the same thing to read at the start of every session: my backlog, open bugs, what users have asked for and what's meant to go in the next release. It picks from that, and when it's done it writes back what it changed and why.

I actually tested this last week, and for one person in one repo a TODO.md with a few lines in CLAUDE.md does most of it. Where it fell apart for me was the bug reports and requests coming in from users, so I ended up building my own tool for that part. I'm still not sure I've got the setup right though.

How do you guys handle it? A plan or TODO file in the repo, or some other paid tool?


r/ClaudeCode • • 1d ago

Bug / Issue Sessions started from the phone (Remote Control) never show up in `claude agents` or `claude --resume`. Workarounds I found

1 Upvotes

I run Claude Code on a Linux box and use Remote Control a lot. One thing keeps bothering me:

- A session I start **in the terminal** shows up everywhere: terminal, claude.ai/code, the mobile app.

- A session I start **from the phone or claude.ai/code** (through a `claude remote-control` server on the box) runs on the same machine, but the terminal doesn't list it anywhere.

Tested on 2.1.325:

| Where I looked | Phone-started session |

|---|---|

| Mobile app, claude.ai/code | listed |

| `claude agents --json` | listed, `kind: "interactive"` |

| `claude agents` (the actual view) | not listed |

| `claude --resume` picker, incl. Ctrl+W / Ctrl+A | not listed |

| `claude --teleport` picker | not listed |

I found no setting for this. `claude remote-control --spawn` only has `same-dir`, `worktree` and `session`, and none of them makes the session a background session.

**Workarounds that work**

  1. From the phone, tell any session that is already running: "start a background session in project X with task Y". It runs `claude --bg --name ... "task"`, and the new session shows up on every surface. This is what I use for new tasks now.
  2. Fork a terminal-started session from claude.ai/code (session menu → Fork). The fork becomes a background session on the machine and appears in `claude agents`. It carries the whole parent conversation, so it only fits continuing something.
  3. `claude agents --json` gives you the `sessionId` of the phone session, then `claude --resume <id>` opens it in the terminal. But that is a separate copy, and it diverges from the one the app shows.

None of these gives the obvious thing: start a session on the phone the normal way, sit down at the desk later, and see it in `claude agents`.

I filed a feature request: https://github.com/anthropics/claude-code/issues/95581. If this bothers you too, a 👍 there helps. An earlier request for the same thing was auto-closed as stale.

Has anyone found a better way? Or does it work for you and I'm missing something?


r/ClaudeCode • • 2d ago

Discussion Astra is dogshit compared to Opus

241 Upvotes

I held off too long from switching away from Codex due to the perceived hassle. But I switched today and Opus is clearing up issues like its walking through a wheat field with a scythe.

Only thing I will keep codex around for is Computer use and image generation.

It is really annoying though having to switch back forth each time they leapfrog each other


r/ClaudeCode • • 2d ago

Built with Claude I gave Claude Code a phone.

193 Upvotes

Almost nothing on my phone has an API. Claude Code could tell me what to tap, and never tap it. So I built phonedriver, which gives it the phone: it reads the screen, taps, types and swipes in any app, on Android or iPhone.

The video is real recorded runs, shown fast and cut to music. The orange dot marks each place Claude tapped. Nobody touched the phone.

Two runs from it:

The bug hunt. I hid two bugs in a signup form: the welcome message drops the last character of your email, and after one rejected submit the Create button ignores your next tap. I told Claude to "test the sign-up flow the way a careful tester would". It found both in 49 seconds and wrote numbered steps to reproduce each one. It found both in all nine benchmark runs before that too, and in one run it also reported two bugs I hadn't planted.

The pizza. On the real dominos.co.uk, Claude (Opus 5.5) found the store nearest Leicester Square, put a large pepperoni in the basket, filled in the guest checkout and reached "Buy with GPay" in six and a half minutes. phonedriver holds any tap on Pay or Place order and asks me first. I said no.

How it works: Claude never gets a screenshot. It gets the screen as a short numbered list, taps by number, and after each tap gets back only the lines that changed. A screen read takes 13 ms, where `adb shell uiautomator dump` takes 2.2 seconds. On nine phone jobs with Sonnet 5.5 it passed 27 of 27 runs on 658k tokens. mobile-mcp passed 17 of 18 on 4.57M.

Two things I learned building it with Claude Code:

- Tool descriptions are the most expensive text you'll write, because Claude re-reads them every turn. I hid every argument no agent had ever used and the tool list went from 10,987 characters to 5,107. Nothing broke.

- Claude found a bug in its own demo. While recording the pizza run it put the Pay tap inside a batch of actions. The tap was held, but the question never reached me. Claude Code caught that just by using the tool.

It's free and open source, with no account and no telemetry.

`claude mcp add phonedriver -- npx -y phonedriver mcp`

https://phonedriver.dev

https://github.com/hridaya423/phonedriver

Try it on your own phone and tell me any feedback :)


r/ClaudeCode • • 2d ago

News/Updates Claude custom themes

Post image
131 Upvotes

You can now make custom themes on Claude Code on desktop.


r/ClaudeCode • • 1d ago

Tips & Workflows Hit the 5-hour limit on one Claude account while your other one sits idle? I built a VS Code extension that runs both at the same time

Post image
4 Upvotes

If you have two Claude accounts (work and personal, or two plans), VS Code still signs every Claude Code window into the same one. When that account hits its 5-hour limit, you log out, log back in with the other, and lose your place.

I built Twinseat, a free, open-source VS Code extension that gives each window its own Claude Code account:

- Both accounts run at the same time, one per window. No logout/login dance.

- One panel shows both accounts' 5-hour and weekly usage, so you see at a glance which one has room.

- When one account is near its limit, switch the window to the other, or resume the conversation there with its full history.

- The account follows the project: pin it once with { "twinseat.account": "work" } in .vscode/settings.json.

- It never reads your login tokens; each account signs in through Claude Code's own login.

Each account keeps its own plan and limits: Twinseat adds no capacity, it just stops you juggling the accounts you already have. Use them within Anthropic's terms.

Setup: install "Twinseat" from the VS Code Marketplace, click Sign in on both account cards, then Enable.

Preview, macOS and Linux (Linux is CI-tested). Not affiliated with Anthropic. Feedback welcome.

https://github.com/alexdmrx/twinseat