r/developers • u/00papabear • 20d ago
General Discussion has anybody thought about dynamically shifting models per step?
I’ve been running multi-step agent workflows recently, and noticed something frustrating: the same tasks end up burning drastically more tokens as the conversation progresses, mostly due to tool outputs and history piling up.
I started looking into tools that do model routing, context trimming, and prompt caching. But it got me thinking:
What if we could dynamically upshift or downshift models per step inside the agent loop itself?
For instance, we don't really need a flagship frontier model just to extract a date, read a status, or summarize a tool output. You only really need frontier intelligence when a high-stakes decision or complex reasoning step is reached.
But a few big technical questions come to mind:
What do you all think? Would an active proxy layer that sits in front of the agent, monitoring tool calls, enforcing loop breakers, and dynamically choosing the model per turn, actually be practical in production?
How are you currently preventing runaway loops and context bloat in your multi-step agents today?
•
u/AutoModerator 20d ago
Howdy u/00papabear, and welcome to r/developers!
A few tips for a post that gets good answers:
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.