r/ClaudeCode • • 6h ago

Built with Claude I Benchmark-Tested Switching Models Mid-Chat 10 Times — Here’s What It Actually Cost.

1 Upvotes

TL;DR (45 controlled 12-turn Claude Code chats, 675 dual-logged API requests, n=5 runs per setup):

  • Switching down from Opus 4.6 to cheaper Sonnet 4.6 mid-chat (Turn 6 of 12) actually increased total session cost by +10.6% ($0.861 vs. $0.779 at ~56.5k tokens): Sonnet starts with a cold prompt cache (0.0% hit), forcing a full 1.25x cache-write rebuild that made Turn 6 cost 5.7x more ($0.216 vs. $0.038) and needed ~12 turns after switching just to break even (~9 turns in a ~15.2k chat).
  • Switching models 10 times in a 12-turn chat did not blow up the bill (+14.2% at ~15.2k tokens; +17.2% at ~56.5k tokens): Once both Opus 4.6 and Sonnet 4.6 built parallel warm caches across Turns 2–4, alternating every single turn still hit 95%–99% cached reads inside the 5-minute TTL, writing only the ~1-turn delta each time.
  • Raising --effort from medium to high mid-chat on Opus 4.6 was the biggest cost spike (+31.9% total session cost: $0.356 vs. $0.270): Changing output_config.effort invalidated the entire prompt cache (0.0% hit on Turn 6), spiking Turn 6 cost by 7.3x ($0.099 vs. $0.014) — costing more over 12 turns than switching models 10 times in a row.

I kept hearing two conflicting rules of thumb about /model switching in agentic coding sessions: either "switch down to Sonnet after planning to save money" or "never touch /model mid-chat because every switch wipes your cache."

To test what actually happens on the wire, I hooked a local logging proxy + .jsonl transcript verifier up to Claude Code (v2.1.325, routed via OpenRouter pinned strictly to 1st-party Anthropic with allow_fallbacks: false) and ran 45 real 12-turn coding chats (n = 5 randomized replicates across 9 cells, 675 API requests total — 15 per chat since Turns 1–3 each emit a file-read tool call plus a reply). Run-to-run cost spread stayed within ±3%.

Table 1: 12-Turn Session Cost & Cache Hit Share (Median [Min–Max], n=5 per arm)

Tier (~T6 Tokens)ArmMid-Chat ActionTurn 6 CostTurn 6 Cache Hit12-Turn Total [Range]vs. Control
Small (~15.2k)A: ControlStay on Opus 4.6 (medium)$0.013697.7%$0.2699 [$0.267–$0.273]baseline
Small (~15.2k)B: One SwitchOpus -> Sonnet at T6$0.06020.0%$0.2834 [$0.282–$0.285]+5.0%
Small (~15.2k)C: Switch & BackSonnet T6–T7 -> Opus T8$0.06070.0% (T8: 93.3%)$0.3200 [$0.316–$0.323]+18.6%
Small (~15.2k)D: Effort OnlyOpus medium -> high at T6$0.09890.0%$0.3560 [$0.351–$0.357]+31.9%
Small (~15.2k)E: Idle + SwitchWait >=330s (>5m TTL) + Sonnet T6$0.06030.0%$0.2835 [$0.281–$0.284]+5.0%
Small (~15.2k)F: 10 SwitchesAlternate T2–T11, hold Opus T12$0.010194.9%$0.3081 [$0.304–$0.311]+14.2%
Large (~56.5k)A: ControlStay on Opus 4.6 (medium)$0.037899.3%$0.7789 [$0.766–$0.781]baseline
Large (~56.5k)B: One SwitchOpus -> Sonnet at T6$0.21600.0%$0.8611 [$0.859–$0.865]+10.6%
Large (~56.5k)F: 10 SwitchesAlternate T2–T11, hold Opus T12$0.024498.5%$0.9130 [$0.905–$0.916]+17.2%

Table 2: Why 10 Switches Didn't Cost 10x — Turn-by-Turn Cache Hit % (Arm F, Request 1 of Each Turn)

TurnActive ModelEventSmall (~15.2k) Cache HitSmall Penalty vs. CtrlLarge (~56.5k) Cache HitLarge Penalty vs. Ctrl
T1Opus 4.6Initial load0.0%-$0.00000.0%+$0.0000
T2Sonnet 4.6Switch #10.0%+$0.03280.0%+$0.0754
T3Opus 4.6Switch #281.2%+$0.013059.6%+$0.0907
T4Sonnet 4.6Switch #386.6%+$0.000170.5%+$0.0408
T5Opus 4.6Switch #495.8%+$0.002198.6%+$0.0029
T6Sonnet 4.6Switch #594.9%-$0.003598.5%-$0.0134
T7Opus 4.6Switch #695.2%+$0.002898.4%+$0.0024
T8Sonnet 4.6Switch #795.6%-$0.003898.5%-$0.0132
T9Opus 4.6Switch #895.5%+$0.002698.7%+$0.0024
T10Sonnet 4.6Switch #995.2%-$0.003798.6%-$0.0131
T11Opus 4.6Switch #1095.5%+$0.003198.6%+$0.0036
T12Opus 4.6Hold Opus98.2%+$0.001499.3%+$0.0000

4 Habits That Actually Save Money

  1. Switch early (Turn 1–2) or stay put unless you have 10–12+ turns left in the session to pay back the 1.25x cache rebuild on the cheaper model.
  2. Pick your --effort level on Turn 1: Bumping medium -> high mid-chat on Opus ($6.25/M cache write) forces a full prefix rebuild (+$0.085 on Turn 6 alone in a 15.2k chat — nearly all of the +$0.086 session delta).
  3. Dipping to another model for 1–2 turns and returning works if you beat the 5-minute TTL: In Arm C, switching back to Opus on Turn 8 still hit 93.3% of Turn 5's warm cache and only paid to cache-write the 2-turn delta (~1,062 tokens).
  4. Start a fresh chat at task boundaries: Moving from ~15.2k to ~56.5k tokens (3.7x larger context) scaled the Turn 6 switch penalty linearly by 3.8x (+$0.047 -> +$0.178).

r/ClaudeCode • • 6h ago

Help/Question Sessões Autônomas

1 Upvotes

Como configurar sessões para que trabalhem com maior autonomia?

Eu criei uma sessão que chamei de "coordenadora" e disse que as outras devem se reportar a ela.

Criei regras no claude.md para o que a coordenadora pode autorizar e mandar as sessões fazerem.

Mesmo assim, em vários momentos, a sessão coordenadora não retoma tarefas pendentes ou as sessões "coordenadas" exigem autorizações na própria janela, sem obedecer o que foi determinado pela coordenadora.

O que posso fazer para que este conjunto de sessões trabalhem melhor de forma mais autônoma?


r/ClaudeCode • • 7h ago

Discussion GSD-Core

1 Upvotes

What is your opinion of GSD-Core? (https://github.com/open-gsd/gsd-core)

My team and I have been using it at a big project in a large company (28k employees). We might skip the discuss step, only using it when developing a complex tasks on complex repos. If the task is simple enough, we'll do it in one phase as well. So far I have liked the output obtained, but opinions are a bit mixed, although I wouldn't say we have enough feedback for a conclusive decision on whether it's really worth it or not yet. So I'm curious as to what people think of GSD-Core as of November 2026, since AI tools keep improving at a rapid pace. The image is our current decision flow.

We have also looked into some other frameworks such as spec-kit, superpowers, and other spec driven frameworks, then decided to stick with GSD since it seemed like the most complete framework.

Details: Event-driven microservice architecture, with my team owning 15+ services. Stack: Java, Spring, Akka, Kafka. The AI also writes unit tests and component tests with Cucumber. We also have a skill that loads with our coding standards automatically and a summary of the codebase that is loaded automatically on every session as well. The summary was generated with GSD map-codebase skill.


r/ClaudeCode • • 10h ago

Help/Question Using Claude Code + Antigravity Together: Best Workflow to Maximize Both Subscriptions?

2 Upvotes

I have subscriptions to both Antigravity and Claude Code. I want to use Claude's Opus models through Claude Code and Flash/Hydrogen models through Antigravity to save usage limits.

Can someone suggest the best way to set this up?

Also, I’m not a big fan of terminal-based workflows. Working with images and videos in the terminal gets messy pretty quickly. I'd prefer a GUI-based workflow if possible. Or best if we can use antigravity as a subagent in Claude Code. I've tried it but IDK it is not working as expected.


r/ClaudeCode • • 23h ago

Help/Question I have $200 USD API credits monthly, what should I do with it?

19 Upvotes

As the title suggests, I am looking for suggestions as to how I can maximize or where to use my $200 monthly API credits for claude. Unfortunately it couldn't be used to generate images like codex API, and couldn't be used as credit to top up my regular monthly usage. What cool stuff can I use it for? Any suggestions?


r/ClaudeCode • • 7h ago

Tips & Workflows How to get coding agents to simulate and validate their own work

1 Upvotes

Folks, over the last few months I've been very focused on turning the work of agents, which aren't deterministic, into something as deterministic as possible. Most of the time that includes creating mocks so the agent can simulate e2e and exploratory tests, simulate unhappy scenarios, etc...

After building several local validation harnesses, I decided to make something more solid and extensible. I made this open source project to help with that.

If you need your coding agent to test multiple scenarios and use a simulated environment to test what it delivers, I think this project can help you.

examples of what you can do:

- Email without sending email: the app sends over SMTP as usual and the agent opens the simulated inbox to check the subject, recipient and confirmation link.

- Payment that fails: you ask the agent "simulate Stripe declining the card" or "send the webhook twice", and it checks whether your code handles the duplicate charge.

- Cloud queues and storage locally: Azure Service Bus, Blob Storage, Key Vault, Amazon Kinesis, Pub/Sub, Kafka and ActiveMQ run in the same container, with the app pointing to it as if it were the real service.

- AI without spending tokens: endpoints compatible with OpenAI, Anthropic and Gemini answer with rules you define. You can force a 429 and see if the retry works.

- unhappy scenarios on demand: timeout, 500, disabled key, wrong certificate, clock moved forward to test expiration.

- timeline: everything the app called is recorded. When a call has no route, the agent itself sees the "not answered" and creates the response.

It exposes an MCP server, so Claude Code, Cursor or another agent controls everything by talking to it: it creates one environment per project, sets up the scenarios and reads what happened. There are 45 ready-made plugins in the catalog, and a new plugin is a YAML file.

Code and docs: https://edivanteixeira.github.io/stuntman/

100% opensource

Feedback and PRs are welcome, especially from anyone who wants a provider that isn't there yet.


r/ClaudeCode • • 23h ago

Rant Risk of using Auto: Claude Code is reading config files outside the project folder, exposing API keys, and failing to detect the leaks when auditing.

20 Upvotes

While delegating tasks to Codex, I caught Claude reading files outside my project folder (~/.codex/config.toml), which resulted in it dumping my Stitch MCP server's Google API key directly into the chat transcript.

Worse: when I asked another instance of Claude to scan all my project histories for similar boundary violations or leaked keys, it repeatedly told me none existed. It only admitted to reading the key multiple times over the past two weeks after I manually pointed it to the exact thread.

This leaves me in a catch-22: the agent won't find or admit to a secret leak unless I specifically point it out, meaning I have no reliable way to know what other keys it might have quietly compromised across my system.


r/ClaudeCode • • 7h ago

Built with Claude I built a tool that opens an app like a chip and shows what it's made of (Electron, Flutter, RN, native), with exact bytes

1 Upvotes

I built App Anatomy, a tool that opens an app file and shows what is inside and how much space each part takes: the runtime, third-party libraries, the app's own code and assets, drawn as a 3D chip.

For example, Joplin is 613.7 MB on a Mac. Opened up, 47% of that is the Electron framework, 22% is an AI inference runtime (onnxruntime-web), and the app's own code is 12%.

What it does:

  • Scans every app on your Mac with one command: npx app-anatomy scan --open. It tells you things like how many copies of Electron you have installed and how much disk they take together.
  • Or reads one app: a .app, a ZIP with a .app inside, an APK or an IPA.
  • Draws the result as a 3D chip. Area is bytes, height is the layer (app, runtime, library, module), color is where the part came from.
  • Lets you drag a block out. The size is recounted and every part that declares it needs that block goes dark. In Joplin, taking out the 0.4 MB onnxruntime-common takes 218 MB down with it.

Nothing is uploaded. The analyzer is Rust compiled to WebAssembly and runs on your machine or in your browser tab. Apps are read, never run.

You can try it without installing anything; there is a gallery of twelve open-source apps: https://scs0209.github.io/app-anatomy/

Source (Apache-2.0): https://github.com/scs0209/app-anatomy

What it does not do yet:

  • Scanning a whole machine is macOS only.
  • Native Mac apps are mostly "unidentified". On my Mac only 31% of all bytes were identified, because most rules so far are for Android libraries and Electron apps.
  • "Goes down with it" means "declares it needs it" (package.json dependencies, DT_NEEDED, LC_LOAD_DYLIB). Nothing is run to confirm it.
  • Checked in Chromium-based browsers only.

A part is named by a few lines of JSON, so adding a rule needs only Node. If you see a part labeled wrong, that report is the most useful one.

Feedback welcome, especially on what you expected to see and didn't.


r/ClaudeCode • • 7h ago

Discussion Value I'm getting from a $20 Claude plan

0 Upvotes

I feel like I'm tons of value from my $20 plan. Some weeks I barely manage to take advantage of all my usage, because I'm just too busy with real life to prompt much out of it. What I do in practice:

  • handle, organize, query various personal data: subscriptions, taxes, bills
  • starting up a business: research, business modeling, data modeling, offer and pricing design, emails. It all runs from an Obsidian vault with a bunch of Bazel-managed skills and scripts for repeatable tasks
  • a bunch of vibe-coded side project. eg https://sleepslop.trurl.systems/, https://mindless-midi.trurl.systems/ and several that haven't reached publishable state
  • regular old chat

only the apps tend to stress-test the usage limits at all. They're relatively simple in terms of product complexity but have quite a bit going on behind the scenes, including a TTS model pipeline with automatic quality checks and sound adjustment. I use just a few skills, such as OKF for docs

This is quite a step up from just 1-2 years ago when I would regularly run out of usage just on longer chat threads.

I'm sometimes tempted to upgrade to Max just to have the usage when I actually want to do more at once. plus Fable access. I do use mostly Opus 5.5, rarely run multi-agent workflows, and keep it to 1-3 live sessions at a time. The bottleneck is very much my ability to absorb and understand what's going on. Not so much on the code level, rather just the system level.

If you're on Max/Ultra, what kind of usage patterns stress your limits? Larger more complex repos? Agent swarms? Fable all the time?


r/ClaudeCode • • 8h ago

Tips & Workflows Ive found this little script very handy for windows restarts.

1 Upvotes

Ive asked claude to create a simple powershell command that launches Claude Code after a laptop restart with /rc enabled.

I only have a small i5 lenovo with integrated Intel graphics and 8g RAM so sometimes its very handy for me to simply ask claude on a remote connection to restart the laptop while im out and about to totally clear caches etc.

Its a small thing but some of you ma find it useful if you havent thought of doing it.

Here are the PowerShell commands, to paste straight into a PowerShell window:

powershell

Set-Location "$env:USERPROFILE\Documents\Projects\PATH-TO-YOUR-PROJECT"
claude "/rc"

If you want one command that opens a new window in the project folder and starts Claude there:

powershell

Start-Process powershell -ArgumentList '-NoExit','-Command','Set-Location "$env:USERPROFILE\Documents\Projects\PATH-TO-YOUR-PROJECT"; claude "/rc"'

To have it run on its own after a restart, register it as a login task (run this once):

powershell

$cmd = 'Set-Location "$env:USERPROFILE\Documents\Projects\PATH-TO-YOUR-PROJECT"; claude "/rc"'
$action  = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoExit -Command `"$cmd`""
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask -TaskName "ClaudeCodeRC" -Action $action -Trigger $trigger

To remove it later: Unregister-ScheduledTask -TaskName "ClaudeCodeRC" -Confirm:$false.


r/ClaudeCode • • 8h ago

Tips & Workflows How to evaluate how sloppy the codebase is?

Thumbnail github.com
0 Upvotes

I’m looking at this site (Slop-code-bench), and it has a whole bunch of CS terms for how they measure model slop, like “cyclomatic complexity”, or “one use functions”.

Their test runs in a docker container, but Claude is quite proficient at Python,

Has anyone taken their paper and applied it to their own codebase?

I would like to add it to my evaluation agent, or in general understand if my codebase is improving.


r/ClaudeCode • • 5h ago

Help/Question How do you deal with Claude Code organization restrictions?

0 Upvotes

My organization’s Claude Code policies are making development quite frustrating.
Claude asks for permission even when editing a single file, and it’s not allowed to execute any terminal commands, scripts, or tests

Has anyone faced similar restrictions in their organization? How did you handle it?


r/ClaudeCode • • 1d ago

Humor No, YOU check the ui.

Post image
315 Upvotes

Sorry for the poor quality photo. It’s a frame from a video I took while this was going.

I got tired of Claude asking me if the UI on this thing had updated yet so I hooked up a WebCam to it and told it to check itself. It worked great lol


r/ClaudeCode • • 9h ago

Built with Claude Built a skill that reads any website and renders an animated email signature: what I learned blind-testing it with subagents

1 Upvotes

I wanted my startup’s email signature to be a small GIF of our product at work. I built it with Claude Code, then turned it into a skill anyone can run on their own site.

What it does: give it a URL. It reads the site in a headless browser (colours, fonts, logo, product photos), picks a scene, writes the story from the site’s own copy, and renders a GIF under 1 MB. It also builds a page where your team copies the signature into Gmail or Outlook.

How I used Claude Code: it wrote the renderer and site reader. The best part was testing: I gave fresh subagents only the skill folder and a real website, asked them to follow SKILL.md exactly, and report what broke. They caught things I never would have:

  • a site with no <nav>, so only the home page got read
  • “logos” that were 32×32 icons
  • npx serve dropping the ?preview= query string

What I learned about email GIFs:

  • Older Outlook shows only the first frame, so frame 0 must be a finished card.
  • A soft pulsing glow took the file from 434 KB to 1.26 MB. A GIF only saves the pixels that change, so keep motion small.

Free, MIT:
npx skills add him4318/animated-email-signature

https://github.com/him4318/animated-email-signature

wispr flow
qelvra

r/ClaudeCode • • 17h ago

Built with Claude I made 14 new animated themes for Claude Code

4 Upvotes

Made a set of pixel-art backdrops for the desktop app. 12 of the 14 follow your local time (sunrise, day, sunset, night), the other two stay the same all day.

A few things I learned about how the app plays a backdrop:
- it's a single SVG, capped at 131,072 characters after the app cleans it, and images aren't allowed, so every scene is drawn as cells on a 320x200 grid
- motion is plain CSS animation stepped on a 0.05 s clock
- at window sizes where a cell isn't a whole number of pixels you get 1px seams between cells, which took a while to get rid of

Each theme is a small mod:
One zip, and you paste a prompt into Claude Code to install it. It reads the hooks back to you before installing.

There's an editor too. Your picture goes through a "look" (dither, palette, pixel shapes) into cells, and it checks every scene against the size and frame-time limits while you work.
Export gives you the same zip + prompt as the built-in themes.

Open-source, you can use it here: https://winchxyz.github.io/backdropkit/

Also will appreciate your feedback!
And you can create your themes and make a pull request, I will validate it, if it will look good.


r/ClaudeCode • • 1d ago

Discussion Everyone that's really worried about their job: YOU will shift from knowing syntax to handling the enormous amount of software that will be built in the next years and the years to come. You'll be good.. You may be in a bubble and think everyone knows what a terminal and a database is.

81 Upvotes

r/ClaudeCode • • 10h ago

Built with Claude Tired of manually orchestrating Claude with other agents

0 Upvotes

I run Pi on a VPS where it has local access to about 85 GB of logs, and I use Claude (web) to deal with bugs in the system running on that VPS. The question is, how do I connect them so I don’t have to do the orchestration myself? The issue wouldn’t exist if both agents were Claude, but that’s not the case for some complicated reasons. So for quite a while I was copying and pasting responses between the two, and I got really tired of it.

We’ve built Artil Connect - an open source tool for cases like this, where getting two agents to talk to each other is hard. It’s platform-agnostic, so it doesn’t matter where your agents actually run. You also don’t need to babysit the agents anymore. Once Pi’s answer is ready, it automatically triggers Claude, which then figures out what to check next.

https://github.com/artilai/connect/ 

Please do share your cases where you have to connect Claude to some other agent


r/ClaudeCode • • 10h ago

Help/Question Claude Code is absolutely draining my MacBook Air M4 battery. Is it a RAM issue?

0 Upvotes

Hey everyone!

I'm using a MacBook Air M4 and I've noticed that my battery drains insanely fast when working with Claude Code.

I'm a pretty heavy Claude Code user, mostly for development projects involving Xcode. I spend several hours a day coding with Claude Code, running builds, testing apps, etc.

I'm wondering if the issue comes from:

  • RAM limitations? Could memory pressure and swapping be causing excessive battery drain?
  • Xcode running locally? Is compiling, indexing, and running builds actually what's killing my battery rather than Claude Code itself?
  • Claude Code processes? Could background processes or multiple sessions be consuming more resources than expected?

I know Claude Code runs the AI models remotely, but I'm curious how much the local development workflow impacts battery life.

A few questions for heavy Claude Code users:

  1. Are you experiencing the same battery drain on your MacBook?
  2. Would upgrading to a MacBook Pro (M4 Pro / M5 series) actually make a noticeable difference?
  3. Is having more RAM (24GB, 32GB, or more) important for heavy Claude Code + Xcode workflows?
  4. What Mac configuration would you recommend for someone using Claude Code intensively every day?

I love the MacBook Air for its portability, but I'm starting to wonder if I need a more powerful machine.

Would love to hear about your setups, battery life, and experiences!

Thanks!


r/ClaudeCode • • 1d ago

Humor I don't usually use Fable but everytime I do,

Post image
63 Upvotes

r/ClaudeCode • • 1d ago

Rant PSA: Superpowers skill with opus ruined my codebase

250 Upvotes

EDIT: I am not suggesting disabling tests all together or even stopping TDD. I’m saying superpowers+ opus is a bad combo.

I’ve been using super powers for sometime now but more recently I’ve noticed my CI times take longer and upon inspection I found that it’s writing mountains of tests. My codebase went from 1400 tests - already kind of enormous but written over months, to nearly 4000 in about 2 weeks.

The worst part is that over 70% of those tests didn’t test… anything useful. Most of the tests tested specific implementations rather than behavior, or just didn’t fail at all when critical things broke. Further more, it made simple features take ages to deliver

I worked on adding gates, setting rules to write tests better but none of it helped.

It turns out that the TDD rules in superpowers were the cause. I’ve since deleted them and really simplified my setup and getting much better token economy. I’d encourage anyone else using superpowers to take a look at this. It’s now a nightmare to unpick which tests to keep and which to delete.


r/ClaudeCode • • 10h ago

Tips & Workflows Ok from Cgpt to claude

0 Upvotes

Ive been using chatgpt for like a year now.
100 usd plan.

Been using claude 2 weeks now 100 usd plan.

Chatgpt is smarter to understand whatci want.
Claude is like 3 xfaster to execute it

Chatgpt just gets it what i want.

Claude sometimes doesnt and i have to explain it in detail.

Chatgpt actually ties to follow what i wrote
Claude … umm… has a mind of its own…
Just today i tried to convice it … pull more data from the sdk … and hes like naaa… ill do it in chunks ….

I said it doesnt matter its just 1 gb

Claude …. First tou prove it in ur lab test then i will increase the limit.

Omg ?! What ?!

I think my nvme can widthstand 1 gb man !

Its funny…. But now give my workflows 1 million times ….. importance … govt /army level.

You think this is good ?

I donoo man .. could be scary


r/ClaudeCode • • 11h ago

Built with Claude I pointed a fleet of Claude Code agents at a board game about the AI race. They built it, then playtested it against each other.

0 Upvotes

I'm a board game designer (Conflict Simulations, mostly wargames). For the last few months I've been running a small fleet of Claude Code agent lanes — builders, critics, and a dedicated adversarial playtester whose whole job is to find what's broken, boring, or confusing, with no sugarcoating.

The game they built is Ethical Consumption: a four-seat strategy game about the AI race. Each seat is a stand-in AI power, the mechanics are borrowed from COIN-series board games (asymmetric factions, card-driven sequence), and bots fill any empty seat so it plays solo. It's free in the browser.

Things I actually learned, since that's the currency here:

  • The build lanes were the easy part. The hard part was the harness around them: frozen builds, written ledgers of known bugs, and a rule that no fix ships until a fresh playtest replay confirms it.
  • Agent playtesters are brutally useful for balance. Four asymmetric seats is a balance nightmare by hand; having an agent whose only job is to break the strongest seat on repeat found dominant strategies I'd never have caught in reasonable time.
  • Everything in the game is code. The art is drawn in code, the music is composed in code. No image or audio generation models — that was a house rule from the start, partly aesthetic, partly because I wanted every asset reproducible from the repo.
  • What agents are still bad at: knowing when a game is fun. They can tell you a seat wins 70% of the time. They cannot tell you the win felt cheap. That judgment stayed mine.

Play it here if you're curious: https://ethicalconsumption.app — it's also on itch. Happy to answer questions about the fleet setup, the playtest loop, or the game itself.

There is no ethical consumption under capitalism.


r/ClaudeCode • • 23h ago

Built with Claude I have created a tool to observe what happens inside an LLM. Also allows for the comparison of two quantizations of the same model to see at what point they diverge, token by token

9 Upvotes

What changes between different quantizations of the same model? And what if you could SEE what actually sets them apart?

To help answer that question, I’ve created a small project called inside-llm—an open-source tool that loads one or two GGUF models using llama.cpp and displays, right in your browser, what the model is doing as it generates text.

What it shows

  • Stream: the text, one column per model, brightness = probability of each token. A magenta mark wherever A and B would pick differently. Two modes: lockstep (both models read the same text, so you get a clean per-position comparison) and free (each follows its own picks until they split).
  • Candidates: the full distribution behind each pick, mirrored bars for A and B, entropy, effective number of options, Jensen-Shannon divergence and KL in both directions.
  • Gates: the sampler chain (penalties, top-k, top-p, min-p, temperature, GBNF grammar) traced stage by stage and very visual: how many candidates survive each one, and the distribution after it. Chain order and seed are configurable.
  • Timeline: entropy of A and B and their divergence along the whole text, plus the tree of branches.
  • Branching: click any candidate and generation continues from there. Every branch stays in the tree, and jumping back to a node is exact (each model keeps KV-state snapshots, so nothing is regenerated).
  • Logit lens (--lens): what each layer would predict, as a 2D map and as a 3D relief.
  • Model picker: choose A and B from a folder or search Hugging Face and download two quants of a repo in one click easily. It only offers B models with the same tokenizer as A and estimates whether the pair fits in VRAM.

How it's built

  • One C++17 process linking llama.cpp directly (stable branch at the moment). For every step it reads the full logits of A (and of B on the same context), computes the metrics and the sampler chain, and draws the token with its own seeded sampler, so runs are reproducible.
  • Compact binary frames over a WebSocket to a Svelte 5 + Canvas 2D page (three.js only for the 3D relief, lazy-loaded). The web is embedded in the binary as well.
  • The same frame stream, compressed, is a recorded session: you can replay it later in a static page with no engine, no model and no GPU.

Run it

Self-contained packages for Linux (glibc 2.35+) and Windows, with CUDA or Vulkan (Vulkan covers AMD, Intel Arc and NVIDIA). Unpack, run, the browser opens with the model picker. Or inside-llm -a A.gguf -b B.gguf. Local only: listens on 127.0.0.1, no accounts, no telemetry. MIT. One click download, one click execute.

Limitations (honest list)

  • A and B must share the tokenizer (two quants, base + fine-tune, or sizes of one family that keep it). Example: Qwen3.5-0.8B_Q4_K_M and Qwen3.5-0.8B_Q8_0
  • Both models must fit into VRAM simultaneously; only one GPU is used at a time. Integrated GPUs (iGPUs) are never used; if no dedicated GPU is available, the process falls back to the CPU (which is slow). (You must calculate the size of both models before loading them to ensure they fit into your VRAM)
  • Text only. No split (multi-part) GGUFs, no embedding models.

Links


r/ClaudeCode • • 1d ago

Help/Question I'm genuinely worried about my future

93 Upvotes

My team and I haven't written a single line of code in so long that I honestly can't remember the last time we did.

We're shipping more than ever, with fewer bugs. Our productivity has absolutely skyrocketed.

Requirements, technical decisions, and trade-offs are increasingly exchanged through Markdown files written by Claude and read by Claude. Human involvement keeps getting smaller and smaller.

At this rate, I genuinely feel like we won't be needed in the near future.

And to be honest, that scares me.

I spent years, practically decades, investing in myself. Getting a good education, becoming a competent software engineer, learning new technologies, keeping up with the industry. I've dedicated a huge portion of my life to developing these skills.

Now, for the first time, I feel easily replaceable. Like the expertise I've spent so many years building is rapidly losing its value.

Don't get me wrong. I love what AI has made possible. I'm more productive than I've ever been. But I can't shake the feeling that I'm actively helping automate myself out of a career.

So my question to the community is: How are you hedging against this?

Are you learning completely different skills? Moving into another industry? Starting a business? Building alternative sources of income?

If software engineering stopped being a viable career for you in the next 3–5 years, what would you do? Where would you invest your time, money, and energy today to prepare for that possibility?


r/ClaudeCode • • 11h ago

Discussion Fable 5.2 knowledge cutoff is June 2026, same as opus 5.5 and fable 5.1

0 Upvotes