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

Summary
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
- The Anatomy of Harness Engineering: How to Evaluate, Iterate, and Guard AI Coding Agents- Google Developers Blog
- Enable on-demand expertise with Agent Skills in Genkit Go- Google Developers Blog
- Agent and Model Evaluations in Gemini Enterprise Agent Platform are now GA- Google Developers Blog
- How to use Google microbenchmarks for evaluating TPU performance- Google Developers Blog
- Evolving Spec-Driven Development: Conductor Now Supports Antigravity- Google Developers Blog