WhoBuilt

Why the Best AI Agents Are Built Without Frameworks (Primitives over Frameworks)

Jun 3, 2025· 27 min· 25K views·Watch on YouTube

Speaker

Ahmad Awais, a software engineer and Langbase leader, explains how to build production AI agents from primitives rather than frameworks at an AI Engineer talk.

Why build with primitives

Awais argues that frameworks can add slow-moving abstractions that are difficult to debug. He points to products such as Perplexity, Cursor, v0, Lovable, and Bolt as examples of production agents he says are not built on AI frameworks. He compares AI primitives to Amazon S3: simple building blocks that can support many applications.

Build a PDF question-answering agent

Awais demonstrates a “Chat with PDF” agent built with memory, parsing, chunking, and an LLM. The parser extracts text from PDFs, the chunker prepares it for similarity search, and memory stores it for retrieval. The agent retrieves relevant content and uses it to answer questions across uploaded files.

Combine primitives into agent patterns

Awais walks through augmented LLMs with tools, threads, and long-term memory, then shows prompt chaining, routing, and parallel agents. In one router example, a model selects among summary, reasoning, and coding agents built with different LLMs. He also demonstrates an orchestrator that assigns five subtasks to worker agents and combines their results.

Iterate and adapt without a framework

An evaluator-optimizer pattern has one agent draft marketing copy and another assess it, provide feedback, and guide a second attempt. Awais also shows examples for deep research, receipt OCR, and image chat, including adding Mistral OCR when the platform lacked an OCR primitive. He argues that using primitives makes it easier to adapt as models and agent workflows change.

Takeaways

  • Start with small primitives such as memory, threads, parsing, and tools, then compose the workflow your product needs.
  • Keep routing logic explicit: a router can choose among focused agents for summarizing, reasoning, or coding.
  • Use parallel workers for independent subtasks, then synthesize their outputs.
  • For iterative tasks, let an evaluator return specific feedback that a generator can use to revise its result.
  • When a needed capability is missing, connect a focused external tool such as OCR rather than waiting for a framework to provide it.

Mentioned in this talk

Search inside this talk

What was claimed 4

Related talks