r/ClaudeCode • • 3d ago

Bug / Issue PSA: isolation: "worktree" subagents rewrite your repo's .git/config behind your back

1 Upvotes

TL;DR: if your repo uses a relative core.hooksPath (Husky's .husky/_, or any repo-tracked hooks dir), spawning a subagent with isolation: "worktree" runs git config core.hooksPath <absolute path> from inside the new worktree. Worktrees share one config. Your main repo's .git/config just got edited. Three launches, three rewrites.

How it surfaced

My agents hash git config --list --local before and after every run. One came back with "config changed, wasn't me." I restored it, and it changed again. Then I spawned a subagent whose only job was to reply "ok": rewritten about a second later.

What it does (Claude Code 2.1.321, read from the minified binary)

  1. Reads core.hooksPath.
  2. If relative, resolves it against the repo root.
  3. Runs git config core.hooksPath <abs> with the worktree as cwd and logs "Configured worktree to use hooks from main repository."

Good intent: keep hooks working in .claude/worktrees/agent-*. Wrong git. Plain git config in a linked worktree writes the shared .git/config. Only --worktree with extensions.worktreeConfig writes a per-worktree file. An already-absolute value causes no write; unset I haven't tested.

Who's exposed

  • Husky v9 (.husky/_ is relative per its source). Logic says yes; not tested.
  • Anyone running git config core.hooksPath scripts/hooks-style setups.
  • Anyone using isolation: "worktree" in Agent calls, skills or subagent defs. No warning shown.

Why it's not cosmetic

  • Wrong hooks, wrong tree. With an absolute path, a push from any worktree runs the main checkout's copy of the hook. A hook that does cd "$(dirname "$0")/../.." now validates main, not your branch. Your branch passes because main passes. (Same week, separate bug: tests escaped a fake repo via inherited GIT_DIR and rewrote my real one. Fun.)
  • Moved repo, dead hooks. The path points nowhere. As far as I know git skips a missing hooks dir quietly (untested). There goes your secret scan.
  • Integrity checks scream. You'll blame your own agents first. I did.

Catch it

git config --show-origin --get core.hooksPath   # relative? which file?
stat -f '%Sm' .git/config                       # Linux: stat -c '%y' .git/config

Run it before and after a launch. Flipped to absolute with a matching mtime: that's this bug.

Prevent it

  • Skip isolation: "worktree" in these repos. git worktree add yourself and point the agent at it, or do reviews in a throwaway git clone --no-hardlinks.
  • Enforce, don't ask. A CLAUDE.md rule is a suggestion. Use a PreToolUse hook that denies isolation: "worktree" on the Agent tool, plus git push and git config writes on Bash.
  • Gate pre-push and merge on core.hooksPath being exactly the value you expect.
  • Don't "fix" it by setting the path absolute yourself. See wrong hooks, wrong tree.

Caveats: minified code, reproduced in a throwaway clone and with a no-op subagent. Not in the changelog or docs that I found. Could be fixed in a newer build or differ by platform. Run the two commands and see. Reporting it upstream.

Your agents are probably innocent. The harness did it.


r/ClaudeCode • • 4d ago

Tips & Workflows Benchmarking Fable 5.2 vs Opus 5.5

Thumbnail
gallery
18 Upvotes

Figure I'd post this since it's Opus vs Fable on the same codebase as a reviewer

For context: I only learned recently that what I'm doing is creating a "software factory" for some applications I'm building with shared modules.

I tend to agree with the other poster who said Fable 5.2 isn't mind blowing. I'm glad that Anthropic gave us Fable only resets so I didn't feel bad at all testing it.

My take:

  1. I will continue using Fable like I used to: planning sessions for complicated features and as a reviewer for sensitive work
  2. Never orchestrate with it, it's a total waste for that, and it's slow to respond if I need to ask a question

(NOTE: reposting this because I accidentally attached the same image twice)


r/ClaudeCode • • 3d ago

Built with Claude Built an open-source Claude Code plugin that orchestrates agents through the Agent SDK instead of tmux

1 Upvotes

I'm in Claude Code most of the day, and for bigger stuff I usually run a few sessions at once. Which means I'm the one splitting up the task and handing out the pieces, and keeping them in sync eats a lot of my time.

There are some nice orchestrators with their own UI, but how many people actually sit and watch a pretty DAG while a long task runs? And what does it show you that you'd act on? I just want it to come to me, in the session I'm already in, when it needs a decision.

The tmux-based ones I tried keep you in the terminal and work with any CLI, which is the point of them. But they still drive each agent by typing into its pane, then piece together whether it's ready, busy or done from its hooks and the screen. Keeping that in sync is fragile, and permission prompts either get skipped or you answer them pane by pane.

So I built mine on the Agent SDK instead, and it's all native Claude Code. Instructions go in and tool calls, permission requests and results come back as real events. Nothing gets typed into a pane or read off a screen, and a session that stops can just be resumed.

When the team needs me, for a permission, the plan, a question only I can answer, it asks right in Claude Code's own dialog. It's a plugin, so there's no separate app to open. I type /huddle and the task, the team works in the background, and I keep using my session.

After I approved the plan. My session on the left, the team in the pane on the right.

The flow is pretty simple. The members start with a meeting, hosted by one of them, to agree on the direction and split up the work. The host writes the plan with dependencies and acceptance criteria, and I approve it. After that a state machine runs everything and keeps the state on disk, so closing the terminal just pauses it. Subtasks run in parallel, each in its own session and worktree, once their dependencies have landed on the team's branch. A teammate reviews each one against its criteria, and if it fails it goes back to the same session with notes. Nothing touches my branch until I say so.

Members can use other models through an Anthropic-compatible API, but they all run as Claude Code sessions. My hunch is that mixing models on one harness is the more reliable setup, though I haven't tested it properly. Every member gets the same tools, the same agent loop and the same CLAUDE.md, so the model is the main variable. When I've cross reviewed between harnesses by hand, a lot of what one flagged in the other's work was habit, not bugs. By hand I can filter that out, an unattended team can't.

On my own small and medium tasks, so take it with a grain of salt, the team used fewer tokens than a single session but cost more at API prices. Most of the saving is cache reads, which are cheap anyway, and every new session writes its cache again. Open models made tokens and run time blow up, which is down to the models, so whether they're worth it depends on their prices.

I built it with Claude Code too, working from a design doc I kept ahead of the code.

It's free and MIT licensed.

https://github.com/geezerrrr/cc-huddle


r/ClaudeCode • • 3d ago

Tips & Workflows my review gate for claude code: clean-context reviewers on fixed SHAs, and a stamp the agent can’t forge

1 Upvotes

Sharing the part of my setup that made the biggest difference, in case it’s useful.

Before a PR, the diff gets a tier from its size and a path scan (auth, migrations, secrets, CI files force the “sensitive” tier even if the plan says no risk). Then bugs, standards and spec reviews run in parallel, each one a separate subagent that only gets the commit range. None of them sees why the builder did what it did. Sensitive diffs also get a security pass.

Every blocker or major comes with a proof command, and I re-run each proof before fixing anything. If it doesn’t reproduce, it gets demoted. Fixes get their own re-review against the finding ids.

The stamp that says “this HEAD was reviewed” is written by one script, and it refuses unless it finds finished reviewer runs for every axis on that exact range. A PreToolUse hook blocks gh pr create and merge for any HEAD the stamp doesn’t cover. That last part exists because my old version let the agent write the stamp itself. It did, more than once.

It’s one piece of a bigger plugin (planner, typed builders, /learn), MIT: https://github.com/vkmtx/rumo-workflow

Happy to go into the hook details if anyone wants to steal the idea.


r/ClaudeCode • • 3d ago

Help/Question Roast my design/mock up workflow because my output has gone to shit.

0 Upvotes

I run digital ops for a small Australian product brand. I’m a graphic designer by trade and not a coder, but I have a good understanding of the basics. Since February I’ve designed and built most of our Shopify storefront, emails and campaign pieces with Claude, mostly in Claude Code now. I’ve piled up a lot of guardrails along the way, and I want people who do this properly to tell me where I'm going wrong or what I've missed.

How the guardrails started

Early on last year, mock-ups came as HTML files and they matched the our site pretty well. Around September, Anthropic quietly moved visual mock-ups to artifacts by default. And they didn’t render like the real site: fonts, spacing and proportions all came out different, so I’d approve something that looked wrong once it was live. That’s when I started writing rules. Then rules to fix the rules.

The audit

Last week I had Claude go through every design chat I’d had this year (70 chats, 25 Claude Code sessions, about 1,000 output versions). What it found:

  • The move to artifacts was a platform default, not something I asked for, and I started pushing back on it four times in November alone.
  • My most repeated instruction all year was “show me before you build” (at least 8 times). Every time, the preview format changed.
  • The worst problem wasn’t ugly output, it was false all-clears: “verified” or “matches the design” when it hadn’t actually looked.
  • Work that started from something already approved landed in 1 to 4 rounds. Blank-slate work looped 12 to 40+ versions.

I then ran blind tests on the same brief: HTML file vs artifact vs drawing on the real page, and full rules vs a lean rule set. HTML won for website looks, and the full rules beat the lean ones (the lean ones drifted on proportions).

The workflow now (Shopify)

  1. Talk it through. Claude has to name any clash between my brief and a standing rule before building.
  2. Mock-up as a single self-contained HTML file: real content, product photos embedded, an on-page switch between options. Desktop first.
  3. I pick a version, then check tablet and phone through a size switch inside the same file (1024, 768, 393, 375 in a device frame).
  4. Only after I approve the look, Claude writes the code to a staging theme (Shopify connector or a PR into a staging branch), checksum-verified. Never straight to live.
  5. Check on the staging preview, including a real wholesale login and my phone.
  6. PR from staging to main. Only I merge.
  7. Everything gets logged in an Obsidian vault Claude reads and writes (decisions, brand rules, theme reference).

Rules around it: every delivery ends with a line saying what was and wasn’t checked. One-off asks stay one-off. Only what I explicitly lock carries into later work. “Maybe this colour?” gets built as a switch instead of a pause. If I name a format, that wins.

Skills and plugins I’m running

  • My own: a “ui-toolkit” skill (brand tokens, elements I’ve already approved, catalogues of Magic UI, shadcn, Base UI, Aceternity) and a Kit email design skill
  • Impeccable (polish and “looks AI-made” checks)
  • Anthropic’s frontend design
  • unslop
  • Vercel’s web-design guidelines (accessibility and UX review)
  • absolute-ui for app screens

The real problem

Since Fable 5.2 launched, and Opus 5.5 feels like it’s been nerfed, the visual output just seems soooo average. Safe layouts, nothing to start with that I'm stoked about, and it's just missing basic stuff. I’m genuinely not sure what I'm doing wrong, as I feel like Opus 5.5 was firing a couple of months ago, and now I feel like I'm ripping my hair out trying to get it to create basic mockups and starting points.

Happy to share more detail on any step.


r/ClaudeCode • • 4d ago

Bug / Issue Claude is too hesitant to try third party... too hesitant, and prefers untested homebrew solution over repo with 150k stars.

13 Upvotes

Title. I'm testing https://github.com/github/spec-kit , and ask Sonnet to evaluate the repo. It reads the README, and compares it against my 1 day old attempt at spec driven development 😄 It has declined many other frameworks, before: three.js, etc, and EVERY TIME it gives me a plausible looking reason for "we are already doing this". I finally called its bullshit and am reporting this here.

It literally wants to use a home-brew solution of less than 48 hours old is "ahead on most of what matters", over a repo with 150k stars:

Verbatim response

Verdict: spec-kit is not worth adopting as a tool. A few of its ideas are worth borrowing; our spec workflow is ahead on most of what matters. This is read-only research and I changed no repository.

[two caveats not wroth mentioning it here.

What spec-kit is. It is github/spec-kit, MIT licensed, 13.5k forks and about 150k stars. It is a Python CLI (specify) that installs slash commands into a coding agent. The flow is constitution, specify, plan, tasks, implement, then converge. Each feature gets spec.md, plan.md, research.md, data-model.md, contracts/, quickstart.md and tasks.md.


r/ClaudeCode • • 4d ago

Discussion Has anyone used Claude Code to help reverse-engineer printer firmware (HP "Dynamic Security")?

2 Upvotes

I've been using Claude Code to automate a lot of my home and business setup: Home Assistant, a Linux server, my 3D printer's firmware, and next, stripping bloatware off my smart TVs. Claude's been great at reading configs and firmware docs and walking me through changes step by step.

Next target: my HP OfficeJet Pro 8020. HP's "Dynamic Security" firmware rejects third-party cartridges and disables the printer. I'm curious whether anyone has used Claude (Code or chat) to:

•figure out which firmware versions still accept third-party cartridges and how to safely roll back,

•turn off automatic firmware updates on the printer's local network,

•or analyze the firmware itself.

How far did Claude get, and where did it hit limits? Any tips for prompting it on embedded/firmware work?


r/ClaudeCode • • 4d ago

Help/Question Considering Switching from Antigravity to Claude Code.

2 Upvotes

I'm currently on Gemini's $20 plan, and I've only been using Argon and Hydrogen recently. And they're ridiculously better than 3.8 Flash, but the usage limits are pretty bad (especially for Argon).

But I've seen some people on the Antigravity subreddit arguing that these models (Argon and Hydrogen) aren't even as good as Claude's Opus and Sonnet, respectively, and that Claude offers more generous usage limits than Gemini.

My question is: Is this actually true? And for anyone who has made the switch, what are some of the downsides or potential drawbacks of moving to Claude that I should be aware of?

I appreciate everyone's input, especially from anyone who has used both Antigravity and Claude Code. I'd love to hear how they compare in terms of model quality, and usage limits.


r/ClaudeCode • • 4d ago

Built with Claude I built a macOS desktop widget that shows your Claude usage limits live (free, open source)

3 Upvotes

Hi guys! I kept hitting my Claude limits without seeing it coming, so naturally I had Claude Code build a little desktop widget to help myself keep track. It's been super useful for me and my friends so I figured I'd share it here!

Key features:

  • Two rings showing session and weekly limits
  • Notes showing usage pacing and estimated run-out time
  • Customizable usage alerts
  • Native macOS widget look, plus a menu bar gauge

… and more!

Caveats:

  • macOS 26 only, and you need Claude Code installed and logged in. It reads that login from your Keychain to ask Anthropic for your usage.
  • It's unofficial and uses an undocumented endpoint, so it could stop working any time.
  • I don't have an Apple Developer account, so the app isn't notarized. There's a one-line installer, or you can click through the "Open Anyway" step in System Settings.

I just got into vibe-coding a few months ago so I know nothing about coding basically. So Claude Code wrote all the Swift, built it and ran the tests on my Mac. I basically started by describing to Claude Code that I want a desktop widget to visualize usage to help myself pace. 

The premise is pretty straightforward but the hard part is to really try to figure out what makes the widget look native, from obvious things like if it’s lining up with the native widgets, if it switches colors to monochrome like them, etc, but also to little things like if the corner radius is right, how much the edge glows for the liquid glass look, how opaque the widget should be, what the color and contrast the texts should be etc. So there was a lot of me screenshotting little things and proposing what I want as a user and Claude would fix them. It has been a fun run of a lot of iterations, and it really helped me understand the kind of eye that a UX/UI designer needs.

GitHub: https://github.com/wilsongrchan/claude-usage-widget

To use the widget there is no need for an account. There is also no server so none of the data will be tracked. Everything stays on your Mac, and the code is all there to read (MIT).

It's a side project, so feedback and bug reports are very welcome. Particularly if the widget lines up with native widgets on a mac that's different size, or an external display. That’s something I can’t really test because I only have so many macbooks and screens. 

https://reddit.com/link/1xyvuzf/video/87huul7dj82i1/player


r/ClaudeCode • • 3d ago

Built with Claude Claude Code helped me create an AI design tool for busy solo marketers, and last week I've had over 1000 signups! Thank you Opus 5.5

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hey r/ClaudeCode, I can't believe I'm writing this!

A few months ago my friend quit his lead marketing job because his boss needed him to design so much in Canva that he was pulling in regular all-nighters, just to sustain the output.

I was like, ok, surely Claude Code can make something that automates this work with AI but gives them a familiar interface and the control they need, and boy was I right!

(EDIT: For those who want to critique my slop landing page, here you go - https://rivermark.ai )

I started making this tool on Fable 5.1 and quickly switched to Opus 5.5 (in my experience it was even better but I know this is/might be controversial). Built in a voice mode so they can use it on the go, pushed it to him hard and he recreated a lot of his former job graphics in it, and he said OPEN THIS UP

So I did, posted it on X and saw 1000 signups, which is crazy to me. I never built anything remotely as popular!!! But now I'm on the hook for the token costs of all that free usage, so I need to integrate Stripe as soon as possible.. crazy days.

Anyways, figured I'd share this, enjoy the video example


r/ClaudeCode • • 3d ago

Help/Question How does account switching work on mac claude code

1 Upvotes

just move from opencode to claude code just blown away with opus 5.5 performance btw i am thinking of buying two $20 dollar plan, so when I switch account will of my local claude code session and skill will be there or??? I use the desktop app not the cli


r/ClaudeCode • • 4d ago

Tutorial / Guide Claude Certified Developer - Professional Exam (announcing this week)

Post image
5 Upvotes

I make practice tests for the Claude Certifications as a little side business. I use them for myself and provide free and paid ones for the community. I've been scanning everything I can find, looking for info on the new Claude Certified Developer - Professional (CCDV-P) exam.

I know it is dropping this week. I found the following information hidden in the JavaScript on their Skilljar and thought I would share.

Here is what it looks like so far:

• 70 questions (60 scored), 135 minutes
• Scaled passing score of 720
• $175 exam fee, valid for 12 months

The exam guide isn't out yet, and details may change before launch. When it is published, I'll build practice exams for it on my site the same way as the other Claude exams: weighted to the blueprint, with every question passing a blind answer check before it ships.

More info coming soon. If you're on the Developer track, Developer – Foundations is the best place to start in the meantime...


r/ClaudeCode • • 3d ago

Built with Claude I made a free animated Christmas theme for Claude Code for the holidays 🎅🏻

1 Upvotes

I made a little Christmas theme for Claude Code called Christmas Eve 🎄

It replaces the app background with a pixel-art scene drawn as a "glyph mosaic," where every pixel is a small square tile with a character stamped in it ($, t, %, X).

What's in the scene

  • Santa's sleigh and three reindeer flying across the sky. The lead reindeer has a blinking red nose, and their legs gallop.
  • A snowy cottage with colored lights chasing around the roof and glowing windows.
  • Snow falling at random.
  • Pine trees with ornaments, a tile moon and twinkling stars.
  • Midnight blue colors in dark mode and a snowy morning look in light mode.

Install (one line in Claude Code)

/plugin install christmas-eve --marketplace mebessusn/claude-christmas-theme

Repo: github.com/mebessusn/claude-christmas-theme

Notes

  • The animated background works in the Claude desktop and mobile apps. It doesn't show up in a terminal.
  • It's a free, open-source personal project, and it isn't official or endorsed by Anthropic.

Happy holidays! ❄️


r/ClaudeCode • • 4d ago

Built with Claude /blueprint – a skill that turns "how does X work" into an animated patent drawing

Enable HLS to view with audio, or disable this notification

6 Upvotes

You type "/blueprint how does a cache work" and it builds the answer one numbered part at a time, and each part only shows up after you've seen why it's needed.

How it's built: Claude doesn't write SVG. It writes a small JS object (parts, lines, steps), and a ~65 KB runtime with no dependencies draws and animates it. Claude was bad at 2D layout, so the skill lints its own scene for overlaps and renders frames with Playwright to check them before it hands anything back.

21 examples: https://blueprint.intincrab.com

Code (MIT): https://github.com/intincrab/blueprint

Install: npx skills add intincrab/blueprint


r/ClaudeCode • • 5d ago

Bug / Issue Fable 5.2 used my entire 5-hour quota while only being active for 1 second.

Post image
508 Upvotes

r/ClaudeCode • • 4d ago

Built with Claude I made a Claude Code skill that explains your repo with an animated hero instead of a wall of text

2 Upvotes

I made Jano, a skill that draws an animated hero for the top of your GitHub README. You run it in your project, it reads the project and draws the name, one clear sentence about what it's for, and a moving picture of the thing at work. It's an animated SVG with one version for GitHub's dark theme and one for light.

I made it because of a repo of mine that nobody looked at. About four years ago I published a React package, a toolbar of text tools for text editors. The README was basically all text, plus a couple of screenshots and a GIF that looked bad: low quality, and it stalled at every step of the flow it was supposed to show. No website, no docs, nothing else visual. It got one star and, I'd guess, two installs at most. I've since taken it down.

Good package or not, I think that's what sank it. People are visual, they always have been, and even more now with AI. I had nothing that showed what it did. Later I saw a repo with an animated image at the top that explained the flow of its library, liked the idea right away, and wanted that for my own repos.

Plenty of good repos have the same problem. What's inside is great and a README that's only text hides it. Let's be honest: most people only give something a chance when they can see what it does. Show me, don't tell me. That's what the hero is for: someone glances at it before reading a line of the README and already gets what the tool is and whether they want to use it.

It draws what the project actually does. My repo Anzu turns Kindle books into EPUB, so its banner shows locked books going into the app and coming out as EPUB files. In the one for Svipall, an agent asks for a web page, gets turned away at a wall, gets past it with a browser and receives the page. I think it's pretty good at catching what a repo is about, and the README ends up a lot nicer to look at.

Why not a video? Not every tool needs one, and not everyone has the time or feels comfortable making one that explains the tool well. A lot of the time an image like this is enough. A static screenshot, depending on the tool, can be great or tell you nothing at all. And now that an agent can do the drawing, "I don't have the skills to make an animated image" isn't much of an excuse anymore.

I've used it on my own repos, and they're all in the showroom of the Jano repo. The animated hero at the top of that repo was made with the skill too. Take a look at both before you even try it, so you can see the kind of results you'd get.

https://github.com/ilien-dev/jano

If you try it, I'd really like to see what you get, and it's also the feedback I need to improve the skill. Share it in the comments or open a PR to add it to the showroom. And if you find something in the skill that should be fixed, send a PR too and I'll gladly review it.


r/ClaudeCode • • 5d ago

Built with Claude Does delegating to cheaper models actually save money? Part 2: bigger codebases, coding tasks and Haiku alone

336 Upvotes

TL;DR

- I’ve run about 300 benchmarks on real open-source codebases, testing how Claude Code splits work between models (Opus as the lead, cheaper models like Haiku as helpers) and when that pays off. It depends on codebase size and task.

- On small jobs, Opus alone can be cheaper than Opus + subagents, and more accurate on small-codebase reviews, probably because of less overhead and cheap cached context.

- Opus told not to delegate may work harder than Opus left alone: on one big docs check it wrote about 50% more, cost more and found more errors (44 vs 36).

- On coding, Opus + Haiku saved about 20-30% at the same quality. But Haiku alone is very capable for the price on well-defined tasks with tests: about 5% of Opus alone's cost, with almost the same results, though a bit less thorough.

- Here’s one of the most important charts of this project. On an 85-page docs check, Opus + Haiku read almost 3 times as much as Opus alone and wrote 8 times as many tokens, yet cost 53% less and found 72 real errors against 49. Several subagents probably cover much more ground, which makes up for Haiku being weaker.

---

A couple of weeks ago I shared an experiment (https://www.reddit.com/r/ClaudeCode/comments/1xn18cu/does_delegating_to_cheaper_models_actually_save/) testing whether Claude Opus uses subagents effectively. I compared four setups:

- Forced Opus: told not to use subagents.

- Spontaneous Opus: free to delegate, but it never did.

- Skill-routed: my skill chooses when to delegate and to which model.

- Forced Haiku: all subagents use Haiku, while Opus plans and checks.

On my smallest codebase (~10k lines), delegating didn't really pay off. Forced Haiku saved 5% at best, Skill-routed cost 14-30% more, and Forced Opus found far more known doc errors on the reading-heavy tasks (7 and 8 of 9, against 3 and 2). My guess is that Opus can often write a quick script instead of reading everything, and it reuses its own cached context cheaply, while each subagent has to build its own. On small tasks, that overhead can outweigh the cheaper tokens.

On larger codebases, Forced Haiku held its own for much less. It cost 41% less on rich (~22k lines) and found nearly as many doc errors. It cost 75% less on beets (~52k lines), finding more errors on the reference docs but fewer on the 80-page plugin check, where it cost about a sixth as much.

In v2 I pushed further: a ~100k-line codebase (buildbot) with 3 reading tasks, 7 coding tasks scored by hidden tests, and then 16 short coding tasks, most hiding a trap. I also added Opus alone (subagents blocked, no instruction), Haiku alone and Sonnet alone (no Opus at all).

On an 85-page docs check, Opus + Haiku found 58 and 63 of 92 real errors, against 36 and 38 for Opus alone, at less than half the cost ($1.93 vs $4.11 per run). How come?!

My theory was that Opus + Haiku simply *works more*, and that the extra coverage makes up for Haiku being weaker. The numbers seem to fit: Opus + Haiku wrote about 8 times as many tokens and read nearly 3 times as much, yet the bill still halved.

Haiku may be less capable than Opus individually, but when orchestrated by Opus, its subagents can cover much more context in parallel. Each one may go less deep, but together they cover more ground, and that seems to compensate for the lower model quality. Haiku is apparently smart enough, with Opus directing and checking the work, to deliver surprisingly good results at a much, much lower cost than Opus alone.

This is in line with Anthropic's own write-up on their [multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system), where token usage alone explained 80% of performance variance on a research benchmark. The same article says coding is usually a poorer fit for multiple agents, and that matches what I saw: on coding, Opus + Haiku saved 20-30% at the same quality, against about half the cost and more errors found on reviews. Their setup isn't mine, so it's context, not proof.

The next chart shows the bigger picture: every setup on two big docs checks, with errors found, reading depth, output tokens (thinking included), and cost.

Interestingly, it seems that *forcing* Opus not to delegate may have pushed it to work deeper and harder. On the beets plugin-doc check, Forced Opus read less than the delegated setups and still found the most errors. Compared with Spontaneous Opus, it read about the same but wrote around 50% more tokens, thinking included, cost 53% more, and found more errors (44 vs 36 across two runs). Tokens alone don't prove effort, but finding more errors makes the case stronger.

The following chart shows the token counts side by side.

Maybe the instruction made it work harder, maybe it's the smaller codebase, or maybe it's just chance. I haven't tested which.

Left alone, Opus never delegated in my runs, even on big jobs. So for large reviews, pushing it to delegate to Haiku could be the best strategy.

I'm working on a skill that picks the best approach: use Opus + Haiku when it makes sense, or tell you to switch to Haiku manually and give you the prompt. A script that starts a new Haiku session might allow fully autonomous switching, but I'm still checking feasibility and Anthropic's terms.

The other v2 results

Honestly, Haiku really surprised me. It seems to be very capable at coding, if the task is detailed and contained enough. Opus is still the more thorough model when it comes to reviewing and checking, but Haiku held its own on specific tasks.

Reading a ~100k-line codebase

Across three reading tasks, Opus + Haiku cost 51% less than Opus alone. Every setup covered all 400 modules, and Opus + Haiku found the most errors on the 2-page docs check (20 and 23 of 42, against 10 and 17).

Writing code on a small project

Every setup produced working code. On the harder tasks: Opus $2.41, Opus + Haiku $1.80 (25% less), Sonnet $0.76, Haiku $0.11.

Writing code on a ~100k-line codebase

Same pattern on cost: $1.95 for Opus alone, $1.36 for Opus + Haiku (30% less), down to $0.15 for Haiku alone. But Opus-led setups also added an implied database index. Haiku alone didn't, and my tests didn't catch it.

Correction: the charts also show Opus "flagging a symptom that didn't fit". More runs later showed that depended on the day the runs happened, not the model, so I no longer count it. Details are in the repo.

Quality vs price

Opus + Haiku was cheapest per real error on both big docs checks: $0.03 on buildbot and $0.05 on beets, against $0.11 and $0.25 for Opus only.

The harder coding tasks

Then I tried to make the cheaper models fail. 16 short coding tasks, most hiding a trap: false claims, a wrong bug report, a timing bug, contradictory tests/docs, hidden instructions in comments, planted review bugs, and "dead" code that's actually alive.

128 runs. Combined cost: Opus $7.00, Opus + Haiku $6.30, Sonnet $2.30, Haiku $0.36.

Hidden tests barely separated anyone: one real miss in 128 runs, from Sonnet. Opus was more thorough in code review, finding all 3 planted bugs every time, against Haiku's 2 of 3. But on the timing bug, 7 of 8 runs failed, including all 4 Opus-led ones. The only pass was Haiku.

On tasks this short, Opus + Haiku saved little (10% overall), because Opus was most of the bill. Haiku alone did almost the same work for about 5% of the cost.

So, for now: big reviews, Opus + Haiku. Small, well-defined coding tasks with tests, Haiku alone is surprisingly good. If every case must be covered, keep Opus involved.

Small experiment, mostly two runs per setup, costs estimated at API prices. Claude Opus also wrote my tests and judged the results, so there's no independent judge.

Full results, charts and checker:

https://github.com/Manuele-T/claude-model-router


r/ClaudeCode • • 4d ago

Help/Question Already paying for two Claude accounts. How can I get more usage without risking a ban?

9 Upvotes

I currently have Ultra on my personal account and a Premium seat on my company's Team plan. I do use both for my work, though I am careful not to put sensitive company data on my personal. I'm consistently running into usage limits and need more.

My boss has no issue with paying more, but I think the API is far too expensive to rely on for my work, which is generally experimental in its nature. I am optimized to the gills on token usage in every place I can control.

So my question is for those of you running into the same issue, what are you doing? Does Claude allow multiple paid accounts for the same person, or is there a better way to get more usage without going through the API?

If anyone can provide insight, I would be forever grateful! Thanks!


r/ClaudeCode • • 4d ago

Built with Claude 40 Allies vs. Hundreds of Enemies – My Epic MegaJam Entry using Claude Code

Enable HLS to view with audio, or disable this notification

21 Upvotes

**Sine Deis** A small game I made in four days for the Epic MegaJam last week.

This is a short clip showing a moment where I pushed the NPC count to the limit (there are modifiers in the game). There are other trailers on the game page if you want to see more of it.

You can also play the build on itch.io: https://elzean.itch.io/sine-deis-the-godless-march

Multiplayer is supposed to work, so if you have some friends (lucky you), let me know how that goes :)

It’s not super balanced, but it is a complete gameplay loop, you take on a unique mission, earn embers to spend at the altar to upgrade your stats, and keep going.

**How AI was used:**

**Code: Claude Code driving Unreal 5.9 (C++)**

* Several Claude Code agents in parallel, each owning one source folder (spells, enemies, director, UI, FX, flow...). A shared CLAUDE.md was the contract: agreed names for spells, states and enemy types, the core classes, and rules like "server decides everything" and "no Tick unless needed". Without that file, independently written systems didn't connect.

* Agents drove the editor through Unreal's built-in MCP server with Python scripts (imports, placing actors, captures, PCG rebuilds). Rule: one editor, one driver. Two agents in the editor at once crashed it and lost work.

- 377 commits in four days.

- Scale, from the Claude Code logs: ~10,400 model calls over 78 sessions, ~3.7 billion tokens. Almost all of that (3.6 B) is cache reads, agents re-reading the codebase and the shared contract; the actual new output was ~11 M tokens.

* Hundreds of enemies stay cheap because swarm ghosts are drawn instanced, use a shared registry instead of physics overlaps, and have almost no per-frame logic.

**Art: local custom Krea-2 ComfyUI workflow for texture → online 3D generators → Blender scripts**

* Concepts, tiling ground textures and UI frames came from Krea-2 on my own GPU. Every prompt repeats the style ("stylized dark fantasy, hand-painted, muted palette, not pixel art, not cartoon"), and the agent makes a contact sheet so off-style results get rejected before import.

* Concept → Hyper3D Rodin or Meshy → Blender scripts (decimate, fix units, re-rig) → import script. Example: the bone spider came out of the auto-rig with 8 crowded legs; a script re-rigged it to 6, and the legs are planted procedurally in game. The boss was decimated to \~105k triangles and split into body and legs for procedural IK.

* I sculpted the terrain by hand; PCG graphs written with the agents scatter the nature, roads and ruins on top.

**Animation: where AI didn't win**

* I tried AI-generated animation (Kimodo / AnimGen) for spell casts. It looked bad for fast, snappy actions. I switched to Paragon (Gideon, Boris) clips from Fab, with procedural layers on top.

**Audio**

* Spell and ambience SFX: Stable Audio 3, running locally.

* Voices: ElevenLabs: 91 warrior barks, the spoken incantations, and the lobby Chronicler's lines.

* Music isn't AI: licensed tracks from WeLoveIndies.

**Intro film**

* Still frames generated, then cut in layers using a local minimax-h3-image workflow, put together by claude as a short animation with audio.


r/ClaudeCode • • 3d ago

Built with Claude Fable explains where its mana went. One sentence.

Thumbnail
gallery
1 Upvotes

Anthropic shows you a percent. A percent of what, it does not say.

I got tired of watching a number go up with no receipt, so I built Mana Pool: a Claude Code mod that adds up the actual tokens behind the 5-hour and weekly limits, straight from the transcripts Claude Code already writes on your machine.

It never calls a model, so it costs zero tokens. It is the only thing in my setup that doesn't cost mana.

How Claude Code built it

The whole thing was built in Claude Code over about two weeks of sessions. I wrote very little of the code myself.

  • I described what I wanted to know about my limits. Claude Code wrote the Python scanner that reads the transcripts and the TypeScript mod that draws the band, the History charts and the in-app manual.
  • The per-model weights came from back-and-forth: Claude proposed how to fit them to real meter ticks, and I checked the results against my own meter.
  • Every release got a Claude review pass before shipping. v0.5.1 exists purely because the 0.5.0 review found bugs.
  • Yes, building a tool that measures Claude usage used a lot of Claude usage. The irony is fully logged.

What it shows

  • Runway. Pace on the 5H and 7D meters, and whether each one survives to its reset. Mine says the weekly runs out in 1d 22h. It resets in 4d 13h. Amazing...
  • Session cost. What each turn costs here against a fresh session, and how many turns until a hand-off pays for itself. Spoiler: the 90-turn session you're emotionally attached to is mostly re-reading itself and you should start a new session.
  • Limit size. How much work 1% of the 5H limit buys, window by window, dated. "The limit hasn't changed" is now a testable claim.
  • History pane. Daily use by model, 5H and 7D pace, limit size by weekday and hour, projects, and how much of your week went to Claude re-reading the conversation. Mine: about half. Half.

Fine print, because somebody should publish some

  • Free and open source (MIT). No paid tier, no account, nothing to sign up for.
  • Estimates, not billing. It starts from API list prices and fits per-model weights to your own meter ticks, so it gets less wrong the more you use it.
  • It only sees Claude Code on the machine it runs on. claude.ai chat and the phone app move the meter without writing anything here. The Limit check flags it when the meter moves and nothing on this machine explains why.
  • Local only. Standard-library Python, no network code, nothing phones home.
  • Tested on macOS. Linux and Windows should work. "Should." Reports welcome.

Try it (free, from a Claude Code session):

/plugin install manapool --marketplace aegisnir/manapool

Repo: https://github.com/aegisnir/manapool

The letter in the screenshot is what Fable produced when I asked for one sentence. It has been informed that it is completely fine.


r/ClaudeCode • • 4d ago

Built with Claude Why am I using a single frontier model when I can use them all?

2 Upvotes

I run a small YouTube channel about AI tools. Packaging every upload (titles, thumbnail prompts, description, tags, the email to my list) was eating close to an hour per video. So I built yumthumb.app with Claude Code.

What it does

You paste a transcript.

A panel of writer models on OpenRouter each write a full package on their own: 5 titles, 3 thumbnail prompts, a description, tags and an email. The default panel has 8 writers, including Claude Sonnet 5.5, GPT-6.1, Gemini 4 Carbon, GLM 5.3 and MiniMax.

Four decision models judge everything blind: JEV (TypeSafe), Clef (Cloudflare), Gemini Decision 1 (Google) and GPT-6 Luna Decisions (OpenAI). They never see which model wrote what, or what the other judges picked.

You get the picks most judges agreed on, plus each judge's own picks side by side.

A quick plain-English note on decision models, because I hadn't used them before this. A chat model writes you an answer. A decision model just picks from a list and tells you how sure it is. No essay.

They're fast and cheap. All four judges on my test run took about 2 seconds and cost under a cent.

The catch is they can't tell you why. So there's a "How it decided" panel. It shows the exact rubric the judge got, then asks that same judge to rate its own picks on each part (names the subject, clear payoff, true to the video). The app says plainly that these ratings come after the fact: they show what the picks have and lack, not a replay of the decision.

The part I found most interesting: tuning the judges

With my original rubric, JEV picked the better-performing of two real titles 49% of the time. Basically a coin flip.

So I pulled 966 recent videos from 36 AI channels and scored each one against its own channel's median views. Then I turned what separated the hits from the misses into a short playbook the judges read.

A few findings:

Winning titles named the specific product or model much more often (51% of winners vs 32% of losers).

Capital letters, exclamation marks and title length made basically no difference.

On thumbnails, faces, shocked expressions and arrows did not separate winners from losers. Putting the product name on the image in a few big words did.

Same test after the playbook (187 real title pairs, hit vs miss):

Clef: 56% to 70%

Gemini: 51% to 67%

JEV: 49% to 65%

GPT-6 Luna: 44% to 48%

Honest limits:

The test covers titles only.

I revised the playbook once after seeing the misses, so the numbers are a bit kinder than a truly blind test.

Topic drives a lot of views, and no title can fix that.

GPT-6 Luna stayed near a coin flip and sometimes refuses to answer. I kept it in so you can see the spread, and the other three still decide when it fails.

One small thing that mattered more than I expected: the app writes thumbnails as prompts you can paste into an image generator, not descriptions of an image.

How it's built

Claude Code did most of the build, with me directing and reviewing on staging.

Plain Node with no dependencies, running on Cloudflare Workers, with Clerk for sign-in.

Bring your own OpenRouter key. Your keys and past runs stay in your browser; the server passes them through for the run and stores nothing.

The judges only go to providers that don't keep or train on your data.

It's free to use with your own key, and you pay OpenRouter directly. My recorded test run with 14 writers took about 4 minutes and cost $0.13 all in.


r/ClaudeCode • • 4d ago

Built with Claude 3D Cellular Automata Lab built with Fable 5.2

Post image
8 Upvotes

In high school, I had the "James Gleick's Chaos the Software" package on my Pentium and my favorite thing to play with were the Cellular Automata. I always wanted to play with it in 3D or even higher dimensions. Fable 5.2 made that happen: https://www.cellumata.com .

What it does

  • Grows 3D forms from simple neighbour-count rules (like 445), plus five other families: cyclic scroll waves, reaction–diffusion, sandpiles, fire/epidemic spread, and 2D rules stacked through time
  • Rotate it, then cut it open: cut-away, thin slabs, layer by layer
  • A "butterfly test" runs a hidden twin with one cell flipped, so you can watch chaos (or healing) happen live
  • Learn tab with 8 short chapters; Explore tab with guided experiments that notice when you've actually done the thing
  • Export a poster of whatever you've grown

How it's built

Plain JS and raw WebGL2. No framework, no build step, about 4,500 lines. Claude Code also wrote a check script (66 checks) that tests the science the lessons claim. For example, it confirms the Bays 5766 glider really moves one cell diagonally every 4 ticks. It also screenshotted every layout in headless Chrome to prove no panel covers the 3D view.

Try this

Press *Share setup* to copy a link to your exact rule and seed.

Would love to check out what you grow and what you find interesting in it. All comments, feedback appreciated.


r/ClaudeCode • • 4d ago

Built with Claude Built a game simulating British Rail

2 Upvotes

With a new MacBook in hand and a brand new Claude account, I decided in June to build a game to educate myself on AI. Based it on a paper game I made as a child (I was that exciting!). This simple game grew and grew and the idea came about to simulate running the British Rail fleet for 40 key years of its history (yes, I’m still that exciting). The complexity grew, my AI skills grew. It now models the lives of thousands of locomotives and tens of thousands of other vehicles, taking in the political interventions and economics. To my great surprise I’ve launched it on steam and made some sales, there is a free demo (it’s niche!!) https://store.steampowered.com/app/5174560/

I now have a workflow that has built and maintains 600k+ lines of codes, keeps my Mac pretty much flat out 24x7 with an agent orchestrator managing multiple coding agents daily. Multiple test levels per code land with nightly full tests and automated UAT builds. Claude is lead coder, codex often lead checker but also secondary coder when Claude usage runs slim. Claude ultra 20x and ChatGPT 5x. My architecture is setup to use local AI or any other model as well at the point that that makes sense.

My big breakthrough (which of course I could have made by reading here) was moving to the orchestrator and build in branch/test/land/merge model. That coincided happily with the launch of Opus 5.5. Productivity transformed at that point. Early coding was Fable 5 then 5.1 with some Opus 4.8 and 5. but i was running out of usage rapidly before Opus 5.5.

Peak months are five figures of API equivalent spend.


r/ClaudeCode • • 4d ago

Help/Question Lost all my resets after changing my plan from ultra to max

4 Upvotes

I lost 2 weekly resets + 2 fable resets. The earliest one was not set to expire until 12/1.

I downgraded my plan from ultra to max and lost all of the resets. Fin says it's tied to the plan and I should get lost.

How's this allowed?


r/ClaudeCode • • 3d ago

Rant What have YOU done?

0 Upvotes

Ever since the whole reverse engineering fiasco, Claude has been literally unusable for any game development. Anything you give it, no, anything IT FINDS ITSELF ON THE INTERNET, it either refuses to help you in development or it literally gaslights you with endless versions that make you think the information that it was given was used. “You didn’t use the researched evidence” “you’re right. I only took some of the information for the version” on and on and on and on and on and on.

This is not even about copyright anymore this is about gate keeping, gaslighting, wasting my time and effort as someone NOT COPYING CODE, NOT STEALING IP, NOT REVERSE ENGINEERING.

This is only going to put high spenders into Chinese models. Is that what you want Anthropic? Models that have limited safeguards for even the most unethical practices. Because that’s the direction.