News for hackers. Stuff that matters.

zachahn

Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @04:12PM (#49379604)
FWIW, I think this is good guidance since it does match Anthropic's documentation. They say that every rule should have a non-subjective way to determine pass/fail.

(I said "good guidance" but it might be more correct to say that it's the best guidance we have, it's what Anthropic says about their own model.)

Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @02:58PM (#49378693)
Hehe thanks for sharing the example, and thanks also for posting! Made my day :)
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @02:57PM (#49378677)
Yeah I agree... I also tried output styles, tried using hooks to repeatedly tell it to be a little better. I don't think it helped, as I was always frustrated with it.

I found vomit with a small LLM much better than anything Opus 5 ever wrote. I don't think Opus 5 can write.

Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @02:52PM (#49378592)
Opus 5 (author here). My toilet seat is plastic though, I only used Fable while it was available on the $20 plan! That's fair though, it was relatively fine when I did use it, perhaps I should specify.
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @02:49PM (#49378568)
I have a transcript on my blog post. Someone copied the transcript here too, search "spice‑harvester" on this page (I asked it to replace some of my personal project names with words from the Dune universe).
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @02:00PM (#49377996)
I'm not super sure if this is true (yet?). I think that these newer LLMs are trained on results (the agent got some code to run with minimal prompting), and not on text. (I think this is called RLVR.)
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @01:56PM (#49377943)
Idk, there kinda are. OpenAI's models are pretty nice too. I haven't tried enough of them but there are powerful local models. I don't feel as good paying OpenAI as I do paying Anthropic for some reason... but paying for improved mental health: priceless.
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @01:46PM (#49377806)
I totally agree that hooks help to shovel our instructions through to Claude, but it's so dumb we have to waste tons of tokens (repeated verbatim, over and over) (that we pay for), just to have it ignore the instructions anyway.

I wrote a little bit about it on my blog post. It's a waste of money and compute.

https://zachahn.com/posts/1787191554

Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @01:39PM (#49377727)
Thanks! Author here, I'll have to take a look. I am all for programmed, deterministic solutions. I hate praying to the rocks we created, begging for rain and not vomit.
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @01:37PM (#49377709)
Nope (author here), Anthropic and OpenAI have competing APIs to communicate with their models. Most of the open ecosystem seems to have centralized around OpenAI's (there are compatibility shims though). I just built out the OpenAI API
Re:Clean up Claude 5's token vomit with a separate LLM on Thursday August 20, 2026 @01:19PM (#49377481)
Ahh! Author here. Thanks for posting! In case anyone wants to share in my frustration, I also wrote a blog post about this.

Blog post: https://zachahn.com/posts/1787191554

The prompt I use to tell the LLM what to fix: https://github.com/zachahn/vomit/blob/main/internal/config/s...

Wasn't received too well on Lobsters haha, wrote a small extra blurb about it there: https://lobste.rs/s/juekuk/how_fix_claude_5_s_token_vomit

Re:My Notes on Gitlab's Postgres Schema Design (2022) on Sunday February 18, 2024 @08:56AM (#39419108)
I can't really comment on GitHub, but Rails supports composite primary keys as of Rails 7.1, the latest released version [1].

About modularity, there are projects like Mongoid which can completely replace ActiveRecord. And there are plugins for the view layer, like "jbuilder" and "haml", and we can bypass the view layer completely by generating/sending data inside controller actions. But fair, I don't know if we can completely replace the view and controller layers.

I know I'm missing your larger point about architecture! I don't have so much to say, but I agree I've definitely worked on some hard-to-maintain systems. I wonder if that's an inevitability of Rails or an inevitability of software systems—though I'm sure there are exceptional codebases out there somewhere!

[1] https://guides.rubyonrails.org/7_1_release_notes.html#compos...