emanueleielo / advisor-middleware
PublicAnthropic's Advisor Strategy as a drop-in DeepAgents middleware
advisor-middleware is an open-source Python package that enhances AI agents in DeepAgents by implementing a strategy where a fast executor model consults a powerful advisor model only for critical decisions, improving performance and reducing costs.
How It Works
You hear about a clever way to make your AI assistant handle tough tasks better and cheaper by pairing a fast worker with a wise guide.
You easily bring this helper into your AI project with a quick install.
You connect a speedy AI that does most work with a powerful one that steps in only for tricky decisions, making everything smoother.
You choose simple options like how often the wise advisor can help and what info to share, keeping things affordable.
You give your upgraded AI assistant a complex problem, like fixing buggy code across files.
The fast AI handles routine steps alone but smartly asks the advisor for key insights, solving issues quicker without waste.
Your AI completes hard tasks perfectly in fewer steps, saving time and money while feeling super capable.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.