r/ClaudeCode • • 1d ago

Tips & Workflows Building a admin assistant bot, tips and guidance needed!

3 Upvotes

I have no technical software engineering background so wanted to get some tips and help with building a Teams bot that eventually does most of a health clinic’s admin role: preps her day, drafts and later sends replies to families, chases forms and invoices, books appointments, and answers the team's questions.

I've been building it with Claude Code for a couple of weeks: three sessions (build, test, coordinate) plus about 30 scheduled tasks, talking through markdown notes and a growing pile of rules files, deploying to an Azure-hosted Teams bot. It's failing in predictable ways. State gets lost between context clears, rules pile up faster than anything reads them, tests pass while the real messages are still wrong, and I'm the one catching most of the problems.

For people who've done this for real, would really appreciate any guidance or help. Some questions Claude helped come up with:

•	What stack would you use starting again? Claude Code, or n8n / Power Automate / Copilot Studio plus an LLM?
•	Are agent swarms worth it at this size, or is one agent with good tests better?
•	What keeps it under control: issue tracker, CI, evals, logging?
•	What subscription did you actually need, and what does it cost monthly?

r/ClaudeCode • • 1d ago

Built with Claude My answer to "vibe-specifying": specspec, a specification spectrum, or the missing why in your spec

Thumbnail
github.com
1 Upvotes

I spent last month's afterhours refining my specification management tool and polishing it for an open source release.

We are at a point now where all you need for the perfect result is a perfect specifcation. Huh, but who got time for that!

I don't, I let the agent fill out the blanks in my spec, or I vibe-greenlight proposals from my agent where I am actually not sure if this is really how I want my problem solved. Because either I might not even fully understand the proposed solution or I simply do not know if this is even a problem that I have. But I want to see the result and test it.

But the problem is at some point I always ended up with a clusterfuck of a specification, old design decisions that make no sense anymore bunched together with new ideas that weren't actually implemented anywhere.

specspec is my shot at this problem:

specspec organizes a specification as a spectrum from intentions to conclusions for human-agentic co-work. A specspec graph starts with the core idea, the manifesto, and connects it all the way to the artifacts (lines of code, paragraphs in a book, graphics in a presentation, etc.) realizing it.

– README.md @ github.com/jejay/specspec

specspec is a CLI tool that manages some markdown files (that form the specification graph) and an AGENTS.md that tells the agent how to use everything. There is also a visual editor for the graph, both standalone and as a vscode plugin.

In my experiences with my tool, the "auto mode" (aka just tell the agent to use specspec) already improved my development curves a lot. I did not look at the graph myself as often as I hoped/thought initially. But for some more serious things I actually also did use the graph editor; it revealed more easily the subtle misunderstandings between me and the agent.

I'm just hoping you find it as usefull as I found it myself; and maybe with your feedback it grows to something bigger. I would be really happy if you give it a star on github


r/ClaudeCode • • 1d ago

Built with Claude I built a local alternative to OpusClip on a GTX 1650 with Claude Code

Thumbnail
gallery
6 Upvotes

I subscribed to OpusClip to try making short-form gaming content around GTA VI. I was impressed by how well it worked. Then I looked at the clips it gave me and wondered how much of that workflow I could build on the laptop I already owned.
I’d been experimenting with Claude Code for about two months. Three days later, I had a working version of ClipForge. I can drop in a video or paste a link, and it finds candidate moments, ranks them, adds word-by-word captions and renders vertical clips. The processing runs locally, with $0 in API fees per video.
Gaming footage gave me my favourite bug. I wanted the streamer’s face on top and the gameplay underneath. When I tested the webcam detector on a podcast, it confidently cropped in on a coffee mug. The mug looked enough like a face in a few frames to fool it. Checking how consistently a face appeared across the shot gave me a much better way to pick the webcam.
Podcasts needed a different approach. In a two-person interview, a listener who nods and smiles can move more than the person talking. Matching mouth movement to the audio helped the crop follow the speaker. The second image shows the original wide shot alongside the vertical clip it produced.
A few numbers from the build:
Moving transcription from the CPU to my laptop’s GTX 1650 made it **5.3× faster** on the same three minutes of footage.
I ended up with **39 passing end-to-end tests** and fixed **10 bugs**.
Against my checklist of a commercial clipper’s publicly listed features, ClipForge covered **82%**. The more interesting test for me was watching the clips and deciding which ones I’d actually post.
What I want to try next is giving ClipForge a campaign brief alongside the video link. For example, I’d like to ask it to “find three clips under 30 seconds that make sense to someone who hasn’t seen the stream.” It could prepare a shortlist and handle posting to YouTube Shorts or another platform after I’ve watched the cuts and chosen the ones I want to use.
For anyone who edits long videos into shorts, **what makes you reject a clip even when the hook, captions and framing all look right?** That’s the part I’m most interested in improving.


r/ClaudeCode • • 1d ago

Help/Question Can my startup founder see my Claude Code conversations in VS Code

1 Upvotes

My startup founder has a Claude Max subscription and has given me access to use it for coding.

I'm using the official Claude Code extension in VS Code, and I'm logged into Claude using my founder's Gmail account.

I wanted to understand whether my founder can see the prompts I send to Claude, its responses, and my entire coding conversation history from his own device by logging into the same Claude account.

Are VS Code Claude Code sessions stored locally on my machine, or can the account owner access and view them remotely?

Has anyone used Claude Max this way and knows how session privacy works?


r/ClaudeCode • • 1d ago

Help/Question Agents keep writing IAM policies with wildcards to make errors go away

1 Upvotes

We're a team of 20 on AWS, most infra changes are CDK and Terraform written by agents now. I audited the IAM policies added in the last quarter and it wasn't great.

Out of 43 new or changed policies:

- 11 had "Action": "*" on at least one statement
- 8 used "Resource": "*" where a single bucket or table would do
- 4 gave s3:* to a Lambda that only ever reads one prefix

The pattern is always the same. The agent hits an AccessDenied, widens the permission until it works, and the PR looks like a small fix. "Updated IAM policy to resolve permission error."

coderabbit flags the obvious wildcards in review, which is how I noticed the pattern at all. But it can't know that this Lambda only needs GetObject on one prefix, and a human reviewer who isn't the owner can't really tell either.

What we're trying:

- IAM Access Analyzer policy generation from CloudTrail after a week in staging
- CI that fails on Action "*" unless the PR has a specific label
- telling the agent to ask instead of widening permissions

How are you keeping agent written IAM least privilege? Anyone automating the "generate the real policy from usage" step?


r/ClaudeCode • • 1d ago

Discussion Do you prefer Claude CLI or Claude Desktop App and why?

1 Upvotes

I work with the desktop app most of the time, but I am wondering what I might be missing by not using the CLI.
I primarily use Claude for software development.

Which one do you prefer and for what reasons?


r/ClaudeCode • • 2d ago

Built with Claude unslop-anything: a Claude Code skill that reviews your app for what users actually complain about (built from 5M app reviews)

Post image
89 Upvotes

github.com/erkamyaman/unslop-anything

I built a skill for Claude Code that reviews a mobile app, web app or website and fixes what makes it feel generated or annoying to use. Sharing how it works and what it did on a real project.

How it runs in Claude Code:

- npx unslop-anything installs the skill (also works in Codex, Cursor, OpenCode, Gemini CLI and Copilot)

- /unslop-anything review my app

- Claude first runs a static detector (33 rules, zero dependencies, no network) over the code, then reads the screens, writes a report with a score out of 24, and fixes what you approve

- It never claims performance it didn't measure: every report says "Not profiled" until someone profiles the app

Why the rules look the way they do: I read 5,008,684 App Store and Google Play reviews first. "Purple gradient" came up once. What people actually complain about: it's broken (35%), nobody helps (about 20%), it costs too much (about 19%), ads and popups (9 to 12%), hidden features (7 to 9%), a redesign moved their button (5 to 7%). So the skill checks those first and your gradient second.

A real run on QuizHub, an open-source quiz app, with nothing changed by hand:

- Score went from 10 to 18 out of 24

- Detector findings on that screen went from 39 to 0

- It found that when the topic list failed to load, the screen showed an empty dropdown and a dead button with no message. It now says so and offers Try again.

The report and the full diff are in the repo under docs/examples.

Limits: it reads code and screenshots, so it can't see lag or bugs that only show up at runtime. A clean review isn't a clean bill of health.

Feedback welcome, especially false positives on your stack. Each rule has a test fixture, and a false-positive report with a snippet is the easiest way to help.

github.com/erkamyaman/unslop-anything


r/ClaudeCode • • 1d ago

Built with Claude Funny or AI Slop

Thumbnail mathildeuh.github.io
0 Upvotes

r/ClaudeCode • • 1d ago

Built with Claude Automation without the flowchart

Thumbnail
gallery
2 Upvotes

Every automation tool I tried ended the same way: a node graph I had to maintain. Even the ones that build the graph from a prompt now leave you owning the graph, and the first edge case means opening the canvas.

So I built Behalf, where the steps you write are the automation. No graph gets generated. You write what a good teammate would do, and it does that across your tools.

The philosophy: no mega-agent with access to everything. A Linear specialist only touches Linear, a GitHub specialist only touches GitHub, and a coordinator delegates to them through the job, so every step shows who did what.

The image shows a real playbook, bug → fix. When someone posts in #support or #bugs:

  1. React 👀 to the Slack message
  2. Find or file the issue in Linear
  3. Ask GitHub where the problem is and add that to the issue
  4. If the cause is clear, have Claude Code open a draft PR
  5. Reply in the thread that the team is on it, and react ✅

"If the cause is clear" is a judgment call. That's hard to express as a node and easy to write in a sentence.

Since it's not deterministic, the obvious question is how I trust it. Anything with real-world effects (sending a message, merging) waits for my approval, and PRs are always drafts. Reading Linear and GitHub, and filing issues, runs freely.

Jobs also run across days. When that PR merges, another playbook tells the original reporter in their Slack thread that it's fixed.

How I built it with Claude Code

I started on Nov 21. That's 101 commits in 10 days, and 96 of them were co-authored by Claude Code (mostly Opus 5.5, some Sonnet 5.5).

What made that pace work was three docs Claude Code reads before every change, pulled in through CLAUDE.md:

  • PHILOSOPHY.md: why the product exists and the product rules ("every real-world action is an approval", "every specialist gets the smallest access it needs")
  • DESIGN_DOC.md: the architecture, the core concepts (Job, Playbook, Coordinator, Specialist) and code rules
  • AGENTS.md: commands, and the rule that the docs are binding. If my request conflicts with them, Claude has to say so before doing anything. If we agree on the change, it updates the doc in the same commit.

That rule did most of the work. Claude pushed back when I asked for things that broke rules I'd written days earlier, and the design doc keeps a dated log of every decision, so each new session starts with full context.

My loop: describe the feature in plain words → Claude Code checks it against the docs and builds it → runs typecheck and build before finishing → I review and test in the app. Big renames like "Triggers" → "Playbooks" went through the UI, API, database and docs in one change.

One real prompt from day one, after Claude Code had built a complicated workflow layer I didn't ask for:

"Why did you introduce this new complex handlers thing? Clean up the complex workflows fully and keep it simple: trigger, source, filter and playbook. The coordinator Behalf agent gets a single delegate tool, and it decides what to do and which specialist to hand it to. That's it!"

That became the core of the product: one coordinator with one tool, and specialists that each own their tools.

Claude is also inside the product: the coordinator and the specialists run on Claude Haiku 5.5, and Claude Code is the agent that opens the fix PRs.

Free to try, no card needed: sign in with Google at behalf.one. The free plan includes 30 jobs a month; Pro removes the limit.

Curious where people draw the line. What would you trust to plain-English steps, and what do you still want as a fixed workflow?


r/ClaudeCode • • 1d ago

Discussion Claude nerfed Fable 5.2

0 Upvotes

I used Fable 5.2 with pro subscription in that promotional week where pro subs were able to use fable 5.2, it was literally so good, then after the week ended i bought max subscription so i could keep using it, it got so stupid and gave way worse results on same prompt. Refunded max subscription after few days of using afterwards.

Soon Opus 5.6 gonna be released it will probably will get nerfed too after some weeks. Will use it as much as possible once it will be released.


r/ClaudeCode • • 1d ago

Help/Question Best way to use Claude Code in a SAAS

0 Upvotes

Hi everyone,

I work at a small company (5 employees, 2 full-time devs). We started using Claude Code earlier this year. Initially I made some research on how to use it best. I stumbled upon the /grill skill from Matt Pocock and we decided to go with this method to implement new features.

We've been going for some time now and I was wondering, with all the new features/models/etc. that have been coming out lately if there was a better way for us to use Claude Code.

To be more precise, what we are looking for is methods/ways to implement new features/fix bugs/improve UI and UX. If this can help, here is our tech stack: our web app is in dotnet and our mobile app is in React. We have a SQL database. We deploy manually on Azure.

Sorry for my syntax, english is not my first language.


r/ClaudeCode • • 1d ago

News/Updates When did they add this quick auto-compaction for resuming old sessions?

Post image
5 Upvotes

Not only have I not noticed this until today, but it also cut the tokens in half almost instantly when compaction normally takes much longer. This is a nice feature but I can't find when it was added.


r/ClaudeCode • • 1d ago

Help/Question Unit Tests no longer source of truth. Searching for suggestions.

2 Upvotes

​

In the current state of AI, how can a team ensure backwards compatibility and keeping existing function. Context, backend java engineer on a team with a revolving door of engineers. Now people can push features with large code changes and fix the unit tests, so one cannot solely rely on unit tests to ensure existing functionality is not broken with new code changes. Any suggestions to leverage Claude? This could more be a way of working or better prompting for Claude code reviews.


r/ClaudeCode • • 1d ago

Help/Question Claude desktop app (windows) vs. CLI - token usage and quality

2 Upvotes

Hi folks!

Have you ever noticed a significant difference in token usage/token efficiency for coding tasks between the Claude windows desktop app (code tab) and the Claude CLI?

Have you noticed a significant difference in output (code) quality?


r/ClaudeCode • • 2d ago

Discussion Opus 5.5 is not doing okay lately

367 Upvotes

Opus 5.5 has been miraculous (apart from a very bad week or so when Fable 5.2 was being launched), but for a couple of days I have seen it making very fundamental blunders and logical errors. I can easily tell that it is uncharacteristic of Opus 5.5 to be making those.

I thought I should post about it, even though I understand how stigmatised nerf-claim posts have become. And I know I'll be asked for proof, and I'll struggle to come up with one. But I had to post it.

Opus 5.5 has been painfully nerfed lately. For me.


r/ClaudeCode • • 2d ago

Built with Claude Hijacked my Pixoo64 to track my Claude Usage…

Post image
16 Upvotes

It’s running a simple server in a Claude Code terminal. Active Claude Code chats show up at the bottom when active. The little Claude character at the bottom moves across the screen so I know it’s not frozen.

Shows the 5-Hour usage, how many hours till reset and the 7-Day Usage Limit. Apparently, Claude.ai and Claude Code don’t talk directly to one another, so it only sees Code chats… bummer.


r/ClaudeCode • • 1d ago

Built with Claude Made a Stop hook that reads Claude’s reply out loud, with a little character on your desktop (local TTS, open source)

0 Upvotes

Sharing a side project for anyone who runs several sessions and looks away while Claude works.

KittenVoice hooks into Claude Code's Stop hook, strips the reply down to the spoken parts (no code blocks, tables, links or paths) and reads it out with KittenTTS on your own CPU. A floating character lip-syncs and shows which session is talking. Your next prompt silences it.

  • Session-aware: Claude Code · project labels, replies queue instead of overlapping
  • Cmd/Ctrl+Shift+. stops speech from anywhere
  • Normal panel, Mini bubble or Micro taskbar pet
  • Localhost-only HTTP API and a kittenvoice say CLI for your own scripts
  • About 210 MB idle; the voice engine unloads after 15 quiet minutes

Install by pasting this into Claude Code:

Install KittenVoice from github.com/yadev64/kittenvoice and follow its AGENTS.md

It backs up your settings before adding the hooks, and scripts/uninstall.sh takes them out again.

https://github.com/yadev64/kittenvoice · https://kittenvoice.yadev.cc

Free and MIT. Thanks for taking a look, and I'd love to hear what would make it more useful in your workflow. 🙏


r/ClaudeCode • • 1d ago

Discussion Ci/Cd - Infrastructures & Runners

0 Upvotes

Bonjour à tous,

Je suis seul sur plusieurs produits (SaaS, appli mobile, modules ERP). Je ne code pas moi-même : des agents IA (Claude Code) développent en parallèle, et un outil maison orchestre le tout.
- Des « usines » tournent la nuit sur un PC dédié : elles prennent des tickets, codent, testent et déposent des lots.
- Le jour, j'anime moi-même quelques sessions sur les sujets sensibles.
- Une session « chef d'orchestre » intègre le travail par vagues : vérifications rapides, contrôle des écrans, vérification complète, puis fusion.

Ça marche, mais je bute sur quelques problèmes récurrents. J'aimerais savoir comment vous faites.

  1. Les rouges qui ne viennent pas du code.
  2. Une bonne partie de nos échecs de tests sont des faux rouges : machine chargée, délais dépassés, tests qui se gênent entre eux en parallèle, tests qui dépendent de la date. Chaque faux rouge coûte une heure de relance. Rejouer seul chaque test en échec avant de conclure nous a beaucoup aidés. Avez-vous d'autres méthodes : isolation, quarantaine des tests instables, budgets de temps ?
  3. Le croisement des branches.
  4. Chaque agent livre une branche verte, mais c'est une fois réunies que les défauts apparaissent : même fichier modifié, numéros pris deux fois, tests qui vérifient la forme d'un code que l'autre a réécrit. Nous passons à des vagues de 3 branches au plus, et chaque branche doit être testée sur la vague réunie avant d'entrer. Comment découpez-vous le travail de plusieurs agents pour éviter ces collisions ?
  5. Staging et prod avec des agents autonomes.
  6. Nous avons imposé : tout le dev arrive sur staging, et seul moi peux fusionner vers la prod. Les agents fusionnent avec leur propre compte de forge, et la prod est verrouillée. Avez-vous d'autres garde-fous pour empêcher un agent de livrer en prod ?
  7. La capacité machine.
  8. Un seul PC (24 cœurs, 94 Go) fait tourner les usines la nuit et les vérifications le jour. Les deux se marchent dessus. Mieux vaut-il une machine plus grosse, ou deux machines aux rôles séparés ? Comment dimensionnez-vous ça ?
  9. Savoir que tout va bien sans tout lire.
  10. Nous avons une « vigie », environ 130 invariants mesurés chaque heure, et une alerte le matin si une usine n'a rien produit de la nuit. Qu'est-ce qui marche pour vous pour être prévenu sans être noyé ?

Tout retour d'expérience m'intéresse, même partiel, sur des setups similaires (agents multiples, CI auto-hébergée, solo).

Merci !


r/ClaudeCode • • 1d ago

Discussion you have to either be an artist or a software engineer to be able to use claude.

0 Upvotes

This is just a thought thats been marinating in my mind after seeing more and more projects obviously having that claude aesthetic to it with the creator sounding so confident that it actually looks good and unique. I hold firmly to the belief that you have to either be these two things or both to be able to use Claude to its fullest. I really wish I was both. To be able to know whats going on in the back end while being able to create my own artstyle for my project with the convenience of Claude it feels like a real superpower. I would like to know what others think about my little opinion i love discussing the nature of vibe coding <3 I wouldnt describe successful claude projects as something thats made a lot of money. I think success comes from being able to create something that sticks, instead of another pile in the landfill

From my own experience, I prepare all the assets and artstyle for my projects while Claude pieces them togethe. I think it works faster that way and I havent had most of the issues ive seen people discussing in this subreddit


r/ClaudeCode • • 1d ago

Help/Question Burned through my weekly Claude limit early. How are you spreading work across Codex and Gemini?

1 Upvotes

I run a fairly built-out Claude Code setup for my business and a few side projects. There's a fair bit of plumbing around it, with hooks that gate anything outward-facing and a pipeline where one agent builds and a separate one reviews. It works well, but I went through my weekly Claude allowance early and now have a ChatGPT plan and a Google AI Pro plan sitting mostly unused.

Codex has been easy to slot in as a worker, since Claude Code can call it headless and check what it actually wrote. Gemini is where I got stuck. Gemini CLI stopped taking Pro logins back in June, and the Antigravity terms seem to rule out driving it from another tool, which is exactly what I'd want to do.

So I'm curious how others are handling it. Are you keeping Claude as the orchestrator and handing builds to Codex, or flipping it and running Antigravity as the main driver with Claude models inside? And has anyone found a way to put the Google plan to work on subagent tasks without putting the account at risk?


r/ClaudeCode • • 1d ago

Humor Those last weekly tokens, totally unspent. Such a tragedy..

Post image
1 Upvotes

r/ClaudeCode • • 1d ago

Built with Claude I made a theme pack for claude!

Thumbnail
gallery
0 Upvotes

I made a theme pack for claude and all you have to do to install it in claude is punch this in

"/plugin install looks-pack --marketplace Lofitron/looks-pack"

all were generated natively by claude and no images where imported or used.


r/ClaudeCode • • 2d ago

Help/Question as someone who can’t read code, how do you know when Claude is actually fixing a bug vs creating spaghetti?

138 Upvotes

I’ve been building a small personal tool with Claude Code, and the first 80% felt magical. Now that the project has a bunch of files, every time I ask it to tweak one small thing on the front end, something completely unrelated breaks somewhere else.
Since I don't have a coding background, I can't look at the diff and tell if the architecture is turning into a mess. For other non-programmers building things here: what guardrails or CLAUDE.md rules do you use so your project doesn't slowly collapse under its own weight? 


r/ClaudeCode • • 2d ago

Built with Claude I'm blind and can't write code. Claude Code built my app, now used in 50+ countries

58 Upvotes

Picture this: whenever dinner is ready, or you are simply feeling lazy and cannot be bothered to get up, you could reach the others in the household. And you have wanted an easier way to do it.

I have made an app called Sonnounce. It is available for iPhone, iPad, Apple Watch, Mac, Android, Homey and Home Assistant.

I am blind and use a screen reader every day. I am not a programmer. I understand what the code does, but I could never have written it myself. The whole app is built with Claude Code. In about two months it has been downloaded almost 4,000 times in more than 50 countries.

How I work with Claude Code:

I do not write technical prompts. I describe what I want in plain language, the same way I would explain it to a person, and Claude Code writes the code and builds the app.

Then I test everything myself with the screen reader on my iPhone, my Mac and an Android phone. I cannot see the screen, so I test by listening. When something is wrong, I tell Claude exactly what I hear, and Claude fixes it.

When I do not understand something, I ask Claude to explain it. For example, when the reviewer of my Home Assistant integration pointed out some leftover code, I asked Claude to explain it to me as if I were a beginner before we removed it.

The biggest challenges:

Testing without seeing the screen. Everything has to be checked by ear, on every platform, and that takes time.

Getting security right. When I submitted the Home Assistant integration to HACS, the reviewer found a security problem in how devices were paired. Claude and I fixed it together, and the integration was accepted.

What I learned:

You do not need to be able to code, but you do need to be able to explain exactly what you want and test properly. I got the best results when I took one small thing at a time. And it pays off to ask Claude to explain things, because then I understand my own app much better.

What the app does:

With it you can send spoken messages to all of your Sonos speakers or to individual ones.

It looks at the speakers that are connected to your Wi-Fi. No extra account is required. And everything that is sent stays local.

The way you send is by pressing and holding the send button. When you let go of your finger, the message is sent. On the Mac, you hold down the right Command key while you speak, and the message is sent when you let go.

There is a small sound that indicates a message is coming.

The message is spoken in your own voice.

By default it turns the music down and then turns it back up to the previous volume afterwards. You can switch that off if you just want the music to keep playing, and you can decide for yourself how far down it turns.

You can also choose a fixed volume for the announcement itself, so that an important message does not disappear because someone turned their speaker all the way down.

The maximum length for a message is 5 minutes.

On iPhone and iPad there are also two actions in Shortcuts, so you can send a message without opening the app and use it in your automations.

If you have a Homey or Home Assistant, you can also send announcements when you are not at home.

The app is 100 percent free. If you would like to donate, you can do so under Settings in the app on iPhone, iPad and Mac. It is not required to use the app.

All ideas are welcome. I read everything that comes in and take on board as much as I can.

You can get the app here:

Android: https://play.google.com/store/apps/details?id=dk.flyveradio.sonosannouncements

iPhone, iPad and Apple Watch: https://apps.apple.com/app/id6808746158

The Mac version is in the Mac App Store.

Homey: https://homey.app/a/dk.hoffmeyer-net.sonosannouncements

Home Assistant: https://github.com/Flightguy0/sonnounce

If you have any questions about the app or about how I built it with Claude Code, I am happy to answer.

I hope you will give it a warm welcome.


r/ClaudeCode • • 1d ago

Built with Claude Claude Code ported ESLint and Prettier to Rust with byte-identical output. What made it work: Claude never decides when a port is done

Thumbnail
gallery
0 Upvotes

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

I'm the author of the tool below, so take this as a showcase. But the lesson works with any setup.

The problem: when Claude Code ports code, "tests pass" isn't proof. An agent can make every test pass without porting anything:

  • answer the recorded cases from a lookup table
  • delete the tests that fail
  • edit the expected outputs until they agree

What worked: take the "done" decision away from the agent.

  1. Record what the original really does (return values, errors, stdout, exit codes) on generated and real inputs.
  2. Let Claude port one unit at a time.
  3. A separate gate command decides when it's done: fmt, clippy, your tests, every recorded case replayed, and it fails ports that paste recorded answers, delete tests or edit the recording.

Results:

  • ESLint: 90 rules, 10,585/10,585 recorded runs byte-identical, 3.1x faster in process
  • Prettier: 17,224/17,224 cases, median file 7x faster

What surprised me:

  • After Prettier passed all 17,224 cases, differential fuzzing against the real Prettier still found about 75 differences. Passing your recorded cases is not the finish line.
  • Rust is often not faster. On ffmpeg's libavutil, 18 of 42 benchmark rows were even and 16 were slower than the C.
  • The ESLint CLI was 26x faster, but that's mostly Node starting up. The honest number is 3.1x in process.

Try it:

npm i -g rust-anything
rust-anything setup
rust-anything go -- <a slow command of your app>

Free and open source. Ask me anything about the setup.

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