frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: ReAct vs. Planning Pattern

5•hairymouse•3h ago
My question might seem stupid, but ReAct pattern seems to always work and actually gives great results in the other hand we have the plan pattern and to be honest i cannot think of how it's exactly used in production system, im not sure if this is correct but how it's technically implemented is you give the LLM context and you tell it, hey give me your plan to how you will solve this thing, so now it will build the plan but won't it also follow the same plan in the ReAct pattern to solve that exact problem? I want learn from people that used the planning pattern in production, how and why you used it? and how do you enforce the LLM the follow the plan exactly?

Comments

verdverm•2h ago
LLMs are unreliable, which is why I use the plan pattern

1. describe what you want in a paragraph or two

2. tell it to write a plan.md, iterate and review multiple times

3. implement and test, iterate and review multiple times

Putting in more effort upfront, human in the loop planning, has a higher probability of getting out something you want, in my (vibes based) experience. Use many fresh sessions and different models for this. You want them to focus more on the current state, the intent of the changes, the complexities. What you don't want is a step-by-step plan for changing the code, which effectively is putting the thinkin / implementation in markdown first. The implementation will go much better with a well designed and vetted plan. This is where I spend more of my effort these days.

KISS but detailed enough to provide framing and guidelines without being prescriptive, because we know humans too miss edge cases and need to rethink or pivot strategies.

Ask HN: ReAct vs. Planning Pattern

5•hairymouse•3h ago•1 comments

Local, Open source AI meeting recorder that sees and hears everything

6•puremetrics•16h ago•3 comments

Ask HN: Have LLMs Plateaued?

8•leandrobon•17h ago•20 comments

Tell HN: Pretending not to use AI has made me a better developer

9•throwaway260803•3h ago•3 comments

Ask HN: Early Feedback on Dez?

2•alexander2002•3h ago•3 comments

New open sourced eval tool for building agents

2•Thomeras•13h ago•2 comments

Ask HN: Anyone still do work on Intel Macs?

21•senor_digimon•1d ago•28 comments

Tips for Landing a YC Internship?

6•cnnadozi•21h ago•9 comments

Ask HN: What's Next for LLMs?

4•apatheticonion•20h ago•5 comments

Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

20•pera•2d ago•21 comments

Best way to avoid bloat and AI – selfcontaining OS

11•bialamusic•1d ago•3 comments

What is the downside of coaching that I may not be seeing yet?

6•ikut3hva•1d ago•1 comments

Ask HN: I still don't understand why AI agents need "skills"

14•skeptic_ai•1d ago•15 comments

Ask HN: How are you using AI to learn?

9•mfalcon•1d ago•23 comments

Tell HN: HackerOne Announces Mandatory identity verification

17•0xmattf•3d ago•1 comments

Strategic Oil Reserves Down to a Record Low Two-Week Supply

23•megamike•3d ago•21 comments

Ask HN: What's Your BHAG?

8•sudo_cowsay•1d ago•12 comments

You've reached the end!