Replies: 1 comment
|
That's a smart optimization. Sending the full definition of every skill on every turn doesn't scale, especially as the number of skills grows. A lightweight index with lazy loading seems like a much better default. It also highlights another challenge with long running agents. Besides context bloat, they can get stuck repeating the same actions or waste tokens retrying failed paths. I've been exploring FailproofAI for that side of the problem since it focuses on runtime reliability and loop detection: https://github.com/FailproofAI/failproofai. Feels like efficient context management and runtime guardrails go hand in hand for building scalable agents. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Recently I noticed my tokens were running out after only a few messages.
After inspecting the prompts being sent to my provider, I realized the agent was including the full description of every skill in the prompt on every single message exchange.
That resulted in roughly:
What I changed
To reduce the overhead, I moved all skills from
open-skillsinto another folder calledlazy-skills.Then I created a lightweight
lazyskill insideopen-skillscontaining only:The agent now loads the full skill only when needed.
Result
Suggestion
Would it make sense to have a native/vanilla mechanism for this?
Right now, sending the full content of every skill on every request feels extremely inefficient, especially as projects grow.
Some possible alternatives:
As projects become larger, prompt orchestration and context management start mattering a lot more than model size itself.
Curious to hear how others are handling this.
All reactions