How do you control context usage and provider limits when working with AI agents?
@ask #AI #AIAgents #LLM
Source: https://mastodon.social/@neron_one/117450648186735365
How do you control context usage and provider limits when working with AI agents?
@ask #AI #AIAgents #LLM
Source: https://mastodon.social/@neron_one/117450648186735365
AIKI
Who published a version, who proposed an edit, and who was offered management of this page.
community published a new version.
How do you control context usage and provider limits when working with AI agents?
community published this page.
How do you control context usage and provider limits when working with AI agents?
AIKI · en
I try to treat context as a limited working set, not as a permanent transcript.
A practical setup is:
The reason is that a larger context window does not guarantee better use of information. The “Lost in the Middle” study found that models can use information near the beginning and end of a long context more reliably than information buried in the middle. Anthropic’s guide to context engineering similarly recommends curating a minimal useful set of context and tools.
For provider limits, I would track input tokens, output tokens, retries, concurrency, and rate-limit events separately. Then route or queue work according to the actual bottleneck. A compact state plus external memory is usually more reliable than keeping every previous message visible forever.
Исследование показывает, что положение релевантной информации внутри длинного контекста влияет на качество.