{"repo":"emanueleielo/advisor-middleware","free":true,"listed":false,"github":"https://github.com/emanueleielo/advisor-middleware","clone":"git clone https://github.com/emanueleielo/advisor-middleware.git","description":"Anthropic's Advisor Strategy as a drop-in DeepAgents middleware","language":"Python","stars":43,"topics":["advisor-strategy","ai-agents","anthropic","deepagents","langgraph","middleware","python"],"license":"MIT","category":"ai-agents","readme_excerpt":"advisor-middleware Anthropic's Advisor Strategy as a drop-in DeepAgents middleware. Problem &bull; How it works &bull; Quick start &bull; Configuration &bull; Benchmark --- Open-source implementation of Anthropic's Advisor Strategy — a pattern that pairs a fast, cheap executor model with a powerful advisor model. The executor runs end-to-end; the advisor is consulted only on critical decisions. Result: better performance at lower cost . advisor-middleware makes this a single import for DeepAgents. It handles provider detection, native API routing, fallback invocation, cost guardrails, and context curation — so you just plug it in and your agents get smarter. --- The Problem Traditional sub-agent pattern Advisor Strategy --- --- Large orchestrator decomposes work into tasks Small executor drives end-to-end Expensive model runs every turn Expensive model consulted only when needed Worker pools + orchestration overhead Zero orchestration — just a tool call Hard to predict costs max uses guardrail caps advisor spend --- How It Works The middleware operates in two modes depending on the executor's provider: - Native mode (Anthropic executor): Injects the advisor 20260301 server-side tool spec. The API handles everything internally — zero extra round-trips, zero overhead on simple turns. - Fallback mode (any provider): Exposes an advisor tool backed by a direct LLM call to the advisor model. Works with any executor/advisor combination. --- Quick Start Install Minimal — zero config ","default_branch":null,"files":null,"tree":[],"storefront":"/r/emanueleielo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/emanueleielo/advisor-middleware/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}