Share your middleware
Middleware enables context engineering, harness customization, and runtime safety controls. It is a useful extension point in LangChain and we love highlighting what the community builds with it:Add an official integration
Follow the contributing guide to build and publish a middleware package.
Share a community middleware
Open a PR to the docs repo to add your middleware to the table below.
Official integrations
| Provider | Middleware available |
|---|---|
| Anthropic | Prompt caching |
Community integrations
| Middleware | Description | Source |
|---|---|---|
| langchain-task-steering | Implicit state-machine middleware for ordered task pipelines with per-task tool scoping, dynamic prompt injection, and composable completion validation. | edvinhallvaxhiu/langchain-task-steering |
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

