awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Context window management

Ranking updated Sep 7, 2026

For context window management, the first results are chopratejas/headroom (Headroom is an AI gateway proxy and token optimizer featuring context compression and a Model Context Protocol server, which aligns well with context window management tools even though it acts primarily as an intercepting proxy rather than a dedicated chunking library), microsoft/promptflow (Promptflow is an LLM application development framework and orchestrator that handles workflow creation and execution tracing, though it focuses more broadly on orchestration rather than specialized context window chunking and compression) and davidkimai/context-engineering (This repository provides a prompt engineering framework and cognitive architecture that includes context window optimization and memory management, though it functions more as a structured reasoning framework than a dedicated toolkit for automatic chunking and token counting). mksglu/context-mode and andrewyng/context-hub round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

Compare the best open-source context window management repositories on GitHub, ranked by stars and activity to find the right fit.

Context window management

Find the best repos with AI.We'll search the best matching repositories with AI.
  • chopratejas/headroomchopratejas avatar

    chopratejas/headroom

    29,537View on GitHub↗

    Headroom is an AI gateway proxy and token optimizer designed to reduce the cost and latency of large language model interactions. It functions as an intermediary that intercepts traffic between clients and providers to apply context compression, request routing, and format translation. The system differentiates itself through a Model Context Protocol server implementation that delivers compression and retrieval tools to compatible AI hosts. It employs a content-aware compression pipeline and tiered importance scoring to trim redundant data from logs and tool outputs while preserving essential

    Headroom is an AI gateway proxy and token optimizer featuring context compression and a Model Context Protocol server, which aligns well with context window management tools even though it acts primarily as an intercepting proxy rather than a dedicated chunking library.

    PythonContext CompressionConversation History ManagementContext Optimization Tools
    View on GitHub↗29,537
  • microsoft/promptflowmicrosoft avatar

    microsoft/promptflow

    11,165View on GitHub↗

    Promptflow is a development framework and orchestrator for building applications powered by large language models. It functions as a suite of tools for designing, orchestrating, and deploying AI workflows by linking prompts, custom Python code, and language models into executable sequences. The project is distinguished by a visual AI workflow designer that allows for the creation of directed acyclic graphs of logic nodes. It provides a dedicated prompt engineering environment for versioning and comparing templates, alongside stateful execution tracing to record function calls and variable val

    Promptflow is an LLM application development framework and orchestrator that handles workflow creation and execution tracing, though it focuses more broadly on orchestration rather than specialized context window chunking and compression.

    PythonLLM Model IntegrationsRetrieval Augmented GenerationRAG Pipelines
    View on GitHub↗11,165
  • davidkimai/context-engineeringdavidkimai avatar

    davidkimai/Context-Engineering

    8,431View on GitHub↗

    Context-Engineering is a prompt engineering framework and cognitive architecture for large language models. It provides a set of patterns and methodologies for designing structured prompts and modular reasoning flows that decompose complex tasks into specialized, step-by-step problem solving templates. The project distinguishes itself through stateful prompt management and context window optimization. It maintains persistent memory across multiple interaction turns by compressing conversation history into compact internal state cells and employs techniques to maximize information density per

    This repository provides a prompt engineering framework and cognitive architecture that includes context window optimization and memory management, though it functions more as a structured reasoning framework than a dedicated toolkit for automatic chunking and token counting.

    PythonRetrieval Augmented GenerationRetrieval-Augmented Generation
    View on GitHub↗8,431
  • mksglu/context-modemksglu avatar

    mksglu/context-mode

    17,558View on GitHub↗

    This project provides a system for managing agent context and session memory, featuring an agent context compactor, an AI session memory manager, and a tool output sandbox. It functions as a middleware layer and server extension for the Model Context Protocol to optimize context windows and reduce token usage. The system optimizes agent performance by sandboxing tool outputs and externalizing large data sets, replacing raw I/O with pointers and concise summaries. It employs a persistent knowledge base that indexes session history and tool outputs for retrieval via full-text search, ensuring s

    This repository provides a Model Context Protocol extension for managing agent context, session memory, and token optimization, fitting the context window management domain well despite lacking built-in automatic chunking.

    TypeScriptAgent Session MemoryContext Window OptimizationsAgent Context Management
    View on GitHub↗17,558
  • andrewyng/context-hubandrewyng avatar

    andrewyng/context-hub

    13,700View on GitHub↗

    Context Hub is a retrieval-augmented generation framework and context management system designed to provide large language model agents with curated, versioned markdown documentation. It functions as a documentation provider that delivers precise API references and technical context to reduce hallucinations and token waste. The system incorporates an agentic memory layer that maintains persistent local annotations and user feedback to improve how agents retrieve task-specific knowledge. It uses a version-controlled repository of technical documentation designed for both machine readability an

    Context Hub provides a markdown-based context management system and retrieval-augmented generation framework with token optimization utilities and agentic memory, though it focuses specifically on documentation delivery rather than general-purpose context window chunking.

    JavaScriptAgentic Context ManagementAgentic Memory SystemsAnnotation Persistence Layers
    View on GitHub↗13,700
  • stangirard/quivrStanGirard avatar

    StanGirard/quivr

    39,167View on GitHub↗

    Quivr is a framework for building retrieval-augmented generation pipelines that connect large language models to custom knowledge bases. It serves as a generative AI integration layer that abstracts the process of transforming diverse document sources into searchable context for AI responses. The project orchestrates the end-to-end flow between document ingestion, vector storage management, and model provider interfaces. It features a vector-store-agnostic retrieval system and a modular API layer that allows for flexible switching between different generative model providers. The system cove

    Quivr is a retrieval-augmented generation framework rather than a dedicated context window manager, focusing instead on document ingestion, vector storage, and connecting knowledge bases to LLM providers.

    PythonRetrieval AugmentationRetrieval Augmented GenerationLLM Integration Layers
    View on GitHub↗39,167
  • thinkany-ai/rag-searchthinkany-ai avatar

    thinkany-ai/rag-search

    1,179View on GitHub↗

    This project provides a search service designed to retrieve and rerank web content for use in large language model applications. It functions as a retrieval augmented search engine that processes natural language queries to fetch contextually relevant information from external web sources. The system distinguishes itself through a combination of semantic retrieval and precision-focused reranking. It converts user queries into high-dimensional embeddings to perform similarity searches across indexed collections, then refines these results by passing candidate pairs through a secondary model to

    This project is a web search and retrieval-augmented generation engine rather than a dedicated context window manager, making it a complementary building block for context fetching rather than a tool for chunking and compressing windows.

    PythonRetrieval AugmentationRetrieval Augmented GenerationVector Search Engines
    View on GitHub↗1,179
  • bhaskatripathi/pdfgptbhaskatripathi avatar

    bhaskatripathi/pdfGPT

    7,164View on GitHub↗

    pdfGPT is a retrieval augmented generation application and chatbot designed to analyze PDF documents. It functions as a document analyzer and vector search interface, using large language models to answer questions grounded in the content of uploaded files. The system implements a pipeline that extracts text from PDFs, splits content into overlapping segments, and uses vector-based semantic search to retrieve relevant context. This process allows the application to provide responses with verifiable source citations, including page number references to the original document. The project also

    This project is a PDF-focused chat and retrieval application rather than a dedicated library or tool for managing and optimizing context windows across broader LLM workflows.

    PythonRetrieval Augmented GenerationConversation Memory ManagersRAG Pipelines
    View on GitHub↗7,164
  • langchain4j/langchain4jlangchain4j avatar

    langchain4j/langchain4j

    12,346View on GitHub↗

    LangChain4j is a framework and library for building applications powered by large language models on the JVM. It provides a unified API for developing AI agents, implementing retrieval augmented generation, and integrating generative AI capabilities into professional software built with frameworks like Spring Boot or Quarkus. The project enables the creation of autonomous agents that can reason through tasks, manage memory, and execute external tools to achieve specific goals. It differentiates itself through a unified model interface that allows developers to switch between multiple model pr

    LangChain4j is a Java framework for building LLM applications and retrieval-augmented generation pipelines, but its primary identity is an application framework rather than a dedicated context window manager or chunking tool.

    JavaConversation History ManagementRetrieval-Augmented GenerationConversation Memory Managers
    View on GitHub↗12,346
  • langchain-ai/rag-from-scratchlangchain-ai avatar

    langchain-ai/rag-from-scratch

    7,393View on GitHub↗

    This project is an educational implementation guide and framework for building Retrieval Augmented Generation systems. It provides a workflow for constructing a knowledge base pipeline that partitions documents, indexes them as vectors, and provides external context for language model prompts. The system features a document chunking framework that uses recursive character splitting to fit text into model context windows. It includes an in-memory vector store and a similarity search system that retrieves relevant text segments by calculating the mathematical distance between dense embedding ve

    This project is an educational guide and workflow for building RAG pipelines rather than a dedicated library or tool for managing and optimizing model context windows.

    Jupyter NotebookRetrieval Augmented GenerationRAG PipelinesVector Search
    View on GitHub↗7,393
  • hwchase17/langchainjshwchase17 avatar

    hwchase17/langchainjs

    17,822View on GitHub↗

    LangChainJS is an AI agent orchestrator and application framework designed for building autonomous systems that use large language models to plan and execute tasks. It serves as an integration library that connects language models with tools, memory, and external data sources to create context-aware logic and complex workflows. The project provides a provider-agnostic interface and model provider abstraction, allowing applications to switch between different language model providers without rewriting core logic. It includes a toolkit for retrieval augmented generation, utilizing retrievers to

    LangChainJS is an AI agent orchestration framework and integration library rather than a dedicated context window manager, though it includes components for RAG and memory management that interact with contexts.

    TypeScriptRetrieval Augmented GenerationLLM Integration LayersRAG Toolkits
    View on GitHub↗17,822
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
chopratejas/headroom29.5KPythonApache-2.0Jun 16, 2026
microsoft/promptflow11.2KPythonMITJun 18, 2026
davidkimai/context-engineering8.4KPythonmitNov 15, 2025
mksglu/context-mode17.6KTypeScriptNOASSERTIONJun 16, 2026
andrewyng/context-hub13.7KJavaScriptMITMay 31, 2026
stangirard/quivr39.2KPythonNOASSERTIONJul 9, 2025
thinkany-ai/rag-search1.2KPythonApache-2.0Jul 29, 2024
bhaskatripathi/pdfgpt7.2KPythonMITMar 6, 2026
langchain4j/langchain4j12.3KJavaApache-2.0Jun 16, 2026
langchain-ai/rag-from-scratch7.4KJupyter Notebook—Jun 26, 2025

Related searches

  • Virtual scrolling library
  • Context menu library
  • Browser extension boilerplate
  • Browser tab manager
  • Web navigation framework
  • a window management tool for macOS automation
  • Context menu extensions
  • UI navigation components