frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How to Handle Claude's Stubbornness?

3•classicpsy•1h ago
I’ve been running into this issue with Claude (in browser and claude code) where it is being stubborn many times.

It will refrain from obeying what I say or suggest. Instead, it comes up with its own analogy and starts suggesting and implementing that logic. Even when I already know its going in wrong path and I have proposed the direction for the same problem.

Many times I’ve had to explicitly tell it: don’t think, don’t force your analogy, just implement what I am putting in front of you. Still this does not stick with it always.

Has anyone else dealt with this? How are you handling it?

Comments

ankarhem•1h ago
Haven't really experienced it besides in long contexts. Usually keep it concise. Something like:

  We're building feature X.
  - You might need `a`, `b`, `c`. (any libraries, url documentation etc)
  - The requirements are:
    - x
    - y
    - z
Any negatives (prevent going down a path) would go into requirement.

This would be a prompt to sisyphus if small or prometheus if big. (Using opencode + oh-my-openagent).

If I believe the agent won't understand what it is supposed to do or if there are multiple solutions of which only some are allowed I add "DO NOT make or edit any business rules before asking me".

classicpsy•24m ago
> We're building feature X. - You might need `a`, `b`, `c`. (any libraries, url documentation etc) - The requirements are: - x - y - z

So, you are saying we have to start every conversation for an existing project with this context? pointing to the particular feature detail we are targeting?

ankarhem•10m ago
No this would be something targeted such as:

  We have a bug in our handler for the distributed transaction which updates the payment amount. It allows modifications when it should not.

  The requirements are:
    - We should reject regular changes outside of intent state
    - We should allow upsell when state is accepted and upsell modifications is activate in the config
    - You do NOT have to consider shipping during upsell, it is out of scope and is already required not to change as a result of upsell elsewhere.
We don't use any CLAUDE.md files or similar. Skills for things that it gets wrong and the rest it can handle by reading the repos themselves.

Underlying plugin prompts makes sure it completes the task and adds tests etc.

LatencyKills•1h ago
I use a series of stop hook [0] scripts. For example, I have a script [1] that forces Claude to execute tests whenever code files are changed. The stop hook runs automatically and will force Claude to continue working until the script passes.

I also have a script that forces Claude to generate a summary of work [2] if it hadn't done so on it's own.

[0]: https://code.claude.com/docs/en/hooks

[1]: https://gist.github.com/Looking4OffSwitch/c3d5848935fec5ac3b...

[2]: https://gist.github.com/Looking4OffSwitch/3b13b65e40284be899...

classicpsy•32m ago
Looks an interesting approach.

So, the tests being written are based on what? on user input or to test the changes it made according to claude's analogy?

If it is the latter, it can be the same problem of forcing its analogy. In this case by validating it

LatencyKills•26m ago
> So, the tests being written are based on what?

I don't think you understand what I'm saying. If, during a session, Claude makes any change to a source file, the stop hook script FORCES Claude to run the existing tests. There is literally no way Claude can get around running the tests because the prompt will not stop being processed until the stop hook script passes.

There is no contradiction. Stop hooks (as well as all the other hook types) are the only way to force Claude to work deterministically.

Hook scripts can be as simple or as complex as you like: you define the success criteria. For example, if Claude just added a new feature but didn't create a test for it, then a stop hook would prevent Claude from stopping until the test was written.

Supercharging Claude Code with the Right (CLI) Tools

https://batsov.com/articles/2026/02/17/supercharging-claude-code-with-the-right-tools/
1•level87•51s ago•0 comments

I built a map of 2,500 European startups with zero coding experience

https://startupmap.one
3•denysjw•4m ago•2 comments

AMD Revives Linux Kernel Patches For Hardware-Accelerated vIOMMU

https://www.phoronix.com/news/AMD-vIOMMU-2026-Linux
1•voxadam•5m ago•0 comments

Is Linux disk I/O fast enough?

https://floedb.ai/blog/after-30-years-is-linux-disk-io-finally-fast-enough
4•matheusalmeida•5m ago•0 comments

Intel Assured Supply Chain Product Brief

https://www.intel.com/content/www/us/en/content-details/850997/intel-assured-supply-chain-product...
1•aw-engineer•6m ago•0 comments

The Iran Price Shock Begins

https://www.thebignewsletter.com/p/monopoly-round-up-the-iran-war-price
3•chmaynard•6m ago•0 comments

Immich on Android without Docker or root

https://github.com/Gennyi07/immich-native-android
1•Genny_07•7m ago•0 comments

Generative AI – Intellectual Property Cases and Policy Tracker

https://www.mishcon.com/generative-ai-intellectual-property-cases-and-policy-tracker
1•jruohonen•10m ago•0 comments

Compression.zstd – Compression compatible with the Zstandard format

https://docs.python.org/3/library/compression.zstd.html
1•marklit•10m ago•0 comments

Kap

https://kapdemo.dhsdevelopments.com/
1•tosh•12m ago•0 comments

Show HN: Shifu – A pure POSIX shell framework to create powerful CLIs

https://github.com/Ultramann/shifu
1•ultramann•12m ago•0 comments

Fast sandboxed code execution with pre-warmed gVisor pools

https://github.com/shayonj/gvisord
1•shayonj•13m ago•0 comments

Economics Papers to Inspire Wonder

https://docs.google.com/document/d/1ZW8f0eFEZhwmKeRu1KqxLFMaouajmEGfvZF0Us_G4Iw/edit?pli=1&tab=t.0
1•sebg•13m ago•0 comments

ZimaOS: A Simplified, Focused and Open NAS OS Supports All x86-64 Hardware

https://www.zimaspace.com/zimaos
1•thunderbong•13m ago•0 comments

You probably don't need to lift state

https://allthingssmitty.com/2026/03/30/you-probably-dont-need-to-lift-that-state/
2•AllThingsSmitty•13m ago•0 comments

Tryptophan-rich allosteric communication network helps activate a major receptor

https://phys.org/news/2026-03-tryptophan-rich-allosteric-communication-network.html
2•PaulHoule•14m ago•0 comments

Operational Benefits of Databases Built on Object Storage

https://blog.colinbreck.com/operational-benefits-of-databases-built-on-object-storage/
2•sebg•16m ago•0 comments

Deer-Flow Installing Line

https://github.com/bytedance/deer-flow
2•cnrd•16m ago•1 comments

Structuring a Team Around AI-Assisted Development

https://jasonrobert.dev/blog/2026-03-22-structuring-an-ai-assisted-development-team/
3•cebert•16m ago•0 comments

Vibe Code vs. Trad Code

https://www.dolthub.com/blog/2026-03-26-vibe-code-vs-trad-code/
2•lukev•17m ago•0 comments

Mistral secures $830M in debt financing to fund AI data center

https://www.cnbc.com/2026/03/30/mistral-ai-paris-data-center-cluster-debt-financing.html
2•gslin•18m ago•0 comments

Show HN: A CardDAV server for LDAP

https://github.com/isubsoft/ldap-carddav
2•spnandi•19m ago•0 comments

The ARIANE 5 Software Failure (1997)

https://dl.acm.org/doi/pdf/10.1145/251880.251992
2•scoresmoke•21m ago•0 comments

Do AI-enabled companies need fewer people?

https://seldo.com/posts/do-ai-enabled-companies-need-fewer-people/
2•mooreds•21m ago•1 comments

Maybe you should have bought an electric car

https://www.noahpinion.blog/p/maybe-you-should-have-bought-an-electric
3•mooreds•21m ago•0 comments

Craig Newmark: Billionaires, Stop Whining About the Giving Pledge

https://www.nytimes.com/2026/03/30/opinion/giving-pledge-philanthropy.html
3•mooreds•22m ago•0 comments

Grade Caps Fail the Game Theory Exam

https://www.thecrimson.com/article/2026/3/27/kominers-harvard-grade-cap/
2•mhb•23m ago•0 comments

Better Datamash Build Story with Meson

https://gms.tf/datmash-meson.html
2•ingve•23m ago•0 comments

Databricks allegedly compromised in a TeamPCP supply chain attack

https://twitter.com/IntCyberDigest/status/2038552600375648701
3•matthieu_bl•25m ago•0 comments

24 Hard Rules for Writing Correct Async C++

https://ranvier.systems/2026/03/29/24-hard-rules-for-writing-correct-async-cpp.html
2•mindsaspire•25m ago•0 comments