frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Is it actually possible to run multiple coding sessions in parallel?

3•sukit•46m ago•1 comments

Ask HN: How to Handle Claude's Stubbornness?

3•classicpsy•1h ago•7 comments

LinkedIn uses 2.4 GB RAM across two tabs

736•hrncode•1d ago•417 comments

Ask HN: Founders of estonian e-businesses – is it worth it?

167•udl•6d ago•117 comments

Ask HN: Who needs contributors? (March 2026)

5•Kathan2651•5h ago•0 comments

Ask HN: Best stack for building a tiny game with an 11-year-old?

13•richardstahl•22h ago•24 comments

The risk of AI isn't making us lazy, but making "lazy" look productive

74•acmerfight•1d ago•82 comments

Ask HN: Release Path for 'Transformers Alternatives'?

3•adinhitlore•14h ago•0 comments

Ask HN: M5 MacBook Pro buyers, worth spending the $$$ to maybe run LLMs local?

7•tpurves•17h ago•6 comments

Ask HN: What's the latest concensus on OpenAI vs. Anthropic $20/month tier?

10•whatarethembits•1d ago•8 comments

Why do SF billboards hit different?

3•YouAreExisting•1d ago•10 comments

Operator23: Describe Your Workflow in English, Deploy Everywhere

3•Mrakermo•1d ago•0 comments

Ask HN: How are you keeping AI coding agents from burning money?

7•bhaviav100•1d ago•24 comments

Ask HN: Is it just me?

14•twoelf•1d ago•29 comments

Claude API Error: 529

25•anujbans•3d ago•14 comments

Ask HN: Anyone using Meshtastic/LoRa for non-chat applications?

11•redgridtactical•2d ago•0 comments

Repsy – A lightweight, open-source alternative to Nexus/Artifactory

7•nuricanozturk•3d ago•0 comments

LLMs learn what programmers create, not how programmers work

41•noemit•6d ago•22 comments

Fear of Missing Code

8•lukol•2d ago•9 comments

Ask HN: Anybody tried to cheat AI-HR-system with hidden/white sentences?

5•KellyCriterion•2d ago•3 comments

GitHub now requiring 2FA for all contributors,what authenticator apps you using?

13•nickcageinacage•3d ago•38 comments

Rses – cross-resume between Claude Code, Codex, and OpenCode

13•plawlost•4d ago•4 comments

GitHub has been sending me an email every two seconds.

16•colonelspace•2d ago•3 comments

You've reached the end!

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•40m 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•27m 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•48m 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•42m 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.

classicpsy•14m ago
Mate I still didn't understand that.

stop hook forces the claude to run the existing tests. Fine if claude added a new feature but didn't created a test for it. It will wait for it to perform that action. Fine. We can adjust the complexitiy of hook scripts. That's ok.

Tell me if I'm wrong, I am understanding it more like a compiler like if the syntax is ok, just pass. Similarly here, if the test were ran, it will look for a marker file in /tmp, it found it, and pass.

I did not understood the part of tests. Maybe my question is more clear now.