Hacker Newsnew | past | comments | ask | show | jobs | submit | missmoss's commentslogin

This is real. I was very angry that AI kept breaking the rules I wrote, so I asked Claude to crawl its own history logs. And then I found: every time after it breaks a rule, the chance of breaking rules goes up.

I feel this is like few-shot in reverse. Few-shot is supposed to be good examples AI should follow. But when it breaks a rule, we correct it, it keeps breaking, and this whole thing actually raises the probability of more violations.

I wanted to know if there is any difference between writing rules in the prompt, writing them in CLAUDE.md, or not writing at all. So I did some short tests before. I asked Claude to open brand new sessions, test different topics with the rules I want to apply. The result turns out to be: in a fresh session, no matter the rule is in a prompt or in CLAUDE.md, models (Opus 4.8, 5 or Fable) all follow it fine, across models. Even Opus 4.8, the one always violates rules in our conversations, does it well.

I suspect it's the long context that breaks rules. But simulating a long conversation experiment is kind of hard, I still haven't found a good way to test it. So seeing this paper now, it completely answers the question I was stuck on these few days.

Besides, something caught my eyes in this paper: sometimes the model does run the check by the rules, and it really finds the violation, but its narrative still insists on its original wrong output.

My current approach is same as everyone here: use a separate hook or post-check to fix things. Because if you let the model fix it during generation, its narrative or main generation part sometimes just rejects the rule error it found.


>. But when it breaks a rule, we correct it, it keeps breaking, and this whole thing actually raises the probability of more violations.

In Pre-LLM days the 'nearest unblocked neighborhood' problem, where patching out one issue just immediately runs into another issue, or a different path back to the same issue. Since the models can learn new long time behaviors it's difficult to change the behavior without changing the context quite a bit.


My guess is AI mostly increases the throughput of low-quality output, and the cleanup burden lands on the people with better judgment


I love this already. Slow-moving large animals are an instant yes for me


This makes perfect sense. My friend's cat is basically into window TV too


Love that sound. I could sit at the beach all day


Weirdly soothing to watch it slowly reposition itself


This is neat! It tackles a boring but real problem with agents. When you have too many tools, the model gets confused. This is a good search box for its tools instead of dumping everything into the prompt. Benchmarks is amazing!


Thank you! Let us know how it works if you try it out :) of course real world is another story, but we agree benchmarks are amazing indeed!


When working on an existing project, I always take a close look on what got changed by LLM. Sometimes I explicitly tell it which line to change and nothing else. Like what most people found, LLM sometimes, if not always, creates redundant over-engineering work trying to be useful, while most of time it actually breaks something, e.g. code quality and readability. In new projects, I focus more on plan, spec, test scheme. I review how modules are set up and sometimes functions, but pay less attention on implementation details.


Interesting that you draw the distinction of "breaking something" at code quality -- your customers almost guaranteed don't see it this way, and don't care about the code at all. So your viewpoint is team-centric, which is admirable, but loses steam outside of that circle, no?


Curious if there's a demo/screenshot on what questions developers should expect and what acceptable answers look like. Checked out the repo but didn't find the showcase.


The SaaS version has a short video demonstrating the UX: https://ninchi.ai


Cool! I watched the demo. The concept makes sense. Quick thought: free-text answers might be high friction for adoption. Not sure if you'd consider various verification method, but something like multiple choice questions or "highlight the relevant code chunk" could be lower effort for the developer, and easier to evaluate programmatically too.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: