Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Learn AI in Bits

Learn AI in Bits artwork

030 - How AI Agents Work: Harnesses, Memory, Tools and Loops (Deep Dive)

Aug 25, 20269 minAudioSeason 1, Episode 30
ShareXLinkedInFacebookWhatsAppEmail

How does an AI agent go from a language model that generates text to a system that can research, use software, change files, and work through a task? Episode 30 explains the core architecture behind modern AI agents, focusing on the components surrounding the model rather than benchmark scores. The episode starts with the LLM and the harness. The model provides the language and reasoning capability, while the harness supplies instructions, context, memory, tools, state, permissions, and execution behavior. OpenAI's current Agents SDK includes orchestration, tools, guardrails, and tracing, while its newer agent infrastructure supports controlled file and command execution. Anthropic's work on long-running agents similarly emphasizes context management and durable artifacts for work that spans multiple sessions. Memory is then separated from the model's immediate context. The episode explains working context alongside longer-lived procedural, semantic, and episodic information, while noting that implementations vary. This leads into retrieval-augmented generation, or RAG, and the broader idea of context engineering. RAG can use embeddings and vector search, but an agent can also retrieve information through SQL, document search, APIs, files, or web tools. The episode emphasizes just-in-time retrieval because sending too much information into a context window can make useful information harder to use. Context engineering ties these pieces together. The challenge is not simply putting more information into the model. It is selecting useful information at the right time and in a form the model can use. That includes deciding which memories to retrieve, which tool results to keep, which instructions to prioritize, and what older information can be compacted or discarded. Tracing provides visibility into the run. A trace can record model calls, retrieval, tool calls, inputs and outputs, timing, token usage, errors, and other metadata. Langfuse documents traces as structured records containing observations such as generations, retrieval operations, and tool calls, while OpenAI's Agents SDK includes tracing and observability for agent workflow execution. The final concept is LLM Ops: the ongoing engineering loop around the running system. Teams inspect traces, identify failures or inefficiencies, adjust prompts, tools, retrieval, models, memory, or guardrails, and run the system again. The episode closes with a simple architecture: LLM, harness, context and memory, retrieval, tools, loop, guardrails, tracing, and operational improvement. References OpenAI - New tools for building agents https://openai.com/index/new-tools-for-building-agents/ OpenAI - The next evolution of the Agents SDK https://openai.com/index/the-next-evolution-of-the-agents-sdk/ Anthropic - Building Effective AI Agents https://resources.anthropic.com/building-effective-ai-agents Anthropic - Effective context engineering for AI agents https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents Anthropic - Effective harnesses for long-running agents https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents Anthropic - Writing effective tools for AI agents https://www.anthropic.com/engineering/writing-tools-for-agents Langfuse - Core Concepts: Traces and Observations https://langfuse.com/docs/observability/data-model Langfuse - Tracing https://langfuse.com/academy/tracing Voice narration is AI-generated.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. 099 - How Does an LLM Generate Text?

    Nov 23, 20265 minAudio

    Follow a prompt through the inner workings of a large language model. This episode explains tokenization, embeddings, transformer layers, attention, logits, probability selection, and the KV cache. It also compares...

    Credit the people on this episode

  2. 098 - Product Managers: What AI Skills Are Companies Looking for?

    Nov 23, 20265 minAudio

    Explore the AI skills employers increasingly expect from product managers working on AI products. This episode covers core product management, AI literacy, model and agent fundamentals, evaluation, product metrics, and...

    Credit the people on this episode

  3. 097 - Developers: What AI Skills Are Companies Looking?

    Nov 23, 20266 minAudio

    Companies are looking for developers who can combine strong software fundamentals with practical AI skills. This episode looks at AI-assisted development, model APIs, RAG, agents, evaluation, debugging, and system...

    Credit the people on this episode

  4. 096 - Structured Outputs — How to Make AI Return Valid JSON

    Nov 22, 20265 minAudio

    Structured outputs help AI models return data that software can reliably read. This episode explains JSON, JSON Schema, and the difference between JSON mode and schema-constrained responses. It also compares how OpenAI,...

    Credit the people on this episode

  5. 095 - Function Calling: How AI Uses Tools

    Nov 22, 20265 minAudio

    Function calling lets AI models work with external tools, APIs, and business systems. This episode explains the tool-calling loop, how applications define and execute functions, and how OpenAI, Claude, Gemini, and...

    Credit the people on this episode