Skip to content
Flintworks

Project26 January 2026

Contextrie

View on GitHub

Contextrie is a librarian for agent context. I think an agent needs a librarian: a bureaucrat who knows where everything is and hands over only what the task calls for. I base that on Chroma's Context Rot report, which tested 18 models in 2025 and found that their answers became less reliable as inputs grew longer.

I think context is a two-way street. I picture a library, where books are handed out and also shelved and replaced. My guess, from building in this area, is that much more has been built for retrieval, such as retrieval-augmented generation (RAG), knowledge graphs, and agents that search, than for inserting new context and keeping it current.

Today Contextrie covers three steps. It indexes each source and writes metadata for it, judges every source against the task at hand, and composes the relevant ones into one context file for the agent. It ships as a TypeScript library and a command line tool, with parsers for Markdown, text, and CSV files. Its README marks it as early development and warns of breaking changes. Upkeep of what has been indexed is not built yet, and I plan to work on it next.

Contextrie on GitHub.