Skip to content

AI, decoded

Do you still need an AI agent framework?

Choose a framework when its orchestration and state-management features solve problems your agent has. In his Chain of Thought interview, LlamaIndex co-founder Jerry Liu argues that stable abstractions leave more room to differentiate through production context. That is a reason to evaluate what a framework adds, not a rule that every team should abandon one. Liu also points out that frameworks caught on partly because models then had 4,000-token context windows, too small to hold a company's knowledge base.

· Updated · Chain of Thought

Level 4: How AI systems are built · 4.3 Tools, MCP and agent architecture

AI AgentsContext Management

  • 2 episodes
  • 3 guest clips
  • 3 glossary terms
Two stacks of blocks side by side, a tall framework stack and a short direct build, beside the hook: build it twice, then decide.

In detail

What Jerry Liu argues

Liu describes LlamaIndex’s move toward deeper work on document understanding and production context. In the interview at 38:28, he explains that abstractions were stabilizing while the need for high-quality context continued to evolve. This is his account of where his company could add value, rather than evidence that frameworks have become unnecessary for every team. Earlier in the interview at 1:56, he describes when a framework layer does earn its place: while a space is still being figured out and applications need a lot of flexibility, a framework supplies the core abstractions that make certain things easier to build.

What a direct implementation looks like

The direct alternative can be small. Vercel CTO Malte Ubl described one in episode 39 at 21:47: give the model its tools and a goal, allow “up to 10 turns using a tool,” and let it work out the sequence. A loop like that is a few dozen lines of your own code, and every step is yours to log.

Questions to test in your own project

Our practical recommendation is to compare a framework with a small direct implementation of the same workflow:

  • Can you inspect tool calls and state when the agent fails?
  • Can you resume interrupted work without repeating an action? This is where frameworks often earn their keep: LangGraph’s persistence layer, for example, saves state through checkpointers and documents fault tolerance. Check whether your own loop would need to rebuild that.
  • Does the framework simplify the branching or coordination your application needs?
  • Can you change retrieval and evaluate the resulting answers without fighting its abstractions?

Anthropic’s engineering team gives similar advice in Building effective agents: frameworks make it easy to start, but they add layers that can obscure the underlying prompts and responses and make failures harder to debug. Its suggestion is to start with direct model API calls, since many patterns take a few lines of code, and if you adopt a framework, to understand what it does underneath. Use the comparison to decide whether the saved implementation work justifies the dependency and its constraints. A simple workflow may need little orchestration; a complex one may benefit from a framework. Neither choice removes the need to test the data supplied to the model.

For the current options and their trade-offs, see AI agent frameworks compared. For another perspective, compare the agent-stack and context arguments. They address different parts of building a production system and can both be useful.

Disclosure: Episode 39 aired while Chain of Thought was Galileo’s podcast and Conor worked there.

Do you need an agent framework? Build the workflow twice, then weigh it The same workflow runs down two tracks, one built with a framework and one as a small direct implementation. Both pass the same four checkpoints: can you inspect tool calls and state when the agent fails, can you resume interrupted work without repeating an action, does it handle the branching and coordination you need, and can you change retrieval and evaluate the answers. Both tracks end at a balance weighing the implementation work saved against the dependency and its constraints. Below, Jerry Liu's point from episode 61: the abstractions were solidifying while the need for high-quality production context was still evolving, and neither choice removes the need to test the data supplied to the model. Build it twice, then decide Run the same workflow as a framework build and as a small direct implementation. THE SAME FOUR CHECKPOINTS ON BOTH TRACKS Inspect tool callsand state? Resume withoutrepeating an action? Handle the branchingyou need? Change retrieval,evaluate answers? With aframework Small directbuild ???? ???? A simple workflow may need little orchestration; a complex one may benefit from a framework. Neither removes the need to test the data you give the model. THEN WEIGH IT Worksaved Dependency+ constraints “The abstractions were solidifying, but the need for high-quality production context was still evolving.” Jerry Liu, LlamaIndex, ep 61, on where his company chose to add value. His account of one company’s move, not evidence that frameworks are unnecessary for every team.
Compare both builds on the problems your agent actually has. Jerry Liu’s point in episode 61 is about where his company chose to add value, not a rule for every team. Download the image

Hear it from the guest

“When there's a space where things are still being figured out, and then there's kind of a lot of flexibility in the end application, and that's where there's kind of value in a framework layer because the framework provides you know the core abstractions to make it easier to build certain things”
Watch on YouTube
“Because the abstractions were solidifying, but the need for high-quality production context was still evolving.”
Watch on YouTube
“You tell the LM, okay, you get to make up to 10 turns using a tool that's towards your goal, and then you just let it cook.”

Quotes lightly edited to remove filler words.

From the conversation

This explainer is drawn from these episodes — each carries its full transcript.

Concepts in this explainer

Agent HarnessAgent SkillsAI Agent