Google

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps- Google Developers Blog

May 14, 2026Chris Gill
Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps- Google Developers Blog
SummaryAI, from the source post

This post introduces the Genkit middleware system, a new capability for intercepting and extending generation calls in agentic applications. It details the three layers of middleware hooks (Generate, Model, Tool) and provides examples of pre-built middleware for retry, fallback, tool approval, skills injection, and filesystem access. The post also demonstrates how to build custom middleware, such as a content filter, and explains how middleware stacks are composed. The Developer UI's integration with middleware execution is also highlighted.

More from the AI-Assisted Spec-Driven Development trail