smolagents replays its whole memory every step: the O(n ) token bill nobody mentions
Hugging Face's smolagents framework incurs a quadratic token cost because its CodeAgent re-sends the entire accumulated memory of every previous step at each reasoning step, rather than sending only n…