Software Engineering Daily

Building AI Agents on the Frontend with Sam Bhagwat and Abhi Aiyer

120 snips
Oct 30, 2025
Sam Bhagwat, Co-founder and CEO of Mastra, and Abhi Aiyer, Co-founder and CTO, dive deep into the world of AI agents designed for frontend developers. They tackle the challenges of building full-stack AI applications using TypeScript, highlighting Mastra's tools and workflows. They discuss unique use cases, such as CAD generation and industry-specific vertical agents. With insights on developer experience and a roadmap for future features, they offer practical advice for aspiring AI engineers eager to innovate in this rapidly evolving space.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
INSIGHT

Agency Is A Spectrum

  • Agency exists on a spectrum from single LLM calls to multi-agent networks orchestrating many tasks.
  • Higher agency includes code execution, tool calls, memory, and multi-step orchestration rather than a single prompt loop.
INSIGHT

Compose Agents And Workflows

  • Mastra's primitives are composable: agents can call workflows and workflows can include agents and tools as steps.
  • This composition lets engineers shape determinism and handoffs across agentic components.
ADVICE

Use Workflows As Guardrails

  • Use workflows to add determinism and observability when models are unreliable for complex multi-step tasks.
  • Instrument each step with tracing and a dev playground to debug non-deterministic LLM behavior.
Get the Snipd Podcast app to discover more snips from this episode
Get the app