Why do people use Medium?
Build a Basic AI Agent from Scratch: Long Task Planning
11–20 of 60 posts
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#12For example, if I were building real software, I would design everything from policy to error logging policies and so on. But when writing a blog post, it's just simplified into a short runnable script.
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#13What’s with all the aggression here. Not very hn
2. The content is lower quality.
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#14[flagged]
That seems pretty harsh. How do new frontend frameworks, GPU shaders or another article about how great Rust is (which it is) help fight climate change or child starvation?
They just took undefined behaviour and called it unsafe. Theyve not really solved anything. Even their own std lib has security bugs in unsafe code.
And their only ever retort is "there are thousands of these bugs a day in c code"... Let's wait until rust gets used seriously in the systems and embedded space first, no point comparing c to minnows like rust when it comes to total cves.
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#15Why do people use Medium?
Why do people post comments like this?
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#16[flagged]
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#17What’s with all the aggression here. Not very hn
1. People don't like medium, rightly so. 2. The content is lower quality.
The strengths are that the design forces Chain of Thought as a memory buffer and the TODO list in an FSM style. I think those are fine. The recovery strategy is also pretty good.
However, the problem is that the business logic does not run as Python code but lives inside the prompt. And it does not support parallel execution. But as a single run script, it is helpful enough for understanding the concept.
Of course, if I were to do the code properly, I would use a separate storage instead of in memory, and more carefully verify tool constraints and the actual scope limitations of the tools. But still, I think this is helpful enough.
Re: Build a Basic AI Agent from Scratch: Long Task Planning
#18None of them have been worth it. A year ago the models needed to be reminded. Today they can follow a plan from text alone. This is my experience from working on a project alone - in teams ... i actually think the same lesson holds in the new AI paradigm.
My current scheme is basically this - in order of the task's complexity:
- Tell an agent to do something
- Tell an agent to make a plan then tell it to execute on it.
- Tell an agent to make a plan, write to a file, have a subagent review it, then execute it.
- Do the above, but instead tell the agent they're in a supervise mode and to have subagents implement as many phases and rollover with a handoff.md while they, as the supervisor agent, keeps driving the task to completion.
The latter two i have under a sigil so they're prepared prompts i can inject with a few keystrokes.
If i feel very fancy i'll tell them to update the plan with a checklist and add checkboxes, but it just doesn't pay enough to have 'init-prompt' level planning feature or tools if in the same context you already have files/read/write.