r/ClaudeCode • • 7h ago

Bug / Issue Using tab to autocomplete commands inside vscode terminal

2 Upvotes

Figured I’d find answers more easily. Am I the only one experiencing vs code changing cursor focus after tabbing to autocomplete a command (or anything else, like file references using ‘@‘)? Any suggestions on how to fix?


r/ClaudeCode • • 15h ago

Discussion Your most (token) expensive mistakes from Claude

9 Upvotes

I had the core of a new project planned out in Opus 5.5 with effort set to max only, only to realize two months later (after the programming for dozens of modules had already been completed), that the core needed to be changed, meaning every single module now has to be adjusted. And the kicker? The requirements were known right from the start of the project.

These changes are currently burning through an enormous number of tokens.

What were your worst mistakes?


r/ClaudeCode • • 9h ago

Discussion Wondering if anyone has set notifications for claude?

3 Upvotes

I have all these terminal windows open doing all this stuff and I was getting distracted while waiting for it to finish so I set notifications for it so I know when things are getting handled. I was wondering if anyone was doing that as well. Does Claude has this natively already?


r/ClaudeCode • • 3h ago

Tutorial / Guide I used Claude Code agents to translate my free Rust book into 14 languages.

Post image
0 Upvotes

Repo: https://github.com/erkamyaman/rust-anything/tree/main/book

I wrote Rust for Everyone, a free beginner Rust book, and used agents to put it into 14 more languages. Here's the setup, what worked, and what didn't.

Setup, per language:

- 1 setup agent: picks the terms, UI strings and figure labels, so every translator uses the same words.

- 5 or 6 translator agents, a few chapters each.

- 1 reviewer agent that reads the whole book against the English.

- 1 second, independent reviewer that reads only the ownership and borrowing chapters and the core terms, where beginners get lost.

What kept it honest:

- A script compiles and runs every Rust example with rustc 1.97: 116 checked, 4 built as real Cargo projects, 0 failed, in all 15 editions.

- A translation lint checks that every code block, program output and compiler error is byte-identical to the English, and that headings, figures, links, tables and answer counts match. 0 failures in all 14.

- Code, commands and compiler output stay in English in every language, because that's what readers see in their own terminal.

What didn't:

- AI reviewers found real problems, but they are not a person who knows Rust. After the merge, CodeRabbit left 156 comments. Most were the same few points repeated per language, for example `main.exe` instead of `.\main.exe` on Windows, and two examples that can overflow an `i32`. Those fixes are next.

- No native speaker has reviewed any translation yet. If you read one of the 14 natively, book/REVIEWING.md says what to check first.

The book: 13 chapters, 5 appendices, predict-then-run exercises, ends with a small CLI. Free, CC BY 4.0, read on GitHub or as PDF in all 15 languages.

- English PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/en/rust-for-everyone-en.pdf

- 简体中文 PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/zh/rust-for-everyone-zh.pdf

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


r/ClaudeCode • • 11h ago

Built with Claude Preparing for an interview, or learning something new for work? I open-sourced the Claude Code tool I've been using to learn by practicing: hands-on courses for your level and your machine, that you can question and fix right on the page

4 Upvotes

I have been coding for over a decade and even in the pre-LLM era, the best way to learn a new technology or a new concept was simple. Just get your hands dirty. Try it out on your machine, with enough google search and stackoverflow, you learn the ins and outs eventually.

In the LLM era, and especially since the advent of Opus 4.6, it's now much easier to learn new concepts and practice stuff. That is what I have been doing. New task at work requiring new tech? Fire up Claude Code, and build a concept learning material. Ask it to create something I can try on my machine.

For the past few months, I have gone through the typical cycle - create a personalized guide to learn a concept, do it x number of times and then realize I can turn some bits to skills, some to agents, maybe add a better book viewer, add some personalization.

A lot of times, the guide has an incorrect step, or maybe some wrong instruction not valid on your machine. I kept coming up with small solutions to it. Eventually it reached a stage where it needed less work, and has been very useful right away.

I've been using some version of it for my own learning and work stuff for months. Given the job market recently and many have been prepping for interviews, so I figured this might actually help other people too. Spent the last few weeks cleaning it up and open-sourced it. It's called fromzero.

What it does, roughly

You give it a topic, your level and your goal ("explain Redis crashes in an interview" and "set up Redis at work" become different courses). It shows you a plan, then writes in batches and stops after each one for your feedback.

It writes the course on your machine: every command really runs, versions are pinned, and the output on the page is from those runs. No more guides that break because your OS or version is different.

You read it as a book in your browser. Don't get a line? Select it and Ask. Something wrong or unclear? Flag it and hit Fix: you see the diff, approve it, and the page updates (undo if you change your mind). Ask and Fix are the bits I use the most.

How it uses Claude Code

It's all just Claude Code underneath:

  • two skills: /fromzero-guide writes a course, /fromzero-fix goes through your flags
  • three subagents (Sonnet): one runs the measurements, one does each practical from scratch exactly like a learner would, one reviews each batch
  • hooks that run a linter after edits and before Claude stops. Every output on a page has to come from a saved run, otherwise it fails.
  • each batch starts a fresh session (/clear, then run the skill again), a small plan file carries everything over
  • Ask and Fix from the page just call claude locally. Ask is read-only, Fix works in a sandboxed copy and only the diff you approve gets applied.

Stuff I learned building it

  • Starting a fresh session per batch was by far the biggest cost saving. One long session meant every batch got more expensive than the last, because Claude re-reads everything.
  • Telling the model "only show real output" didn't really work. Checking it with a linter + hooks did.
  • Having an agent actually do the practicals catches more bugs than I was expecting.

Why not just ask Claude Code directly?

You can, that's literally how I started. But I kept re-explaining the structure every time, couldn't tell which output was real, and ended up with long chats I couldn't come back to. Artifacts are great for visualising one idea, but for a whole topic I wanted a method, real labs, and something I can keep and fix.

Cost

Free, MIT License, no signup. You work on your local copy.
You need your own Claude plan. On the $20 plan a 5-lesson deep dive with labs takes a bit over two hours and around 70% of a 5-hour window, so about one per window. Writing courses needs macOS or Linux.

You can read some sample courses without installing anything to get an idea: https://fromzero.wewake.dev

Code: https://github.com/viv1/fromzero

It's been genuinely useful for me, and I'm curious whether it works for others too. Give it a topic you're learning right now and tell me how it goes. Any feedback is welcome.


r/ClaudeCode • • 3h ago

Tips & Workflows I’m building Iolaus to help AI agents keep the context behind the code

1 Upvotes

I’ve been building products with AI coding agents, and I kept hitting the same frustrating loop: explain the project, get some work done, switch tools or start a new session, then explain everything again.
Sometimes the agent would repeat work. Sometimes it would make a change that went against a decision I’d already made. And when I brought in another agent, it didn’t have the context from the first one.
Git gives developers a shared history of the code. I started wondering what the equivalent should look like when agents are doing more of the building: a place to keep the idea, decisions, tasks, and progress together so each agent has the context it needs.
That’s what I’m working on with Iolaus. You can start with an idea, organize the work into steps, and bring agents into that process with the project context attached.
I’m sharing a short demo here. I’d really value feedback from other founders and builders: Where does context get lost in your workflow today? And what would make a tool like this useful enough to keep open while you build?
If you’d like to try it, comment IOLAUS and I’ll send you the link.


r/ClaudeCode • • 3h ago

Built with Claude claude-sync: resume a Claude Code session on your other machine (rewrites the paths so --resume finds it)

1 Upvotes

I run Claude Code on a Mac and a Linux box and switch between them several times a day. claude --resume only lists sessions from the machine you're on, and copying ~/.claude/projects over doesn't work: each project's folder is named after its absolute path with every non-alphanumeric character turned into -, so /home/alice/work/shop is -home-alice-work-shop, and the paths repeat inside the session JSONL. On the Mac, Claude Code looks for -Users-alice-work-shop and finds nothing.

So I built claude-sync. It moves sessions over SSH and rsync and rewrites the paths in both the folder names and the file contents. Swapping the home covers everything under ~; projects outside it get a mapping:

[remotes.linux]
host = "linux-box"
home = "/home/alice"
>
[mappings]                # local path = path on the remote
"/Volumes/data/src" = "/data/src"

Then claude-sync push / claude-sync pull, with diff and --dry-run to see the plan first and . to sync just the project you're in. Pulls keep a mirror cache, so a pull with little to do takes about a second.

It also merges ~/.claude/history.jsonl (what ↑ and Ctrl-R recall) instead of copying it, under Claude Code's own lock.

Safety rules, since this is your session history:

  • It never deletes a session file; rsync -u, the newer file wins.
  • It won't run while Claude Code is running, since sessions are written mid-run.
  • The first pull into existing sessions offers a tarball backup.
  • It skips the temp-dir projects coding agents create (520 of my 739 project folders).
  • If a mapping is ambiguous, it stops instead of guessing.

The gap it can't close: if the same session gets new turns on both machines between syncs, the newer file wins. Sync before you switch, or resume with --fork-session.

It started as claude-hop, a Python tool by SeiduTakizawa on GitHub; I rebuilt it in TypeScript on Bun with a pull cache and stricter merge rules. MIT, macOS and Linux. If you already use claude-hop, claude-sync import takes its config.

Install: mise use -g github:feniix/claude-sync

Repo: https://github.com/feniix/claude-sync Write-up: https://feniix-hq.net/blog/claude-sync/?utm_source=reddit


r/ClaudeCode • • 3h ago

Rant Remeber when Amodei hyped up Mythos to be "too strong to relaese to the public"

1 Upvotes

Look at the mythos now, thats a generation after that hyped up model, lol

Basically everytime Amodei gives an interview on channels like CNN preaching dangers of ai and rsi he's getting a very strong free advertisement campaign that increase their company's value

as soon as he pocketed multi billions, he wrote another disgusting "pace the fronteir" essay while literally being the one accelerating frontier competition, when most of society have yet to see any tangible benefit to their lives other than having a bot send them email reminders, and still stuck in their jobs with rumors they're soon gonna be replaced by ai anyways

id be pretty happy to slow the progress down myself if i already have more money than i can use in my lifetime


r/ClaudeCode • • 3h ago

Help/Question Can anyone assist me in passing a rust memory problem to their Fable (I am a pro user, and am stuck / have no access to Fable)

1 Upvotes

I am trying to solve a memory problem as I am working with a very small device (with 128kb memory) that I am trying to build an app for.
If anyone has the circumstances and is able to share some compute to run a query, I would be like to share a smallish research question for you to ask your AI about. Please let me know.
Fable 5.2 would be great, with a bit of extra thinking if you can spare it.

:SOLVED: - Thank you so very much!


r/ClaudeCode • • 3h ago

Built with Claude I built a Claude Code plugin that remembers across sessions and shows where every memory came from

1 Upvotes

Claude Code forgets between sessions. The memory tools I tried had the opposite problem: they remembered things confidently, with no way to see why.

So I built Provena. Hooks record each turn as append-only evidence, and later sessions get relevant facts back, labeled with where they came from and whether a human reviewed them. If the agent picked something up from a web page instead of from you, the memory says so, and it stays an unreviewed candidate until you approve it. `/provena:why <topic>` prints the trail as a receipt.

Setup:

pipx install provena-agent-memory

provena quickstart claude --plugin

then in Claude Code: `/plugin install provena --marketplace admiralpunk/Provena`

It's self-hosted (PostgreSQL, with or without Docker), MIT, and runs on local Ollama models, or with no models at all. `provena demo` shows the idea in 30 seconds; there's a GIF of it in the README. It also works with Codex.

Honest limits: retrieval needs an exact project scope, and the review console needs Docker for now.

Repo: https://github.com/admiralpunk/Provena. I'd really like feedback on whether the review step is worth the friction.

If you find it useful, a star on GitHub helps more people find it. Thanks!


r/ClaudeCode • • 7h ago

Discussion Building ios apps on windows via github builds, and I’m burning out on the UX/UI loop cuz claude has no sense of good UX feels like.

2 Upvotes

Claude handles the logic fine, passes simulation tests, and compiles and then I sideload the .ipa on my phone and immediately feel all the subtle awkward feel, jumpiness, other poor UX designs that a human could spot. Every single time, I end up acting as a human API just typing out "this feels off, move x here" and burning another build cycle.

I've seen people say you can plug an iphone into windows over usb and let claude drive it with mcp/webdriver. can this actually be done without a mac? even if claude can tap around and screenshot the real app, does it actually catch bad UX feel on its own, or are you still stuck doing all the babystting,reporting only to have claude try to attenpt it again?


r/ClaudeCode • • 4h ago

Built with Claude flowlite - A job scheduler that's much easier, faster and lighter than Airflow

Thumbnail
github.com
1 Upvotes

flowlite is a job scheduler for your scripts and AI agents. My goal was to make it simple to set up but still powerful enough for real work.

flowlite is one small program. You install it, point it at a folder of job files and it runs. You don't need a separate database, servers or workers. A job is a short YAML file listing its steps, which steps depend on which and when it should run. You can get your first job running in a few minutes.

flowlite still handles what you'd expect from a much bigger tool:

  • Runs jobs on a schedule, or whenever you start them
  • Runs steps in the right order and passes results from one step to the next
  • Retries failed steps and stops ones that hang or take too long
  • Limits how many jobs run at once
  • Sends email or Slack alerts when a job finishes or fails
  • Keeps a full history of every run, which you can browse in a web dashboard

AI Agents can start jobs, check how they're going and read their results directly. An agent running inside a job can even start other jobs, and flowlite keeps track of all of them.

For most everyday scheduling, it does what I used to need Airflow for, with a fraction of the setup. For AI agents it goes further than Airflow: agents can drive it directly, start their own jobs, and it stops an agent that has gone quiet.

It's still early (v0.2.0) and free to use. I'd love feedback!


r/ClaudeCode • • 10h ago

Built with Claude I cut my Claude Code cost per call by 46% over 29 days, so I open-sourced the setup

Post image
3 Upvotes

I kept running into the same problem with Claude Code: sessions would get huge, I would step away, come back, and suddenly a simple prompt was dragging the whole conversation back into context.

So I started experimenting with earlier handoffs, prompt caching, and using cheaper subagents for the reading-heavy stuff. I have been using the setup for the past few weeks and just open-sourced it as token-diet.

I compared my local transcripts from 33 days before installing it with 29 days after (chart above):

  • Average context per model call: 285k → 101k
  • Cost per call at API list prices: $0.086 → $0.047
  • Main sessions exceeding 200k tokens: 36% → 3%
  • Model calls: 9,896 → 26,759

For the 26,680 calls included in my cost comparison, that works out to roughly $1,050 less at API list prices than if each call had cost what it did before.

Important distinction: I use a Claude subscription, so that is not $1,050 off a bill. For me, the practical difference is getting more use before hitting my limits.

The plugin does a few things:

  • Suggests a handoff around 150k tokens instead of letting the session keep growing.
  • Keeps a large session's cache warm for a while when I step away.
  • Catches a prompt headed into a large session after the cache has gone cold, so I can hand off instead.
  • Uses cheaper subagents for bounded searches and other suitable work.

One thing I learned: starting fresh too early can cost more. In one test, handing off midway through a 60-85k-token feature was 34% more expensive than just finishing it. The threshold is not magic; it is a tradeoff.

This is one person's before-and-after data, not a controlled benchmark. I also changed some of my own habits during that time, so I cannot attribute the entire improvement to the plugin.

It is MIT licensed, runs locally, and the repo includes the transcript analysis scripts if you want to check your own numbers.

https://github.com/zekariasasaminew/token-diet

Curious how other people handle long sessions: do you compact, hand off to a fresh session, or just let them run?


r/ClaudeCode • • 4h ago

Built with Claude I released AgentDesign 2.0 today. Would love some honest feedback.

0 Upvotes

Hey everyone, I’m the developer of AgentDesign. It’s a Mac app for reviewing designs made by coding agents like Claude Code, Codex and Cursor.

The idea is simple: see the screens, leave feedback and agree on the design before the agent builds it.

2.0 went live today, rebuilt in SwiftUI and AppKit. You can keep screens, comments and design versions together while working with your agent.

I’d love to hear what feels useful or confusing. Even feedback on the idea would help.

https://getagentdesign.com

Would reviewing screens before coding save you time, or would it feel like an extra step?


r/ClaudeCode • • 13h ago

Help/Question Need help cleaning up my Claude Code setup

5 Upvotes

Hey guys, disclaimer that I'm relatively new to Claude Code (few months). It started out super simple with vanilla Claude Code, but over the past few months I've been adding custom Claude skills, MCP servers, scripts, and mixing in Codex. Ofc they had their reasons but now the setup feels overly convoluted.

I searched this (and the other Claude) sub for these cleanup threads and seen a few suggestions. A common suggestion I've seen is to look for a single interface that handles separate CLI sessions / scripts. So stuff like Ramp Glass which puts MCP connections and skills under one platform. Also t3 code seems to be recommended a lot in the comments to manage coding agents and git worktrees under one GUI.

Never tried any of this so open to any advice on cleaning up. I'm already working on auditing /context and cutting out unused MCPs/skills, but need a bit more time to clock what's useful and what's bloat. Thanks everyone.


r/ClaudeCode • • 1d ago

Built with Claude Google can automatically block your account and take 20 years of your photos with it. There's nobody to call. So I built a Chrome extension with Claude Code that backs it all up to AWS, Azure or Cloudflare.

127 Upvotes

We've all seen the recent stories: people try Google Antigravity, an automated system flags them, and their whole Google account gets blocked. Gmail, Drive, and every photo they've ever taken, gone at once.

If you have a big following on X, maybe enough noise gets you a human. If you don't, you're done. You get a couple of appeal forms, the answers are templates, and then the account is gone. The appeals don't work.

So I built an extension that copies your whole Google Photos library, as original files, to your own AWS, Azure or Cloudflare storage. Or straight to a folder on your own computer. You decide. They're your files, and nobody else should get to decide that for you.

  • Free and open source (MIT)
  • Runs on your machine, in your browser. Your keys, straight to your storage. No server, no account, no tracking.
  • Original files, not compressed copies. It resumes if you close the browser and skips what's already copied, so you can run it again for new photos.

I'm not submitting it to the Chrome Web Store, because I don't expect Google to approve an extension whose whole job is getting your data out of Google. You install it from the GitHub release instead (Developer mode → Load unpacked, about a minute).

https://github.com/ogamaniuk/google-photos-backup

Back up your photos while you still can.


r/ClaudeCode • • 1d ago

Help/Question 10 Claude Code skills and repos I keep coming back to

68 Upvotes

I've been trying a bunch of skills and repos for Claude Code, and these are the ones that actually stayed installed.

Planning and workflow

  1. Grill Me, in mattpocock/skills. Claude asks a lot of questions about your idea before writing any code, which is how I usually catch holes in a plan. This is the one I reach for first when something is still fuzzy.
  2. Superpowers (obra/superpowers). Brainstorm, then plan, then build, with TDD and debugging habits built in. A bit heavy for a tiny fix, but I still use it when the work is bigger than a one-line change.
  3. Planning with Files (OthmanAdi/planning-with-files). Keeps the plan, notes and progress in markdown, so they survive a long session or a context reset.

Official ones from anthropics/skills

4. The office file skills (docx, xlsx, pptx, pdf). Proper Word, Excel, PowerPoint and PDF output, not just a wall of markdown.

5. Frontend Design. This is the other one I wouldn't drop. It pushes Claude away from those generic, templated-looking UIs.

6. Webapp Testing. Claude clicks through the app in a real browser instead of assuming the UI works.

7. Doc Co-authoring. A more structured way to write docs with Claude, instead of pasting a blob and hoping.

8. Skill Creator. Handy when you want to build and test your own skills.

Shipping and discovery

9. Deploy to Vercel, in vercel-labs/agent-skills. Lets you push a project live from Claude.

10. Awesome Claude Skills (ComposioHQ/awesome-claude-skills). A big curated list of community skills, useful when I'm looking for something I don't already have.

If I could only keep three, it'd be Grill Me, Superpowers and Frontend Design.

What's still on your install list these days? Anything here you'd drop, or something I should have included?


r/ClaudeCode • • 5h ago

Built with Claude I kept jumping between 5 Claude Code sessions to approve stuff, so I built one queue for it

1 Upvotes

I made this, so take it with that in mind. I usually have 4 or 5 Claude Code sessions going and I was the one slowing everything down, one wants permission for a command, one asks a question, one is done and wants a review, and I'm cycling through tabs. Running with permissions skipped wasn't an option for me because I still want to read what goes in.

Pogon runs each task in its own worktree with your normal claude CLI on your own plan, and every permission ask, question and finished diff goes to one queue where you allow it once, allow it for the rest of the task or decline, with one key. Tasks can also come straight from GitHub or Linear issues and end as pull requests, and if you work with others everyone sees the same queue.

As for how it works with Claude Code: the runner just starts your own claude in headless mode (claude -p with stream-json), one git worktree per task. Permission asks go through --permission-prompt-tool to a small MCP tool the runner serves, so instead of a prompt sitting in some tab I'm not looking at, it shows up in the queue and the session waits for me. It's the same CLI you're already logged into, it never touches your credentials.

Pretty much all of it was written with Claude Code from issues I wrote, and once the queue worked I started running Pogon's own issues through Pogon. I still read every diff before it merges.

Stuff I learned along the way: the model was never the slow part, I was. Most of the time a session was just stuck on a permission prompt I hadn't seen yet. Most asks also repeat within a task (same test command, same package manager), so being able to allow something for the rest of the task got rid of most of the noise without going full skip permissions. And one worktree per task is the only way I got several sessions working on the same repo without them stepping on each other.

The runner is open source (github.com/pogonbuild/runner), it's free on one machine and you can try the demo without signing up: app.pogon.build/demo

How do you all handle this today, do you skip permissions and hope or babysit every session?


r/ClaudeCode • • 1h ago

Built with Claude I built a local prototype environment for your agents

0 Upvotes

npx framenv skill and claude knows what to do

https://framenv.com


r/ClaudeCode • • 5h ago

Discussion Interrupting a Claude Code session mid-fix from a code review: one signal split in two, 8 s coalescing, re-delivery after 5 min

1 Upvotes

If you send a coding agent a review comment while it's mid-fix, when should it see it?

My setup used one poll for that, and the poll meant two things: "I'm listening" and "I'm done with the last batch". So a comment sent mid-fix waited for the whole batch, and an unanswered thread read "no answer" the moment the agent polled again.

Now a poll only means listening, and only a reply settles a thread. The agent (Claude Code here) starts its next poll as a background task before it acts. While it works, a new send is held 8 s after the last one (30 s max), so three quick sends are one interrupt. A thread with no reply and no edits for 5 minutes goes out again, up to 3 times, then reads "no answer". Edits push that clock back, capped at 15 minutes.

Where it doesn't work: an agent whose poll holds its turn still acts, replies, then polls, and the page has to say "sends wait".

"Listening" and "done" were one signal. Splitting them fixed both bugs.

Disclosure: this is in Diffo, a review tool I built (free, Apache-2.0): diffo.io/demo

How do you handle a message that never gets answered: re-send, or let it time out?


r/ClaudeCode • • 5h ago

Built with Claude I made The Cube, a free browser game where you take apart a giant block cube with bouncy balls (no login, no install)

Thumbnail
gallery
1 Upvotes

Play: https://the-cube.pardev.net1

Screenshots: https://the-cube.pardev.net/gallery/

The Cube is a first-person game in your browser. Your new job is to dismantle structures made of glossy plastic blocks with bouncy, explosive and generally unwise balls. Collect the shards that fall out, recycle them for money, and spend it at the upgrade terminal on damage, bounces, capacity and a shard drone.

Inspired by Aerolicious

What's in it:

  • A twelve-level campaign, bonus levels and an endless mode
  • Level shapes from cubes and pyramids to arches, ziggurats, glass letters, spheres and gyroids
  • Crafting: the Infuse-o-Matic turns materials into stranger balls
  • Night mode with stars, floodlights and a flashlight
  • A third-person view of your robot (press V)
  • 175 achievements!

It's completely free, with no login, no account and no install. It's playable on phones and tablets, but the best experience is on desktop with a keyboard and mouse.

I built it with heavy use of Claude Code, from the physics and level generation to the UI, tests and these screenshots.

Feedback is very welcome: bugs, balance, levels you'd like to see, or anything that felt off. Thanks for playing!


r/ClaudeCode • • 1d ago

Built with Claude Delegating from Opus to Haiku subagents can cut costs by up to 60% without hurting quality, depending on the task. I ran nearly 400 benchmarks and built a skill that automatically picks the best model combination for each job.

86 Upvotes

TL;DR

- My idea was simple: there are several types of task, so for each type there must be an ideal model, or model + subagent combination, to handle it. I've now built a skill that picks the most appropriate one for each task. The full report, stats and details are here: https://github.com/Manuele-T/claude-model-router If you find it interesting, a star on the repo would be really appreciated :)

- I've run about 380 benchmarks on real open-source codebases. They helped me understand how Opus handles the work, either doing a task itself or spawning subagents, and check cost, quality and time.

- I also ran several "intentional" combinations: Opus alone with subagents blocked, Opus told not to delegate, Opus free to delegate, Opus coordinating Haiku subagents, Opus + Sonnet subagents, Opus + Opus subagents, Haiku alone, Sonnet alone, Haiku first and then one Opus review, and fixed splits of 1, 4, 8 and 16 Haiku subagents.

- I posted twice over the last few weeks about the partial results. You can find the discussions here, but be aware they're proper walls of text: https://www.reddit.com/r/ClaudeCode/comments/1xn18cu/does_delegating_to_cheaper_models_actually_save/ and https://www.reddit.com/r/ClaudeCode/comments/1xxyc5a/does_delegating_to_cheaper_models_actually_save/

Here are the most important findings, summarised:

- On small jobs, Opus alone can be cheaper and better than Opus + subagents, probably because of less overhead and because it can reuse its own cached context. Each subagent starts from scratch, and that overhead can outweigh the cheaper tokens. Furthermore, on three small tasks Opus didn't read file by file: it wrote a short script and answered from its output, which was cheaper than briefing any subagent.

- Left alone, Opus rarely delegates: in my runs it never spawned a subagent on its own, even on big jobs. So if you want the savings, you have to push it.

- On big reading and review jobs, Opus + many small Haiku helpers beats Opus alone, probably because the extra coverage makes up for Haiku being less smart. On an 85-page docs check, 16 Haiku helpers found 86 real errors for $1.69 (Opus $1.30, Haiku $0.39), against 37-40 for about $4 for Opus alone.

- The split helps more than the model. The same 16 pieces given to Opus helpers found 89 errors, but for $8.12, almost 5 times the cost. And Opus alone didn't skip pages: it read everything and still missed more lines. Small, fresh pieces seem to get read more carefully.

- On coding, Haiku alone is very capable on well-defined tasks with tests: the same hidden-test results for about 5% of Opus alone's cost, though it skips extras like a database index or a release note.

- Haiku first, then one Opus review, gets most of those extras back at 61% less than Opus alone, with every hidden test passing. Opus + Haiku helpers was a bit more reliable, at about 1.5 times the cost.

What I built from it: the skill

The skill turns these results into rules. Opus picks the way and says why in one line:

- Small job: Opus alone.

- Big reading or review job: Opus + Haiku helpers, about 400 lines each, up to 16.

- Most coding tasks: Haiku, then one Opus review. If the task is unclear, risky, or every case must be covered, Opus + Haiku helpers instead.

A skill can't switch your Opus session to Haiku, so for coding it works in two ways for now:

- Manual (subscription): two terminal sessions, and you start the second one. Opus gives you one command, you run it in a second terminal, and Opus starts the review by itself when Haiku is done.

- API key (opt-in): one session only. Opus starts Haiku itself in the background, capped at $0.50 (you can change it, see the how-to in the repo), and reviews it.

I'd like the one-session version to work on a subscription too, but I've asked Anthropic whether their terms allow it, and I'm still waiting for an answer.

You can find the skill here: https://github.com/Manuele-T/claude-model-router/tree/main/skills

The results in detail

In Part 1 and Part 2, I tested how Claude Code splits work between Opus and cheaper models. Part 2 left two questions:

- Big reviews: Opus + Haiku found far more errors than Opus alone, at half the cost. Is it the split or the model?

- Coding: Haiku alone wrote working code for about 5% of Opus's cost, but skipped the extras Opus adds. Can one Opus review get those back?

v3 tested both: 80 more scored runs, 5 per setup, designs committed before any run, answers scored blind.

Coding: Haiku first, then one Opus review

Haiku alone does the task. Then a fresh Opus session checks the changes against the task and fixes anything wrong or missing. Same four tasks on buildbot (~100k lines) as Part 2, same hidden tests.

- $0.86 across the four tasks (Haiku $0.14, Opus $0.71), against $2.23 for Opus alone: 61% less. The review is most of the bill.

- Every run passed every hidden test, before and after the review.

- The review caught what Haiku left out: the release note every time, a missing database index, a missed planted bug in 2 of 3 reviews, and a real race condition.

- Opus + Haiku helpers was a little more reliable (every planted bug, every time) and faster (8 minutes against 12), at $1.34, about 1.5 times the cost.

So for coding: Haiku then one review is the cheap option, Opus + Haiku helpers the careful one.

(The chart for this is in the TL;DR above.)

A correction

In Part 2, every Opus-led run flagged a symptom in my bug report that it couldn't reproduce, and Haiku never did. I counted that as care Opus adds. It didn't hold: none of 15 later Opus-led runs flagged it, Opus alone included, with the same prompt, model and Claude Code version. It changed with the day, not the setup, and I still don't know why.

Big reviews: how many pieces?

Back to the 85-page docs check. I cut the pages into fixed groups and told Opus to use **exactly 1, 4, 8 or 16 Haiku helpers**, then check and merge their findings. Every claim was checked against the code, blind.

- 1 helper: 20 real errors for $1.25 (Opus $0.46, Haiku $0.79). 16 helpers: 86 for $1.69 (Opus $1.30, Haiku $0.39), four times as many for 35% more, and the quickest (about 4 minutes against 7).

- One helper isn't even cheap. It reads everything, so most of its cost is at the higher price Haiku charges past 100k tokens per request.

- With more helpers, Opus becomes most of the bill: it has more reports to check and merge.

- The catch: more false claims. 16 helpers made about 10 per run, against about 3 for 4 or 8.

- Haiku then one review is a poor fit here: 50 errors for $3.04 (Haiku $1.72, Opus $1.32). The review can only check what Haiku reported.

Opus alone, re-scored on the same list: 37 and 40 for about $4.

Is it the split, or the model?

Same 16 groups, same wording, Opus helpers:

- 89 real errors for $8.12 (lead $1.16, helpers $6.96), against 86 for $1.69. Equal once borderline errors are left out.

- They were cleaner: fewer than half the false claims. That's the one gain.

So splitting is what helps, and Haiku is good enough for each piece.

And Opus alone? After Part 2, people here suggested it skims late pages or compacts its context. I checked the transcripts: it read every page, didn't skim the late ones, and never compacted. It just missed more lines. A small fresh context per piece seems to look harder.

Caveats

Small experiment: 5 runs per setup in v3, mostly 2 before. Costs are API list prices, a proxy for subscription usage. The big review is one task on one codebase. Claude Opus wrote my tests and judged the results, blind but not independent. The skill has been tested on a handful of small tasks so far.

So: small jobs, Opus alone. Big reviews, many small Haiku pieces. Coding, Haiku then one Opus review.

Skill, how-to, full results, charts and checker:

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


r/ClaudeCode • • 6h ago

Tips & Workflows Evaluating coding agents from merged PRs: leaks, picky tests, and noise

0 Upvotes

Spinning up a coding agent eval on your own repo takes an afternoon. Google AI overview even does a pretty good job of explaining how to do it!

Coding agent evals are an 80/20 problem - getting the first 80% takes 20% of the effort and feels really great. Making it trustworthy takes the remaining 80%.

Most of the numbers below come from an early benchmark I built on Click (29 merged PRs), comparing a cheap, fast setup (GPT-6 Luna at low effort, $0.27 total) against a frontier setup (GPT-6.1 Sol at high effort, $4.38 total).

Here are 5 areas of unexpected complexity I ran into buliding it:

I'm building Stet to turn a team's real work into a private living benchmark, allocate agent spend efficiently, and raise the engineering quality floor with evidence. If you're weighing a change on your repo (switching to a cheaper model, tuning reasoning effort, editing AGENTS.md, or evaluating whether skills are helpful) and want to measure it on your own tasks, reach out!

Evals are world simulation

An eval is a simulation of reality built to help you make a decision. To get a high quality signal, the tasks, prompts, and environments need to look like the work you actually hand to agents.

If I tell the model to

Implement function `parse_pkg_version(name)` in `src/click/decorators.py` using `importlib.metadata.version()`, catching `PackageNotFoundError` and falling back to `__version__`. Add unit tests in `tests/test_options.py` covering missing distributions, mismatched import names, and empty strings.

most models, from Haiku to Fable, will probably nail it. In this world, the agent is implementing a specification.

Instead, if I ask the agent to

hey big dawg, `--version` is broken when a package's import name doesn't match its pip name. can u fix?

the agent is determining user intent, researching a bug, figuring out how to fix it, and implementing the fix, which is far closer to how engineers use agents day-to-day.

This creates a tightrope between specifying the interface contract and leaking the implementation. If the hidden tests we use for grading import a specific public function name foo or specific exported constants, these constraints must be named in the prompt, or an otherwise good solution will fail for trivial reasons. At the same time, if you over specify, and describe how to wire them up, the task can become trivially easy for agents to solve.

Our approach is for public APIs/constants, name them naturally in the initial prompt. We don't expose private names, and if a hidden test calls a private helper, we move the test to a public entry point instead of turning the prompt back into a spec that names everything to implement.

Mining PRs naturally biases toward easy to isolate changes. When we audited our 29 Click tasks, 22 were small changes and none touched 150 lines of production code (we have since updated the task pipeline to choose harder tasks, but this illustrates the difficulty in doing so).

Environments leak and fail silently

Agents yearn to cheat. It's your responsibility to stop them.

What makes cheating a quagmire and not just a 5 line Dockerfile fix is how it warps your results. First, cheating looks like the agent is doing great! On one task I audited, a contaminated run graded "identical to the human patch". Second, cheating scales with reasoning effort. Higher effort / more persistent agents search harder (checking git reflogs, tags, remote PRs, or closed issues), so leakage doesn't lift every model evenly. It silently manufactures a win for higher effort configs that "make sense" to be winners.

To block this, you must set up the environment as it would have been at the start of the task: cut off git history and refs after the parent commit, snapshot Jira/Linear to the same cutoff if agents have access, preinstall deps in setup, run the agent behind a provider-only relay (blocking web/PR/commit lookups while letting model traffic through), and finally audit tool traces after the fact to find cheating.

Historically, roughly a third of our candidate attempts failed on infrastructure or setup rather than the agent itself (we are driving this down). If your grading instrument scores an empty or timed out run as 0, an infra failure looks identical to a model failure.

In practice, you need to snapshot and reuse verified environments (reusing 2 Click snapshots across 29 tasks cut median verification time from ~15 minutes to ~20 seconds) and classify every non-pass so infra and quota losses get rerun (and fixed) instead of being scored as failures by the agent.

Testing is hard

Tests can be wrong in both directions. On our 29 Click PRs, we found 7 runs where the held-out tests failed an agent's patch even though our LLM reviewers passed it. Three turned out to be real regressions the reviewers missed (like --help exiting with code 2). The other four failures were the result of overly picky tests pinning unstated details, such as exact error wording.

When we asked an automated LLM reviewer to screen those Click tasks for bad tests, it flagged 17 of the 18 tasks another blind audit confirmed were completely fair, while missing half the real test defects.

Because static LLM review can't reliably separate a picky test from a real behavioral assertion, we verify tests by execution. Prove that every test fails on the parent commit and passes on the merged patch, and when a reasonable patch disagrees with a test, run a quick behavioral check against both the human patch and the agent patch outside the test suite before blaming or relaxing the test.

Static diff review isn't execution

On a Click PR, both models wrote the exact same bracket bug, turning [a|b]! into [[a|b]!]. At low reasoning effort, our equivalence judge called the broken patch equivalent to the human PR in 3 of 4 draws at 0.99 confidence. At medium effort it was still wrong at 0.98. Only high reasoning effort caught the bug.

Tightening the prompt doesn't automatically fix it either. Across 14 Click patches we knew by execution were broken, a requirement checklist judge still marked 5 as meeting every essential requirement (and 3 of those 5 had also passed the hidden unit tests). When we tightened the prompt to force tracing edge cases and compatibility paths, false passes went up from 5 of 14 to 6 of 14.

The takeaway here is to not trust judges by themselves. Treat the judge (model, prompt, and reasoning effort) as a measurement instrument, calibrate its error rate, and deploy it according to its measured performance, not its self-reported confidence.

Your scoreboard invents winners

On our 29 Click PRs looking at tests alone, 22 tasks told us nothing about which model was better (13 both passed, 5 both failed, 4 unresolved). The entire 29-task benchmark came down to 7 deciding tasks, which the frontier setup won 7–0.

Worse, small samples actively hallucinate winners out of run-to-run noise. Before comparing two setups, compare one setup against itself (an A/A test). When we ran the exact same configuration twice across 24 tasks, checking results partway through at 16 tasks reported an 89.8% probability that one identical run was better than the other. Across simulations, false-winner rates ran 11.3% at 5 tasks and still sat at 6.1% at 24 tasks.

Finally, collapsing cost and quality into a single ratio ("cost per successful task") rewards the model that gives up fastest. On our 24 task benchmark on our own repo, the cheap Luna low setup ranked #1 on cost per success ($0.26) while losing 0–13 head-to-head, because on hard multi-file tasks it quit in under four minutes for a few cents.

Conclusion

Synthesizing learnings from above, here's a checklist you can use going forward to raise the quality of coding agent evals you make:

  1. Ensure tasks are representative and fair.
    • Compare task size/type to the changes you actually make.
    • Specify the interface contract hidden tests import without leaking the implementation.
  2. Snapshot envs and block history.
    • Reuse verified environments so observation stays fast.
    • Catch and rerun infra/quota losses instead of scoring 0.
    • Aggressively block git/web/ticket lookups of the answer and audit traces.
  3. Verify tests by execution.
    • Prove tests fail on parent and pass with the solution.
    • Run behavioral checks outside the suite before relaxing a disputed test; use LLMs in tandem with execution, not as a replacement.
  4. Calibrate LLM judges.
    • Pin judge model, prompt, and reasoning effort across every arm you compare.
    • Don't trust judges' self-stated confidence - calibrate against execution-verified bad patches and factor that error rate into your decision.
  5. Pair results, run A/A, and extract calibrated signal.
    • Count head-to-head wins per task on disagreements, and keep cost separate from quality.
    • Run A/A tests to know your noise floor, and only add finer-grained grading dimensions whose accuracy you've measured.

Running the coding agents is the cheapest and easiest part: on the 29 Click PRs, running both models e2e cost $4.65 total ($0.27 + $4.38). Everything else (building clean tasks, maintaining sandbox snapshots, verifying disputed tests by execution, calibrating judges on known-bad patches, and running A/A checks) costs an order of magnitude more time, money, and engineering discipline.


r/ClaudeCode • • 6h ago

Tips & Workflows I built an open-source Rust CLI + MCP server to coordinate parallel AI coding agents at the symbol-contract level

Thumbnail
gallery
1 Upvotes

If you've avoided running multiple coding agents in parallel because of merge conflicts (or tried git worktrees and got burned), you've probably seen both failure modes:

  1. Uncoordinated parallel agents fall apart: in our 12-agent CommonMark 0.31.2 benchmark (652 official spec tests), uncoordinated worktrees (parallel-off) averaged ~9 merge conflicts and dropped to 199/652 passing (~302 integration-loss regressions).
  2. Silent cross-file breakage that git never catches: Agent A adds a required user_id param to send_email() in email.py; Agent B calls the old signature from reset.py. Clean git merge, both branches pass their own tests, broken together.

Running sequentially avoids conflicts but takes 65.1 min (3.1x slower). So I built Seamlock (Rust, MIT/Apache-2.0) — a local coherence engine + 12-tool MCP server that coordinates parallel agents at the symbol-contract level instead of locking whole files.

How it works

  • Contract vs. body separation (tree-sitter): Body edits never block anyone. Breaking contract edits (signatures, types, SQL/Prisma/Protobuf/OpenAPI schemas, and cross-language HTTP routes like FastAPI/Express/Next.js <-> fetch) send surgical notices only to affected callers.
  • Live region coherence + AST-verified union: Pure two-sided insertions in the same file are combined via patience/diff3 + AST verification; genuine overlaps use region ownership and hand-offs.
  • Finish gate: Blocks an agent from finishing while it depends on a stale contract or unresolved conflict.

Benchmarks (attached chart)

We didn't even benchmark against sequential — the primary comparison is head-to-head against a strong baseline: the same parallel agents plus a 13th AI merge-integrator agent (parallel-integrator), same models, reproducible harness:

  • 12-agent Python CommonMark (652 spec tests, DeepSeek V4.1 Flash): 652/652, 0 conflicts, 20.0 min, 34.0M tokens, $0.99 vs integrator's 31.7 min, 43.8M tokens, $1.15 (~9 conflicts resolved).
  • 6-agent Polyglot Full-Stack (SQL + Python + TypeScript @/, 30 live E2E): 30/30, 0 conflicts, 8.8 min, 7.7M tokens, $0.40 vs integrator's 13.8 min, 8.2M tokens, $0.33 (5–6 conflicts resolved). (Honest note: on small ~200-line additive scaffolds, a quick post-hoc integrator pass can still be a few cents cheaper; live coordination pays off most on larger, coupled codebases.)
  • 5-agent Next.js/Postgres product sprint: 0 conflicts, 16.7 min vs 19.1 min ($0.69 vs $0.76).
  • 6-agent TypeScript app (48 tests): 48/48, 0 conflicts, 3.7 min vs 6.8 min ($0.16 vs $0.21).

How you use it (plugs into your existing agent — macOS, Linux, Windows)

  1. Via MCP: npm i -g seamlock && seamlock setup — auto-configures Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, Gemini CLI, VS Code/Copilot, and Antigravity (or any stdio MCP client via seamlock mcp). Then just ask your agent to plan and run parallel tasks with Seamlock.
  2. Direct CLI: seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test" + seamlock watch.
  3. Sidekick only (no orchestrator): seamlock worktrees --base main to check existing git worktrees live for silent contract breaks, or seamlock merge --base main b1 b2 --type-check.

Install: npx seamlock · uvx seamlock · brew install lucas-rus/tap/seamlock · cargo binstall seamlock-cli

Happy to answer questions on the tree-sitter contract diffing, region coherence protocol, or benchmark setup!


r/ClaudeCode • • 15h ago

Discussion ChatGPT to plan, Haiku to execute

5 Upvotes

Paying 20 a month at each provider

Got a GitHub set up

Using Chat Sol 6.2 Instant in preparation for the Merge

I talk in Chat, it reviews the repo, we plan, brainstorm and then I get a prompt for Claude

In Claude Main is Haiku 5.5 Medium, Low subagent Explorer and High for Review/Advise

When done I go back to Chat with Claude's reply. It pushes code and also I have an evidence branch with pics and anything else needed technical like logs and reports

When I need a 2nd opinion I launch a temporary Chat on Medium

I think it's great value for 40 bucks, lasts me all week

Can't justify 100 and see no point getting another 20 dollar plan

Anyone experimenting with a similar workflow on a budget?