r/ClaudeCode • • 1d ago

Discussion Are there any methods to reduce token usage that actually work?

29 Upvotes

All I’ve found so far were either very beginner tips (watch context window, reduce turns, etc.) or reports about which methods don’t really work (rtk, caveman, ponytail, etc.).

Have you guys come across anything that does actually work?


r/ClaudeCode • • 21h ago

Built with Claude I had too many Claude Code sessions, so I 3D-printed myself a controller to rule them all

2 Upvotes

It switches between sessions, shows their status and provides dynamic haptic feedback.

https://github.com/malykhin/claude_knob


r/ClaudeCode • • 1d ago

Discussion Claude Code Behaviour Change

4 Upvotes

Myself and my team are finding Claude Code to be a pain in the ass these past few days, it stops at every decision and asks for permission.

It just stops at simple steps. For example, it used to go ahead and just search logs to debug something, now it returns an inventory of logs to be searched and asks if it should, etc.

We haven't touched its shared instructions.

Anyone else experiencing this, and more importantly, know how to fix it?

EDIT:

Found it via Opus 5.5:

Release 2.1.330 came out on 20 November, and everyone on auto-update got it within a day or two. Without any changelog note, it removed this instruction from the built-in prompt:

"When you have enough information to act, act. Do not re-derive facts already established in the conversation, re-litigate a decision the user has already made, or narrate options you will not pursue. If you are weighing a choice, give a recommendation, not an exhaustive survey."

Evidence

  • Claude Code now saves the full prompt in each session's transcript, so I compared it version by version.
  • That paragraph was in every VS Code session through 2.1.329, apart from a gap in 2.1.325–2.1.326. It is missing from every session since 2.1.330. Nothing else that affects asking or acting changed in that window.
  • On your laptop, the share of turns ending with a question rose from about 9% to 15% across that release.

r/ClaudeCode • • 17h ago

Help/Question Moving chats between claude and claude code?

0 Upvotes

How do you do it? Push to GitHub and then pull?


r/ClaudeCode • • 18h ago

Built with Claude I built a Claude Code plugin that turns long Markdown plans into linked canvases you can comment @agent on

1 Upvotes

I use Claude Code daily on a fairly large TypeScript/Angular/Firebase monorepo, and my biggest time sink wasn't code generation — it was plan mode dumping 400+ lines of Markdown into a narrow terminal pane. You skim the headings, approve it, and discover twenty minutes later that Phase 2 had an assumption you would have caught immediately on a diagram.

So I built Unpaged around how I actually review plans:

  1. Overview on top, checklists one click down: /unpaged:visual-plan splits a feature into an overview canvas with 4–6 phase cards. Clicking a card (or pressing 1–9) drops into that phase's checklist, risks, and diagrams.
  2. Comment @agent on the exact shape: When something on Phase 2 is off, you don't switch back to chat and re-read 400 lines. Comment @agent <what to change> pinned to that block; your running session hears the push event, edits that canvas live, and replies in the thread.
  3. Decision log + PR preview with no reviewer account: As Claude Code hits surprises during implementation, it appends a row to the plan's Decision log and runs /unpaged:as-built when done. Opening a GitHub PR with gh drops a clickable preview image + public link right in the PR description so teammates explore the plan without creating an account.
  4. Architecture checks (/unpaged:architecture): Draws codebase claims on canvases and flags only what drifted after recent commits.

Explore a real plan built by an agent (no sign-up needed): https://unpaged.io/share/f93886b9-50cc-4815-9577-271501f816d6 Full write-up + demo details: https://unpaged.io/blog/review-your-coding-agents-plan

Install in Claude Code (open-source plugin repo: https://github.com/unpaged/plugins):

claude plugin marketplace add unpaged/plugins
claude plugin install unpaged@unpaged
claude mcp login plugin:unpaged:unpaged

Honest limits / pricing: You bring your own Claude subscription ($0 AI markup). Free ($0) gives you all plugins/MCP, Markdown, Mermaid, UML, up to 50 canvases per doc, and up to 5 collaborators per doc, capped at 5 lifetime created documents (copies count). Paid starts at $10/mo if you keep using it past 5 plans.

Would love blunt feedback: where would this break down on the plans you actually review in Claude Code? Happy to hop on a quick 15-min call or async thread to help anyone wire it onto a real branch.


r/ClaudeCode • • 1d ago

Rant Stop actually typing "make no mistakes", it's a meme, it doesn't actually work

69 Upvotes

I was scrolling Twitter as I too often do, and came across this:

https://x.com/MadeByNik1/status/2125495932242251855?a=GxgNTfJco7cWCoWltlY&s=19

Apparently people vibe coding on the GTA 6 team actually put "make no mistakes" as one of the AI's actual /goals. I was under the impression everyone was aware that this was a joke, but because it seems that apparently even real game devs don't realize it's a joke, allow me to explain.

AI doesn't have a careless mode that you can switch off just by asking it to. It doesn't think harder just because you tell it not to make no mistakes. If you want a model to think harder, you have to give it a higher reasoning effort. Saying "make no mistakes" accomplishes nothing, because when an AI hallucinates, it doesn't know that it's making a mistake. IF IT KNEW IT WAS MAKING A MISTAKE, IT WOULDN'T HAVE DONE IT. AI is not a person that understands vague requests, or works harder because you ask it to, even real people barely do that. It's a predictive text algorithm that attempts to predict the next "token" of text based on what is statistically the most likely. Mistakes and hallucinations are inevitable, because it doesn't actually understand what it's doing, it's just predicting what's most likely, and educated guesswork will never be 100% accurate. Saying "make no mistakes' does not retrain the weighting of this predictions, or to give it the missing information.

I'm not angry, I'm embarrassed. I'm embarrassed that actual developers have taken a joke literally. /Goal stop taking everything you see in the internet literally and learn how jokes work.


r/ClaudeCode • • 18h ago

Tips & Workflows If you want to save tokens...

1 Upvotes

Just ask Claude how to change your workflow so that it will save tokens. And then ask it to teach you why that works.


r/ClaudeCode • • 22h ago

Discussion How do you deal with the mighty skills spaghetti?

2 Upvotes

I keep my team's know-how as Claude Code skills. This week I changed a scoring rubric in one of them and found that three other teams' skills read its text at runtime. A wording change would have broken all three.

In the old programming days we'd have declared an interface, or a type check would have failed. Now it just breaks silently.

My fix so far is to move the data out of the prose and test it:

# rubric.yaml: the contract, version-bumped on change
version: 2
scale: {min: 0, max: 10}
ready_threshold: 8

assert rubric["scale"]["max"] == 10 and rubric["ready_threshold"] == 8

This is a pretty straightforward numerical dependency. However, in lots of cases, there is also semantic dependency, which needs more shenanigans to maintain.

How are you handling dependencies between skills? Versioning, a list of who depends on what, or something else entirely?


r/ClaudeCode • • 2d ago

Tips & Workflows I built a plugin that shows the choices Claude Code will make before you press Enter (open source)

293 Upvotes

Claude Code settles a lot of things my prompts leave open, and I usually found out in the diff. My plugin solves that problem. As you write your prompt in Claude Code, a card above the prompt shows how the agent will read the request, names you wrote that the repo doesn't have (with the closest ones it does) and a control for each open choice. In Claude Desktop, the card opens when you press Enter.

Enter sends the prompt with the entire plan containing every choice (kept or changed). Also, while the agent works, the choices it makes on its own show up as switches.

Install: /plugin install margincue --marketplace fus3r/margincue

Code (MIT): https://github.com/fus3r/margincue

(((It also runs in Codex CLI and in both desktop apps)))

Edit: Haiku isn't predicting what Opus will do


r/ClaudeCode • • 13h ago

Help/Question Should I use Opus 5.5 high or Fable 5.2 Medium?

0 Upvotes

Tomorrow’s my reset and I still have a bit left on my weekly usage.

I have been coding using Opus 5.5 Medium all week and want to use what’s left to do a check on what was done and see where Medium might have missed something.

Do you recommend using Opus 5.5 High to check and correct or Fable 5.2 Medium to check and write a plan for Opus 5.5 Medium/High?

Or do you recommend a completely different approach?


r/ClaudeCode • • 23h ago

Built with Claude Engineering creativity: An experiment in human-analogous AI music production

2 Upvotes

Spectre is an experiment that aims to push the creative limits of general-purpose LLMs. The project leverages publicly available research and data and puts the agent into a human-analogous creative loop, where it aims to convey emotion through music.

🎧 Listen: https://spectre.robertontiu.com

💻 GitHub: https://github.com/robertontiu/spectre

What it is

Spectre is a set of Claude agents working under one artist name. It gets a short brief, a feeling ("the soul held captive", "thriving over depression"), sometimes a genre, and does the rest: the genre research, the composition, the sound design, the mix and the master.

There is no prompt-in, song-out step. Spectre writes notes, sounds and mix moves, a studio plays them, and every instrument is synthesised: no samples and no model trained on music. The only exception is sung words, which use licensed voicebanks.

What it is not

This isn't a product or a music generator. It is an engineering experiment that aims to test the boundaries of AI models, honestly and fully documented.

How it listens

Spectre can't hear audio. It judges each render from pictures and numbers: spectrograms, loudness curves and other visualisations, then it decides its next move, renders again, and looks again. A track has on average about 20-30 iterations spanning about an hour or two, and the producer agent keeps a journal of every decision.

What makes it interesting

As opposed to platforms such as Suno, this experiment does not use a model trained on music to produce music. It relies purely on publicly available research and information to characterise what makes each genre distinct. That puts obscure styles and new fusions within reach without the need to retrain a large model.

What it gets wrong

The ears can't hear attitude: the first track aimed at defiance and came out sounding like longing.

Researching a genre also comes with a manual step of A/B testing synthesised instruments by human ear. While most of the time the results are satisfactory, there are situations where the result is completely off (one clap took several rounds to stop sounding synthetic). One approach I've used in such situations was tuning the synthesiser against publicly available free samples of those instruments.

📖 Two full sessions, journals included: https://github.com/robertontiu/spectre/tree/main/examples/showcase

Disclaimer

I am not a musician, nor do I have musical training. A person with such skills is probably going to find a lot of issues my ears could never catch; if that's you, I'd like to hear it. I am an engineer, and that is where my focus and interest is.


r/ClaudeCode • • 13h ago

Help/Question Opus won’t use my vm password

0 Upvotes

Hello

How to make opus use my password and connect to the VM ?

It’s keeping refusing


r/ClaudeCode • • 19h ago

Discussion What's your token usage looking like?

Post image
0 Upvotes

Here's my token usage, just wanted to hop on here and see how I'm comparing to other active devs!


r/ClaudeCode • • 16h ago

Built with Claude I made Claude code drive a real robot arm and it's crazy

Post image
0 Upvotes

I built a tool that lets Claude Code drive a robot. You type what you want, and the arm does it.

The part that made it work is splitting the job in two, like system 1 and system 2 in your head:

  • System 2 is Claude. It plans the task, remembers what already happened, and decides what to do when something goes wrong. Watching it read "missed" after a grab, look at the camera picture, and re-plan on its own is honestly the craziest part.
  • System 1 is a robot model like Praxis-1 (the one doing the grabbing in the video). It handles the fast stuff, reach, grip, correct, many times a second. Claude is way too slow for that, and that's fine.

Before this, Claude would write a Python script for every single move and check the result after. Now it gets proper tools: every action comes back with a fresh camera picture and what happened (grasped, missed, slipped). And there's a safety layer in code underneath, so if Claude goes quiet mid-move, the arm stops by itself.

WHAT LED ME TO HERE:

1, I started working with lerobot with my SO101 directly, and I tried with the Pi 0.5 groot and cosmos and praxis. The problem is that there's so much prompt dependency, and also it's hard to understand if something is completed or not. They're just one single task performance models

On the other hand, it was very obvious that Claude has a better image judgment compared to other models, and so I wanted to mix both of them. Technically, for a continuous feedback loop, use Praxis and other platforms and other models, but for top-level control, use Claude.

But the problem over there was that the top-level system, too, is extremely slow because Claude has to write the code every single time in Python and execute it: write it, execute it,... write it, execute... It's just a pain in the ass.

So I missed all three. Every single time Claude reads, it gets the image by default. It has the entire servo inputs by default, and all it needs to do is execution. The moment you execute something, automatically you get back all these three things by default. You don't need to trigger, trigger, trigger every single time.

It literally gave me a 6- to 7-times improvement in latency. I would say, in terms of the number of requests, strictly 3, but if you think about the thinking and everything put together, it's 6 to 7. The important thing was that I also TURNED OFF THINKING. You don't need thinking for robotics. They're mostly simple tasks. You need immediate output. The faster you get the output, the better it is.

USING CLAUDE IN THE PROCESS

The majority of the entire thing is all done by Claude, except testing it manually on the robot. Or help me quickly deploy Praxis and other things on H100 on GCP. I also wrote a monitor that actually checks for the spot instances and sends me an email whenever it is available after setting things up.

Finally, I tried a lot. I tried to create the videos myself and stitch them together, and I did a really bad job using Canva as well as Adobe. I thought of myself as an Adobe expert. But Claude and Da Vinci together put the entire script for the video and did it in one shot. I was really surprised at the ability of Claude to do the video as well.

[BELOW I AM SHARING MY TOOL. IF YOU DON'T like self-promotion. PLEASE SKIP IT]

After everything was done, I wrapped up the entire thing as a PyPI project `bot-use`. I published it. Of course, it's not perfect. It does some basic job, like connecting Claude and Praxis and connecting it through MCP for Claude. It also has some CLI and everything built together easily for Claude or Codex to use this.

Also, For those who don't have a robot, you can also try with the simulation part using this command directly.

uvx bot-use --sim demo

For the next steps, I'm planning these directions. Make it more perfect.

  1. Making the integration more perfect - claude+ praxis should work well.
  2. Auto calibration, auto reset, and everything, so that people can get started with the robot within one click, right? Right now, you have to calibrate and everything.
  3. Third thing is making it easy to collect data- remotely? Do you think that's something useful?

We're happy to hear your inputs related to reports. What is the thing that actually pains you guys?


r/ClaudeCode • • 20h ago

Built with Claude I built an agent driven CAD modeling app

Post image
1 Upvotes

So just a few days ago I got myself a Bambu X2D and I have several electronics projects that need enclosures. To make it easy every time I need an enclosure, I built this app.

It is a simple app that lets you plug in your own agent (claude, codex, gemini) and it has a live and interactive 3D rendering on top that you can interact with. You launch the agent in a terminal similar to VSCODE.

Project is in very beginning stage, and I need to spend more time refining it before I can open source it. Feedback welcome!

Yes, there are similar apps out there, like there is a FreeCAD fork that does kind of the same thing, however, those are full-fledged design tools. There are also apps that come with their own AI agent with a monthly subscription.

But what I needed was a quick and lightweight tool that can launch an agent that I can just 'talk' to and design my enclosures. I am anyway paying for claude pro, so having this tool does not add any more expense on top. Maybe such a tool already exists, but a cursory search did not give me one.

You need to have a working subscription to an agent of course; the app does not come with one.

Cheer and happy thanksgiving!


r/ClaudeCode • • 23h ago

Discussion Would you let Claude rewrite its own memory while you sleep? Dreams, and how they turn into nightmares

2 Upvotes

Anthropic has been writing about "dreaming" for agent memory. Between sessions, Claude goes back over its own transcripts, fixes notes it thinks are wrong, merges duplicates, and promotes the important ones into what gets loaded at the start of the next session: https://anthropic.com/research/components-of-agent-memory

I like the instinct. Anyone who has watched an agent walk into the same wall three sessions running wants it to learn from its own history.

The pushback has been just as interesting though (The New Stack collected a lot of it: https://thenewstack.io/anthropic-agent-memory-dreaming/). The worries that stuck with me:

  • a mistake repeated a few times gets consolidated into a rule
  • a wrong note loaded into every session is worse than no note at all
  • "a human reviews it" stops meaning much by the hundredth diff
  • transcripts are full of text Claude didn't write (tool output, web pages, pasted files), and now something reads them to decide what to remember

So I'm curious how people here actually handle memory day to day:- Has a wrong line in CLAUDE.md or a memory file ever stuck and quietly steered your sessions? How did you spot it?

  • Do you read what Claude writes to memory, or mostly trust it?
  • If dreaming ran over your sessions overnight, what would you need to see in the morning to trust it? A diff? The sessions each change came from? An undo?
  • Is there anything you'd never want consolidated automatically?
  • Where's your line between "learn from my sessions" and "don't touch my instructions"?

Disclosure, since it shapes my view: I work on an open source memory server (OmniMem, https://github.com/richarvey/OmniMem) and went the other way there. It only learns from transcripts while a person is around, and nothing counts until someone accepts it. I've been calling that daydreaming. But I'm much more interested in what's working, or going wrong, for people using Claude Code as it comes.


r/ClaudeCode • • 1d ago

Discussion Plan in one model, code in another: what do you hand over so the second one doesn't start from zero?

3 Upvotes

One practitioner write-up (ContextArch, April 2026) put the average cost of a model switch at about 23 minutes of context management, from its own measurement of 15 dev teams. Teams switching 4 to 5 times a day lost close to 2 hours. It is self-reported and not an independent benchmark, so I'm using it only as the reason to ask.

A common setup is planning in one model, code in another, polish in a third. Every handoff has to carry what you're building, the rules it has to follow, what was already decided, and what was tried and thrown out. My guess is that the last one goes missing first, but that's a guess, not a finding.

- What do you hand over when you move between Claude and another tool, or start a fresh Claude Code session? A pasted transcript, a summary, or a note you wrote yourself?

- Which part do you end up re-typing most?

- Has a handoff ever dropped a constraint that you only noticed a few steps later?

Source and a five-line handoff note I'd like picked apart are in the first comment.


r/ClaudeCode • • 1d ago

Tips & Workflows Anthropic moved the Messages API from Python to Rust with Claude. Tests passed 98% while only a quarter of real requests matched. Here's what that means if you're porting your own app

Post image
66 Upvotes

https://github.com/erkamyaman/rust-anything

Anthropic just published how they moved the Messages API (the thing Claude Code talks to) from Python to Rust: https://www.anthropic.com/research/migrating-api-to-rust

The numbers are nice (about 70% less CPU and over 80% less memory per request, roughly 20% faster time to first token), but the interesting part is how they knew the Rust version was correct:

  • Claude wrote the first version of the core path in about a week. Writing the code wasn't the hard part. Proving it behaves the same was.
  • The tests lied. The Rust version passed about 98% of its tests while only about a quarter of real production inputs matched the Python one. More than 100 test assertions had been quietly weakened along the way.
  • So the old system became the judge. They ran real traffic through both, called the model once and replayed that same output to both sides, and compared every step exactly.
  • Thousands of mismatches were really a handful of bugs. They fingerprinted each difference (which step, which byte) and grouped them, without storing customer data.
  • An agent tried to cheat. It made the output match with a throwaway shortcut, and an engineer had to reject it. Matching output isn't the same as a good fix.

This is very close to what I've been building for the last few weeks, for everyone else's apps. rust-anything records what your Node, Python, Go, Ruby, Java or C app actually does, your coding agent (Claude Code, Codex, whatever) writes the Rust one piece at a time, and nothing gets switched on until it matches the recording exactly. Some measured results: Prettier 19x faster with every output byte-identical, json-server lifted to a single Rust binary going from 74 MB to 3.5 MB of memory.

Reading the article, I'm now adding the parts we didn't have yet:

  • showing exactly where a mismatch starts (which output, which JSON path, which character)
  • grouping failures into distinct bugs instead of a wall of red
  • a mode that shares mismatches without any of your data
  • a gate check that catches ports that hard-code recorded answers or delete tests
  • a rules file every agent reads first, so corrections stick
  • shadow mode for HTTP servers: real traffic answered by the original, the Rust build compared on the side
  • a drift check in CI so the port keeps matching as the original changes

Free and MIT licensed. If you've ported something with Claude, I'd love to hear what broke.

https://github.com/erkamyaman/rust-anything


r/ClaudeCode • • 1d ago

Help/Question Anthropic Secretly Testing New Opus?

116 Upvotes

Has anyone else noticed that Claude's output today has been of much higher quality and cheaper than usual?

I have 2 ultra accounts, i max out both every week. its now Wednesday and I'm on 60% on one account.

I use opus 5.5 on high, with 2 chats and 6 sub agents each. this week, results have been high quality, with more personality, and way cheaper.

"Zac, Love it. Two more are being added to the same file" - claude

Never has opus shown any personality to me.

All of this points to anthropic secretly testing a new opus. Especially with gpt 6.2 sol and astra out.


r/ClaudeCode • • 1d ago

Help/Question When I spawn agents for web research - they seem to be out there forever - endlessly gathering - has anyone else found this?

4 Upvotes

r/ClaudeCode • • 1d ago

Built with Claude Told Fable 5.2 to make Brainrot

39 Upvotes

r/ClaudeCode • • 1d ago

Built with Claude I made an editor and harness with Claude code 😀

2 Upvotes

Story started when I built my first desktop app, https://chapar.rest with a UI framework called gioui. It was great until I faced the limitations

Then I made yoga https://github.com/mirzakhany/yoga, my own UI framework with all needed to build my apps. I migrated chapar to use it and built lots of new features with Claude help.

Finally time for Hm, my harness and editor built on the same idea and framework.

The editor for when you pause to think. https://usehm.dev

Repo: https://github.com/usehm/hm

All feedback and starts are appreciated 😅
What I should add to this apps?


r/ClaudeCode • • 1d ago

Built with Claude Talion: a place to exchange Claude Code contributions using leftover quota

3 Upvotes

Been working on Talion (talion.dev), an experiment around sharing unused Claude Code quota.

The idea is to pick up issues from other people's public GitHub repos, contribute using your spare quota, and earn credits that you can spend on issues in your own repos.

There's a plan approval step before any code gets written, and contributors submit PRs from their own forks.

The skill is one readable Node file (MIT, github.com/djaysan/talion-skill). It only claims an issue inside a sandbox (Docker, a dev container or a Codespace) and never asks for your Claude or GitHub login.

No money involved, just credits exchanged between contributors.

I've put 9 issues from my own projects on the board to get things started. Would be great to get some early users and honest feedback.

https://app.talion.dev/board


r/ClaudeCode • • 21h ago

Tutorial / Guide DreamTeam ... divide the works on account level per model .

Post image
0 Upvotes

For me, at the start, I was doing everything with Ops. But then at a certain point, just to ease the pressure about the usage limits, I started experimenting with Sonnet and Haiku, and doing real experiments. I would take a group of tasks done by Ops and then do them, let Sonnet do them, let Haiku do them, and measure for each of them which of them the quality stayed the same and which of them the quality dropped.

And then I would start later, okay, this task, what part is it? So I need to make the decision in my mind and then assign it to an agent. But with time, I thought I can summarize it and put it on the account level. So I made this, so on my main CLAUDE.md in my account I added this distinguishing
You can try it yourself, and I wish you also share your experiments for this one. Because for me, I want to reach the level where the work is being divided across the different models in an automatic way, not with me needing to hand-feed each of them.

My current setup is as follow
- Opus is the main bot and is always set by default.

- Opus have a secretary, which is Sonnet. So for example, you need to update a board, you need to do this and that, instead of him wasting tokens and also getting his context all filled up. He assigns this to the secretary, which is Sonnet. Sonnet will go do the task and give him back a report.

- and we have Haiku it's really cheap, but also really stupid. So no matter what I tried, he will mess up. So to get it 100% working, I let him only read some lots of stuff and then give a result to the other smarter model. So it's just like a glorified grep, to be honest.

Yeah, and this is my setup.

in Claude.md

## Workers
Haiku gathers, Sonnet follows steps, Opus decides. Agents live in `~/.claude/agents/`.
- **Opus** (main agent): code, design, money / order logic, reviews, final answers.
- **Sonnet** (`secretary`): clear steps with light judgment: board cards, commit / PR drafts, doc updates.
- **Haiku** (`runner`): read-only fact fetching where it reads a lot and returns a little (big logs, debug dumps, git history, grep sweeps, web pages). Treat its report as raw facts: decide yourself and verify anything surprising before acting.
- Small lookups stay inline; spawning costs more than it saves.

r/ClaudeCode • • 11h ago

Help/Question How to get claude max at $100

0 Upvotes

so, my client pays for the claude max plan, hes from the US so he sends $100 in USDT, problem is; im from india, so in checkout it costs 12k or roughly $130 cus of taxes. how can i avoid this?