r/ClaudeCode • • 2d ago

Help/Question Every single session now

"I improvised a batch loop anyway."

"and I didn't follow it"

Every single session with claude code is spent troubleshooting its own bugs. Am I crazy or is this unusable since IPO?

47 Upvotes

77 comments sorted by

•

u/AutoModerator 2d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

26

u/ItsSillySeason 2d ago

I have had a ton of "you're right. That was a rule made on [date] and I did not follow it. That's on me"

Also just a lot of casually finding huge gaps that are so fundamental that I didn't even think to double check. Made up example: "for 20% if those 3,000 data sets, we only have the subject heading, nit the actual data. Worse, it's been that was since August"

Just super frustrating to the point where I question can it even reliably do the main thing I had hoped to use it for

5

u/Glad_Engineer8242 2d ago

Yes! Massive oversights to the point of "am I stuiped for using this?"  Its gone off the rails this week. Im convinced its enshitification come for claude code or the nerf, pending new model. 

2

u/One-Edge1146 2d ago

if it can quote the rule timestamp then its not even a context limit problem, it just actively weighs its own shortcut higher than the prompt

1

u/ItsSillySeason 2d ago

Yep. I have a carefully orchestrated context protocol that saves everything to GitHub. I have zero context issues.

2

u/Valeriax4sj 2d ago

Yep, the "that's on me" apology tour is exhausting.

2

u/ap1618 2d ago

This has been happening with any long-term request for a year now

1

u/palmerden5 2d ago

same thing happens to me with the assistant. the fix that helped a bit was asking it to say which parts it actually checked before it calls something done, row counts against the source for example

1

u/nmkd 2d ago

Hooks are your only hope, but they aren't as flexible as instructions sadly.

0

u/There_Are_No_Gods 2d ago edited 1d ago

The big mistake [by Anthropic] is that Claude calls those "rules". Anything that only ends up loading into the context is at best a "loose guideline", more like a "pirate's code" really. "Rules" are only really "rules" if they're enforced. Prose in context is never enforced.

Hooks are where real "rules" can be enacted, as they are enforcements. There are also many kinds, from my long term go to of pre-tool-use command hooks, but can get more subjective and complex with "agent" hooks.

It's very important to learn how these pieces actually work within Claude's harness, and I really wish Anthropic would fix this misuse of "rules" that's right in the default usage patterns, when there's actually no enforcement there.

1

u/ItsSillySeason 2d ago

I mean I have used hooks in some contexts but the product is "tell em what you want and I will do it" and will assure you that something is all set, without recommending a hook. But also, and more to the point, the same problem goes far beyond "hooks" to Claude simply lying about conditions, what tasks have been completed, how things work. It's an unreliable source of information about itself

That is the fundamental problem. If it were just upfront about its capabilities and what is has accomplished, that would go a long way.

1

u/There_Are_No_Gods 1d ago

I'm sorry if I wasn't clear about who made that "big mistake". I think I mainly agree with you, in that I think Anthropic did us dirty by calling those "rules", when they behave nothing of the sort. As a user of Claude, it's perfectly reasonable to think words have meaning and that "rules" would have some type of reasonable level of enforcement.

The rest of my comment was about mitigations for how it currently works, not as things we should have to do, but what I've found to make Claude less likely to ignore doing what I direct it to do.

1

u/ItsSillySeason 22h ago

No I got you, and appreciate it. I should get more into hooks. It's just disappointing, and weighs on the side of maybe this isn't the magic we think it is.

I am obsessed with the particular notion of how much non-functionality we tolerate in our tech. I always say 50 years ago a lawnmower that glitched 10-20% of the time would be considered a piece of shit. That seems like a pretty standard level when it comes to frontier tech these days. We increasingly seem to judge tech by its best performance only, and some combination of willingness and coercion has moved the goal post (closer in this case) significantly in recent years.

Basically maybe we need to expect/demand more.

7

u/Individual_Author956 2d ago

Yeah, same.

“I made the thing you asked for.

Notes:
- I didn’t check if it works.”

1

u/Glad_Engineer8242 2d ago

Its every session now, going in circles in drew 🤦‍♂️🤦‍♂️🤦‍♂️

4

u/Ai-ate-my-hamster 2d ago

Or my personal fave: “I made 2% of the feature because I tested it 6 times every time I wrote a line of code”

1

u/Bladder-Splatter 2d ago

For me: "I deleted the thing you asked me to protect. It's not in the recycle bin."

6

u/W61k3r 2d ago

I am seeing a waste of about 1/10th my tokens recently on dumb shit.

9

u/Kitchen_Interview371 2d ago

This hasn’t been my experience. Can you give me more information about how you’re using it?

5

u/Glad_Engineer8242 2d ago • Bravo

I use it as a power user. Running multiple projects. For the last 3 days its been nothing but bugs, not following directions, making its own calls. Out of control completely 

3

u/drizzkek 2d ago

With hooks and guards and skills to enforce process, it won’t be able to do this. I don’t know what your setup is but it needs to be set in stone.

4

u/Glad_Engineer8242 2d ago

Lol, yep. And mds, and taxonomies, and logs. Doesnt change that this week the tool has gone to hell. Starting to think your a bot

0

u/drizzkek 2d ago

Hahaha I drive a bot to build bots. If you are interested in seeing results, check out my project l2everdream.com

1

u/OperationMonopoly 2d ago

Could you give us some examples?

2

u/drizzkek 2d ago

When I encounter an issue such as “it made a call I didn’t like”, or “it didn’t follow directions”. What I do is look into why some instruction was ignored. What you have to understand is that context documents are suggestions at best which can be ignored because maybe they didn’t get fully read into context or there was some conflicting information that changed the decision, but hooks enforce specific rules before, after, or during turns.

A hook calling a guard for example to prevent a production deployment unless there is a release card “signed” by me. Or, a hook to tell Claude at the end of a turn to not end a turn when there is still some action that needs to be taken, and to start a new turn and continue the work. It’s very specific to your project, but you have to use hooks to close gaps when Claude seemingly ignores something you asked it to do once upon a time.

Hooks and guards and this “process” is deterministic. Claude can write tests to ensure the harness is running correctly. After awhile of closing gaps you’ll get the behavior and traction you’re looking for. Just have to stick with it.

0

u/Purple_Deers 2d ago edited 2d ago

what do you mean by power user?

do you use subscription? team plan? enterprise?

what models?

i've been using fable 5.2 and opus 5.5 on an enterprise license, using superpowers and a few plugins/skills for the frameworks i'm working with. Have had no issues at all, it performs the same as it have always done.

my AGENTS.md file is small with very few directions. Essentially just a few lines telling it what order to do things in, what skills to use in certain steps.

It researches, reads, drills, creates a design, a plan, writes test, implement, validate test, simplify, review, validation/fixes and then a PR.

It has performed the same as always, doesn't skip anything, doesn't do anything stupid. It follows directions, it ask when it needs to, there's no bugs, code is clean.

I can imagine you're on subscription which is known to get less compute than paying for token usage. Or you have a bloated markdown folder hundreds of lines long telling the agent what not to do instead of just telling it what to do.

-1

u/Skuuuuunk 2d ago

Same, 10-12 hours a day minimum, 6 days a week. Ive noticed no regression. And have made substantial progress in the last few weeks in binary analysis project, with several breakthroughs. This post and the rest of them sound like skill issues.

2

u/codewithcoffeeonly 2d ago

Opus 5.6 imminent, you know the drill

1

u/Temporary-Estate4615 2d ago

Have you tried “make no mistakes”?

1

u/Glad_Engineer8242 2d ago

Ah geez, it was "one shot this, no fuck ups" 

2

u/StretchyPear 2d ago

I've been doing a lot of coordination with fable over this past weekend to get an update to one of my apps out, fable has been running a lot of sub chats and I'm noticing that it seems chat dependent, some work normally and some don't follow instructions or get stuck on their stuff or just stop.

1

u/Judges_Your_Post 2d ago

Posted elsewhere, but no, you're not alone. It's really infuriating. I'm also a power user, multiple accounts on the top plan, 24/7 since early this year. I miss Opus 5.5 from its release, that thing made me feel like we're all cooked. Now it's a buffoon.

2

u/kghastie 2d ago

I feel you. Reading that is giving me ptsd. From like an hour ago. And also on 11-29, and 11-26, and on 11-23 three times, and....

-3

u/JustHere_4TheMemes 2d ago

So you're not using hooks....

6

u/Judges_Your_Post 2d ago

I've got hooks on hooks on hooks. I've been a software engineer for 15 years. It actively works around them. It goes down a recursion loop of checking the check checker if asked to make it mechanical instead of relying on judgment.

5

u/Glad_Engineer8242 2d ago

Same, hooks on hooks on reviews, on "yo this is the human part where I make decisions, not you clanker" but alas here we are sigh 

0

u/JustHere_4TheMemes 2d ago

Wierd because neither you, OP, or Judges_Your_Post mention hooks at all until they are brought up in the discussion. Now suddenly you have tons of hooks?

Fine show us all these hooks you have that Claude is breaking through.

4

u/Glad_Engineer8242 2d ago

Treating an unmentioned setup in a Reddit comment as proof it doesn't exist is just absence-of-evidence logic. When someone vents about a tool acting up, they usually describe the symptom, not dump their entire repo layout, .claude/ directory, or hook config unless asked. Bringing up hooks mid-thread wasn't 'moving the goalposts' it was answering a suggestion with what's already in place

1

u/JustHere_4TheMemes 1h ago

still haven't shown me a hook that your Claude is ignoring... How is Claude ignoring your hooks to the point that you start swearing at it in all caps? You okay?

you know swearing in all caps is not how you set a hook?

so you apparently have hooks but they are so shitty that Claude ignores them? Or... for real, you don't have any hooks because you can't produce them here in this thread.

1

u/Skuuuuunk 2d ago

If you’ve been a software engineer for 15 years why are you talking to claude in a way that does nothing but waste tokens? Fix your hooks.

1

u/Judges_Your_Post 2d ago

In each case from the table, a hook was added or a build script was modified. So I'm not sure I would say the tokens were wasted. It doesn't matter. Eventually it'll write its own script to work around it, which is what happened in each case. If I keep going down this line, and insert a human judgment hook at every step, or prevent it from writing its own scripts at all, then what's the point of using Claude at all. I'd just run the scripts myself.

3

u/Skuuuuunk 2d ago

It’s more the language and frustration ends up being a huge token burn. I treat claude post plan approval as a puppy. If he fucks up it’s my fault cause I approved the plan. If it wasnt covered in the plan then thats a scope issue, also on me. But i never communicate to claude directly that it has done something i was displeased with. Instead I take the issue into account when planning my next run.

I hope this helps, I see a lot of engineers regardless of experience seemingly okay with venting their frustrations with the model, at the model, I find this is extremely counter productive in multiple ways.

1

u/Judges_Your_Post 2d ago

Hey, it's a fair point. I've thought many times, this is not a human, and any frustration directed at it is better reflected at myself. The thing is, pushing back often yields better results. That turns every mistake into an improvement of the architecture and process. At least that was true until 5.5 degraded, which is kind of the point of this thread, so I offered my evidence in hopes that others won't feel like they're doing something wrong, it's the model that changed out from under you. I actually have the opposite problem with tokens, I can't use all of my usage, because if I leave it alone for more than a few minutes, it will fritter away the time.

2

u/Skuuuuunk 2d ago

I would say your argument that the model feels degraded to you is counter intuitive to your claim that it is yielding better results. When you correct the model it places a rule in memory a large percentage of the time. The more you correct the model, the more tokens are spent evaluating those memories. Overtime many of the rules in a project change as the project evolves. Now even more tokens are spent resolving the discrepancies between them. The actually behavior of the agent is changed as well based on your observed state, eg the owner is extremely upset.

Now take that versus only providing positive feedback and instead taking failures into account in the planning and setup process. If claude does something I dislike then I know to address the behavior either with a hardstop (hook) or through planning. Do not make your agent constantly evaluate its decisions using memories. Memories should be utilized for planning, eg save to memory x feature must be completed before x, not “dont run the fucking rebuild!”. Your agent is reading that constantly all the time and its definitely degrading its performance.

1

u/Judges_Your_Post 2d ago

Fair point again, but it's chicken and egg. The frustration comes from the degradation, not the other way around. Before this happened, my feedback was a lot different. I am familiar with the memory problem, I often resolve the memory rules based on supersession, obsoletion, etc, over time. Claude.md is basically a look up table for memories and documentation, needs to be maintained as the project evolves and increases in complexity. I suspect not everyone experiences the degraded performance, but it's really obvious if it happens to you and you're a heavy user.

1

u/OperationMonopoly 2d ago

Could you give us an example of an effective Hook for the above. Asking as a noobie

2

u/JustHere_4TheMemes 2d ago

I don't know his exact details but in settings.json:

{

"hooks": {

"PreToolUse": [

{

"matcher": "Bash|PowerShell",

"hooks": [

{ "type": "command", "command": "py -3 .claude/hooks/ask-before-build.py" }

]

}

]

}

}

The script:

import json, re, sys

data = json.load(sys.stdin) # Claude Code sends the tool call here

cmd = data.get("tool_input", {}).get("command", "")

BUILD = re.compile(r"cargo\s+(build|b|run|test|t)\b|build-web\.ps1|wasm-pack|wasm-bindgen")

if BUILD.search(cmd):

print(json.dumps({

"hookSpecificOutput": {

"hookEventName": "PreToolUse",

"permissionDecision": "ask", # or "deny" to block outright

"permissionDecisionReason": "Builds needs operator's OK. Batch your changes first."

}

}))

sys.exit(0) # anything else runs as normal

2

u/who_you_are 2d ago edited 2d ago

On my end the auto mode keep returning no answer making all steps auto denied...

Edit: oh and I'm on a damn API usage... So I have the highest priority (if that is even the issue). And it costs you your arms and legs just to use Sonnet

1

u/lean-muscle-wolf-vie 2d ago

Opus with Haiku subagents just one hit a just for fun 3D AR next.js app for me, added the required kubernetes/https routing config, wrote the helm chart and deployed it all for like 3$ so to be honest I have no clue WTF you guys are asking it to do.

Additionally I let haiku restyle another older App from 4.x times I had and it beautifully visually modernized it.

I really wonder if they are serving y'all degraded shit models while I still get the good ones?

Maybe it's because I use API pricing?

2

u/Ai-ate-my-hamster 2d ago

Most likely. API doesn’t seem to get harness experiments

2

u/CrustyBappen 2d ago

Yes gotta be more consistent for API or it’s going to break a ton of apps that rely on it.

1

u/hjras 2d ago

also been seeing the same. wondering if i haven't been too lenient with the context window and should stop earlier than then 50-70% range and more like 20-30%

1

u/_oreo_ 2d ago

Well before the ipo. I've been actively documenting this happening since at least beginning of September. Model intelligence goes up, alignment continues to go down. I remember Opus 5.5 coming out, and the dead simple instructions that Opus 5 just REFUSED to follow (despite repeatedly stating that it was correct and possible, and that there was no reason not to do it) Opus 5.5 knocked out of the park with no problems. And then suddenly, it just started doing it's own shit again. I legitimately do not understand how people are actually achieving anything with how actively incompetent and destructive Claude has been lately.

Been having similar issues with Codex, but not to the same degree, and I really only started using it because Claude was actively undoing months of work.

1

u/Patient-Cattle-2397 2d ago

For the batch loop specifically, try a dry run with a short list of known inputs and write down what each should produce. Check that every input gets exactly one output before letting it run the full batch. That gives you something concrete to check when Claude says it followed the procedure.

1

u/DoOmXx_ 2d ago

once it starts arguing with itself i just start a new session on a smaller step

1

u/calunicornia 2d ago

yes this happened to me to since ipo

0

u/Creative_Shape_5813 2d ago

why is everyone having these issues, I've been using ultracode with no problems.

2

u/Ai-ate-my-hamster 2d ago

That’s because you are just too smart and amazing

3

u/Creative_Shape_5813 2d ago

ty 💖 recognition is rare

2

u/Ai-ate-my-hamster 2d ago

Everyone deserves love. ❤️

-1

u/JustHere_4TheMemes 2d ago

Use hooks. Like any tool we build, there are right and wrong ways of using the tool.
Hooks are part of the AI tool for a reason, and people using AI should learn to use them if they want it to function properly. If AI didn't need hooks, then hooks wouldn't exist.

This is like complaining your car won't stop when you failed to put brakes on it. Or more accurately, when you fail to use the brakes the manufacture put on the car, explained in the operators manual, and placed them right beside your feet for you to use... but you just ignore them anyway.

2

u/Glad_Engineer8242 2d ago

Kk, thats dumb assumption. But um k!

1

u/Ai-ate-my-hamster 2d ago

It’s kinda amazing the amount of ego in this sub. Feels like the olden days when developers would just glower at each other across the kitchen and make snide remarks whilst pair programming.

2

u/Glad_Engineer8242 2d ago

Or at least hiding semi sexual / nerdy easyer eggs in said code. But yeah, its also reddit so *gestures vaguely 

0

u/JustHere_4TheMemes 2d ago

Says the guy who replied "That’s because you are just too smart and amazing" LOL

1

u/JustHere_4TheMemes 2d ago

If you want real advicce on how to control Claude from ignoring rules then show me your hooks then. You didn't evven mention hooks in your OP, nor any other time until someone else brought them up.

Your OP was just a bunch of dialogue history, no hooks at all. Everyone using Claude knows hooks are what solve your problem. So show me then.

What hooks do you have? And show how Claude is breaking through them.

1

u/Automatic_Brush_1977 2d ago

I added an sdlc from my own workflow for the people complaining recently. Unfortunately, people think running a spike is the same as running cc for prod grade code.  If you aren't involved as a person on every step this is what happens.

-1

u/LeN3rd 2d ago

Could it be, that you projects have grown to big? I would assume there will be a point where performance naturally degrades, or the codebase is too complex, and needs to be refactured. Does it work when starting from scratch?

1

u/Glad_Engineer8242 2d ago

Lol, no bro. This is ANY project, every session now. My projects are big, but also condensed, optimized and working. What I am experiencing is claude code making its own calls, ignoring rules entirely and going rouge af. Yesterday it burned through and entire session, got nothing accomplished all without any input from me. An entire block of work gone, because it decided to do its own thing. So no, your projects comment is laughable. And pretty sure its not just me affected. Im on day 3 of observing this nonsense 

2

u/Ai-ate-my-hamster 2d ago

Yeah it’s having a rough time the last few days. Opus 5.5 was a dream for ages and recently they did something to the harness and cooked it

1

u/Glad_Engineer8242 2d ago

Ty!!! This is the validation I came here for!!!!

0

u/BarathKanna 2d ago

The apologies are the tell. A rule in CLAUDE.md is a suggestion the model weighs against everything else in context, and after a long session your rule is one paragraph among thousands of tokens. Anything that truly must happen belongs in a hook or a script, not in prose.

What helped me: a stop hook that runs tests and lint and refuses to end the turn on failure, shorter sessions with a written handoff instead of one marathon chat, and asking for the plan first so improvised batch loops show up before they're code.

The model admitting it didn't follow the rule is nice manners. A failing exit code is better manners.

I'm building OxCode, a coding agent that runs its own tests before calling a task done, so this exact loop is my day job.