Skip to main content
Memory & AgentsCurated

Context Budget Allocator

Use when you are hitting context limits and need a truncation order that is not just 'drop the oldest'.

The prompt
I have a [X]-token context window. I need to fit: system prompt, retrieved memories, conversation history, and the new user message. Given these approximate token counts: [paste], propose an allocation and what to trim first if I go over budget.

Anything in square brackets is meant to be replaced. The builder turns those into fields you can type into.

Tired of re-pasting the same context into every new chat? That is what the Unimatrix MCP server is for.

Browse the rest of the library