proceeds to show a piece of code importing anthropic
was pretty confusing to me
241–249 of 249 posts
proceeds to show a piece of code importing anthropic
was pretty confusing to me
Earlier quoted context omitted.
I run evals and the Todo tool doesn't help most of the time. Usually models on high thinking would maintain Todo/state in their thinking tokens. What Todo helps is for cases like Anthropic models to run more parallel tool calls. If there is a Todo list call, then some of the actions after are more efficient. What you need to do is to match the distribution of how the models were RL-ed. So you are right to say that "d…
Curious what kinds of evals you focus on? We're finding investigating to be same-but-different to coding. Probably the most close to ours that has a bigger evals community is AI SRE tasks. Agreed wrt all these things being contextual. The LLM needs to decide whether to trigger tools like self-planning and todo lists, and as the talk gives examples of, which kind of strategies to use with them.
Earlier quoted context omitted.
Models just naturally arrive at a conclusion that they are done. TODO hints can help, but is not infallible: Claude will stop and happily report there's more work to be done and "you just say the word Mister and I'll continue" --- this is a RL problem where you have to balance the chance of an infinite loop (it keeps thinking there's a little bit more to do when there is not) versus the opposite where it stops short…
> this is a RL problem where you have to balance the chance of an infinite loop (it keeps thinking there's a little bit more to do when there is not) versus the opposite where it stops short of actual completion. Any idea on why the other end of the spectrum is this way -- thinking that it always has something to do? I can think of a pet theory on it stopping early -- that positive tool responses and such bias it tow…
So infinite loops are more of a default, and the question is how to avoid them. Picking randomly (non-zero temperature) helps prevent repetition sometimes. Other higher-level patterns probably prevent this from happening most of the time in more sophisticated LLM's.
Earlier quoted context omitted.
Curious what kinds of evals you focus on? We're finding investigating to be same-but-different to coding. Probably the most close to ours that has a bigger evals community is AI SRE tasks. Agreed wrt all these things being contextual. The LLM needs to decide whether to trigger tools like self-planning and todo lists, and as the talk gives examples of, which kind of strategies to use with them.
I am taking for SWE bench style problems where Todo doesn't help, except for more parallelism.
I'm guessing a self-updating plan there is sufficient. I'm not actually convinced today's current plan todolist flow makes sense - in the linked PLAN.md, it gets unified, and that's how we do ai coding. I don't have evals on this, but from a year of vibes coding/engineering, that's what we experientially reached across frontier coding models & tools. Nowadays we're mixing in evals too, but that's a more complicated story.
At a high level it seems to usually be one (or a mix) of:
- full transcript appended every turn
- sliding window of the last N turns / tokens
- older turns summarized into a rolling memory
- structured state (goals, decisions, progress) rendered into the prompt
- external storage + retrieval (RAG-style) to pull in only relevant past info
Under the hood I’m sure it gets more complex, but the core idea is pretty simple once you strip away the mystique: memory = prompt assembly.
Something I would add is planning. A big "aha" for effective use of these tools is realizing they run on dynamic TODO lists. Ex: Plan mode is basically bootstrapping how that TODO list gets seeded and how todos ground themselves when they get reached, and user interactions are how you realign the todo lists. The todolist is subtle but was a big shift in coding tools, and many seem to be surprised when we discuss it -…
Earlier quoted context omitted.
https://github.com/jacobsparts/agentlib See CodeAgent or subrepl.py if you're just interested in the REPL orchestration. I also have a Python REPL MCP server that works with CC. It isn't published, but I could share it by request. My favorite part of code agent is the /repl command. I can drop into the REPL mid session and load modules, poke around with APIs and data, or just point Claude in the right direction. Some…
I request you to publish it! :-D
Just make sure you have the deps installed and add it to CC as a stdio mcp server. Tested on Linux only. I use it daily.