Choosing an Agent Framework

Decide How Much Control You Need Before You Pick a Tool

Agent frameworks change every few months. The lasting question is how much control you want over each step, and how much you let the model decide.

Ranjit Nethi

·

Choosing an Agent Framework

The short version

  • An agent framework is a software kit that supplies the loop, tool handling, memory and tracing.
  • Frameworks sit on a range, from explicit graphs where you define every path to open loops where the model decides.
  • Choose by the control you need, the skills you have and how well it fits your platform. Do not choose by popularity.

The idea

A framework saves you from writing the harness yourself. The options group into three styles.

Graph and workflow frameworks. You define the steps and the allowed paths between them. The model works inside that structure. This gives the most control, and it suits regulated or high-value processes.

Agent loop kits. These give you a ready-made loop with tools, permissions and context management. You supply the instructions and tools, and the model plans. They are fast to build with and strong for open-ended tasks.

Role-based multi-agent frameworks. You describe a team of agents with roles and goals, and the framework coordinates them. They are quick to prototype and harder to control in detail.

It is like choosing between a train, a bus and a taxi. A train stays on its fixed track and is fully predictable. A bus follows a route with some flexibility. A taxi goes anywhere and you trust the driver. The right choice depends on the trip.

  1. Most control: explicit graph
  2. Middle: agent loop kit with permissions
  3. Most freedom: role-based agent teams

Around the framework sits the wider agent stack: the model, tool connections, memory store, evaluation, observability and the place it runs. Check how a framework fits each of those, and how easily you can replace it. Open standards for tools and tracing reduce the cost of switching.

An example

A company runs two agent projects. Credit approvals use a graph framework: every path is defined, every decision point is logged, and a person approves above a threshold. The engineering team’s research assistant uses an agent loop kit, because the tasks are varied and a wrong turn costs little. Both report traces to the same observability tool and connect to systems through the same tool servers. The frameworks differ, and the platform is shared.

Common mistakes

  • Picking the framework before defining the task.
  • Standardizing the whole company on one framework for every kind of work.
  • Deep dependence on features that only one framework offers.
  • Ignoring the plain option. A few hundred lines of your own code is sometimes the right harness.

What to do this week

  1. For each agent project, state how much control the process needs: high, medium or low.
  2. Check that your framework choices match that answer.
  3. Confirm that tracing and tool connections use shared standards across teams.

The terms, in plain language

TermWhat it means
Agent frameworkA software kit for building agents
Graph frameworkYou define the steps and the allowed paths
Agent stackAll the layers an agent needs: model, tools, memory, evaluation, monitoring
Lock-inThe cost of switching away from a tool

Section 6.10 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.