Build agents, not pipelines

· Source: All posts - seangoedecke.com RSS feed · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Intermediate, long

Summary

The article distinguishes between two primary methods for integrating Large Language Models (LLMs) into computer programs: pipelines and agents. Pipelines involve explicit code-defined control flow, while agents empower LLMs with tools to manage their own control flow. While pipelines offer greater predictability in cost and latency, agents demonstrate superior flexibility and intelligence, capable of handling more complex tasks by looping and gathering information dynamically. This makes agents, like Claude Code, Codex, Cursor, and Copilot, particularly effective for challenging problems such as coding. Pipelines excel in scenarios requiring strict context size limits, predictable GPU costs, or local model deployment, often staying below 32k or 6k tokens. Agents are generally easier for context-gathering, as they can fetch data as needed, contrasting with pipelines' reliance on pre-assembled context, a challenge Retrieval-Augmented Generation (RAG) often failed to solve. The author suggests agents are more future-proof due to ongoing model improvements and their ability to delegate more to the LLM.

Key takeaway

For AI Engineers or Architects designing LLM-powered applications, if you face complex, open-ended problems where context assembly is challenging, prioritize building agentic systems. Your initial investment in agents will yield greater flexibility and intelligence, especially as models improve. Conversely, if your project demands strict cost predictability, low latency, or local model deployment, opt for pipelines. You should evaluate the trade-offs carefully, but when in doubt, start with agents for easier development and future adaptability.

Key insights

Agents offer superior flexibility and intelligence for complex LLM tasks, while pipelines provide predictability and cost control.

Principles

In practice

Topics

Code references

Best for: AI Engineer, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by All posts - seangoedecke.com RSS feed.