Context optimization¶
A model does not get better as its context grows. Past a certain point it gets worse, and this is measured rather than felt: accuracy drops when what matters sits in the middle of a long input instead of at its edges (Liu et al., Lost in the Middle, TACL 2024), reasoning degrades at input lengths far below the technical maximum a model advertises (Levy, Jacoby and Goldberg, ACL 2024), and the context a model can actually use is shorter than the one written on its box (Hsieh et al., RULER, COLM 2024).
Whatever your Agent reads before it starts working is paid for on every call, in tokens and in attention.
Meridiaan is built around that. Most of what follows is not a setting you turn on, it is how the tools behave, and knowing it changes how you write.
Summaries are read before content¶
A Document carries a title, a summary and the content. The tools that list and search never return the content: an Agent scanning a Collection reads titles and summaries, decides, and only then opens what it needs in full.
So the summary is not decoration, it is the selector. A Collection of forty Documents can be scanned for a few hundred tokens, and the one Document that matters gets read whole. A Collection whose summaries all say "notes about the project" forces the opposite: the Agent opens everything, or guesses.
Instructions are written once, not repeated in prompts¶
The instructions of a Collection travel to every Agent at connection, together with the list of Collections. They are not pasted into a prompt, they are not repeated per request, and they are not something each person on the team has to remember to include.
That is why they stop at five hundred characters. They are served on every connection, so their cost is real and bounded on purpose, and the limit is what keeps them a rule rather than a document.
The surface an Agent receives is sized to its role¶
An Agent does not receive ten tool definitions and then get refused. It receives the tools its role allows: four for a Viewer, six for an Editor, nine for an Owner. Schemas and descriptions are tokens like everything else, and tools that would only ever be refused are not worth their characters.
Answers are bounded by design¶
- Lists are capped, and they say so when they cut, instead of returning everything and hoping.
- Archived Documents are out of listings unless they are asked for, so material you have set aside stops being paid for.
- A search returns matches, never the body of every match.
What you can keep out of the Agent's view¶
- Archive what is no longer current. Nothing is deleted, and it stops arriving in the default listings.
- Keep a single Document out of what Agents see, when it is internal to the team rather than useful to a model.
- Expose a Collection to Agents, or do not. A Collection that an Agent has no business reading costs nothing if it is not exposed.
What repeats is stable, which is what caching needs¶
Inside one session, the list of tools and the Workspace description do not change: they travel once, at connection, and stay identical for the whole session. That is exactly the shape that prompt caching on the model side is able to reuse, and Meridiaan does nothing that breaks it.
The counterpart is worth knowing: a Collection created mid session does not appear in that session. It is the same property seen from the other side, and reconnecting is enough.
Where the opening claim comes from¶
The three measurements above are not ours, and they are worth reading before deciding how much context to give an Agent:
- Liu, Lin, Hewitt, Paranjape, Bevilacqua, Petroni and Liang, Lost in the Middle: How Language Models Use Long Contexts, TACL 2024, on where inside a long input a model stops paying attention.
- Levy, Jacoby and Goldberg, Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Models, ACL 2024, on reasoning that degrades with length alone, with the task held fixed.
- Hsieh, Sun, Kriman, Acharya, Rekesh, Jia, Zhang and Ginsburg, RULER: What's the Real Context Size of Your Long-Context Language Models?, COLM 2024, on the distance between the declared context window and the usable one.
What this means when you write¶
- Write the summary as if it were the only thing read, because most of the time it is.
- Keep one kind of thing per Collection, so that a status filter narrows a read instead of an Agent reading everything to sort it out.
- Put in the instructions what would otherwise be repeated in every prompt, and nothing else.
- Archive what is stale, on the day it goes stale.
Something not working?
If something in Meridiaan is broken, or does not work the way this page says, write to support@meridiaan.io.