awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

31 个仓库

Awesome GitHub RepositoriesContext Window Management

Tools for managing and configuring the context window size for language models.

Distinguishing note: Focuses on memory management rather than general model settings.

Explore 31 awesome GitHub repositories matching artificial intelligence & ml · Context Window Management. Refine with filters or upvote what's useful.

Awesome Context Window Management GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • thedotmack/claude-memthedotmack 的头像

    thedotmack/claude-mem

    82,698在 GitHub 上查看↗

    Claude-mem is an agentic memory persistence system designed to provide AI assistants with long-term context across multiple development sessions. It functions as a background orchestrator that captures, summarizes, and indexes interaction history, allowing models to maintain continuity and recall technical decisions from past tasks. By utilizing a vector-augmented context engine, the system injects relevant historical observations into active sessions, ensuring that AI agents remain informed without exceeding finite token budgets. The project distinguishes itself through an endless memory arc

    Manages token usage by compressing historical data and selectively injecting relevant project information.

    JavaScriptaiai-agentsai-memory
    在 GitHub 上查看↗82,698
  • juliusbrussee/cavemanJuliusBrussee 的头像

    JuliusBrussee/caveman

    73,390在 GitHub 上查看↗

    Caveman is a set of tools and configurations designed for large language model token optimization. It focuses on reducing the amount of data processed during AI interactions to lower costs and maximize the available context window. The project implements a fragmented communication style that replaces full grammatical sentences with concise technical keywords. This approach extends to AI context optimization by condensing memory files and tool descriptions, and includes a specialized configuration for generating terse, one-line code reviews and short conventional commit messages. The system i

    Reduces the size of memory files and tool descriptions to maximize the available AI context window.

    JavaScriptaianthropiccaveman
    在 GitHub 上查看↗73,390
  • microsoft/ai-agents-for-beginnersmicrosoft 的头像

    microsoft/ai-agents-for-beginners

    67,369在 GitHub 上查看↗

    This project is a structured educational resource and technical guide for designing and implementing autonomous systems using large language models. It provides a comprehensive curriculum and code samples focused on agentic design patterns, autonomous development, and the creation of systems capable of planning and executing multi-step tasks. The resource details the implementation of agentic retrieval-augmented generation, where models autonomously plan and refine data searches. It covers a wide array of orchestrators and design patterns, including metacognitive reflection for self-correctin

    Provides techniques for coordinating the addition, removal, and condensation of information within the model context window.

    Jupyter Notebookagentic-aiagentic-frameworkagentic-rag
    在 GitHub 上查看↗67,369
  • aider-ai/aiderAider-AI 的头像

    Aider-AI/aider

    46,305在 GitHub 上查看↗

    Aider is a command-line interface tool that enables large language models to directly edit, refactor, and manage source code within a local repository. It functions as an AI-powered coding assistant that integrates into the developer workflow, allowing users to apply code changes through natural language prompts while maintaining repository context and version control. The tool distinguishes itself through a specialized diff-based patching engine that parses model-generated search-and-replace blocks to modify specific file segments without rewriting entire files. It features a provider-agnost

    Configures context window sizes to prevent data loss and ensure sufficient space for prompts and responses.

    Pythonanthropicchatgptclaude-3
    在 GitHub 上查看↗46,305
  • agno-agi/agnoagno-agi 的头像

    agno-agi/agno

    40,717在 GitHub 上查看↗

    Agno is an agent operating system designed to manage the lifecycle, tool execution, and persistent state of autonomous agents across distributed infrastructure. It provides a unified runtime environment that wraps diverse agent frameworks into a consistent, interoperable protocol, allowing developers to build and deploy complex multi-agent systems that coordinate tasks and delegate sub-processes. The platform distinguishes itself through a robust governance and orchestration layer that includes human-in-the-loop approval gates, role-based access control, and a centralized API gateway. It feat

    AgentOS limits the amount of historical data sent to the model by configuring the number of previous runs, message count, or tool call frequency.

    Pythonagentsaiai-agents
    在 GitHub 上查看↗40,717
  • chopratejas/headroomchopratejas 的头像

    chopratejas/headroom

    29,537在 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

    Implements a token tracking system that prunes the oldest data to maintain the most recent conversation context.

    Pythonagentaianthropic
    在 GitHub 上查看↗29,537
  • sillytavern/sillytavernSillyTavern 的头像

    SillyTavern/SillyTavern

    29,463在 GitHub 上查看↗

    SillyTavern is a comprehensive interface and orchestration platform designed for immersive AI roleplay and interactive chat experiences. It functions as a unified gateway that connects users to a wide array of local and cloud-based large language models, providing a centralized environment to manage complex character personas, narrative context, and model-driven interactions. The platform distinguishes itself through its advanced prompt engineering and automation capabilities. It utilizes a sophisticated macro-based templating engine and vector-database retrieval to dynamically inject lore, c

    Defines and manages maximum token limits for prompts, including chat history and system instructions.

    JavaScriptaichatllm
    在 GitHub 上查看↗29,463
  • cpacker/memgptcpacker 的头像

    cpacker/MemGPT

    23,374在 GitHub 上查看↗

    MemGPT is a memory management framework and external memory layer for large language models. It functions as a platform for building stateful AI agents that maintain a persistent identity and continuous context across multiple sessions. The system enables agents to bypass fixed context window limitations by using a virtual context windowing approach. This allows models to manage their own memory through internal commands to search, update, and delete stored information within a hierarchical structure of short-term working context and long-term archival storage. The framework provides a local

    Simulates an expanded memory limit by swapping data between the active prompt and external storage.

    Python
    在 GitHub 上查看↗23,374
  • deepseek-ai/deepseek-coderdeepseek-ai 的头像

    deepseek-ai/DeepSeek-Coder

    22,804在 GitHub 上查看↗

    DeepSeek-Coder is a large language model and foundational neural network architecture designed specifically for software development tasks. It functions as an artificial intelligence assistant capable of interpreting complex programming instructions to generate, transpile, and structure source code. The system distinguishes itself through its ability to perform project-level code generation, analyzing broader context and patterns across entire software projects rather than isolated files. It supports multimodal input processing, allowing for the integration of text and visual data to inform i

    Maintains a fixed-size buffer of preceding tokens to ensure logical continuity in long-form code generation.

    Python
    在 GitHub 上查看↗22,804
  • hkuds/rag-anythingHKUDS 的头像

    HKUDS/RAG-Anything

    21,372在 GitHub 上查看↗

    RAG-Anything is a retrieval-augmented generation framework designed to index diverse document formats and perform semantic search using local machine learning models. It functions as a local multimodal data processor, extracting and organizing information from various file types into a unified knowledge base to facilitate private document analysis. The system distinguishes itself through its high-throughput ingestion engine, which processes large batches of documents into searchable vector embeddings. By executing machine learning models directly on local hardware, the framework ensures that

    Organizes and manages document fragments to provide precise context for language model responses.

    Pythonmulti-modal-ragretrieval-augmented-generation
    在 GitHub 上查看↗21,372
  • mastra-ai/mastramastra-ai 的头像

    mastra-ai/mastra

    21,221在 GitHub 上查看↗

    Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and multi-agent systems. It provides a comprehensive suite of primitives for creating resilient AI applications, including durable workflow orchestration, event-driven agent loops, and semantic memory management. By integrating these core components, the platform enables developers to build complex, multi-step processes that can reason about goals and execute tasks without manual intervention. The framework distinguishes itself through its focus on observability and secure, isolated execut

    Automatically prunes older messages and filters tool call history to prevent context overflow and optimize token usage.

    TypeScriptagentsaichatbots
    在 GitHub 上查看↗21,221
  • claude-code-best/claude-codeclaude-code-best 的头像

    claude-code-best/claude-code

    20,272在 GitHub 上查看↗

    Claude Code is a command-line interface and multi-agent orchestration framework designed for autonomous software engineering. It enables AI agents to perform codebase modifications, debugging, and Git workflow management while coordinating multiple specialized agents to decompose and execute complex engineering tasks in parallel. The system distinguishes itself through a high degree of isolation and safety, utilizing Git worktrees to create independent working directories for concurrent agents and implementing a tiered permission system that combines user rules, project policies, and OS-level

    Manages the LLM context window by clearing tool outputs or generating abstracts to prevent token overflow.

    TypeScript
    在 GitHub 上查看↗20,272
  • dyad-sh/dyaddyad-sh 的头像

    dyad-sh/dyad

    19,648在 GitHub 上查看↗

    Dyad is a local, artificial intelligence-powered development environment designed to manage, edit, and scaffold full-stack software projects. It functions as an automated codebase manager and code editor that leverages language models to execute programming tasks, maintain project context, and apply targeted modifications directly to source files on a user's machine. The platform distinguishes itself through a model-agnostic architecture that allows for flexible integration with various language model runtimes. It provides specialized operational modes to optimize development speed and effici

    Summarizes conversation history and filters codebase inputs to maintain performance within model token limits.

    TypeScriptai-app-builderanthropicartificial-intelligence
    在 GitHub 上查看↗19,648
  • qwenlm/qwen-codeQwenLM 的头像

    QwenLM/qwen-code

    19,078在 GitHub 上查看↗

    Qwen-code is an AI-powered development framework designed for orchestrating intelligent coding agents within terminal and IDE environments. It provides a comprehensive infrastructure for automating software maintenance, code generation, and complex refactoring tasks by managing multi-agent workflows and persistent session states. The system is built to handle both interactive development and automated background processes, ensuring that agents can execute shell commands and file operations safely within isolated, sandboxed environments. What distinguishes this project is its focus on granular

    Monitors session memory and manages context windows to maintain performance within token limits.

    TypeScript
    在 GitHub 上查看↗19,078
  • swe-agent/swe-agentSWE-agent 的头像

    SWE-agent/SWE-agent

    18,510在 GitHub 上查看↗

    SWE-agent is an autonomous software engineering platform designed to automate repository maintenance and issue resolution. By orchestrating language models to navigate codebases, diagnose software bugs, and apply fixes, the framework functions as an autonomous agent capable of executing shell commands, editing source code, and managing pull requests within isolated, containerized environments. The platform distinguishes itself through its focus on end-to-end task autonomy and observability. It features a robust trajectory logging system that records every thought, action, and environment obse

    Compresses interaction history and filters observation data to maintain focus within model token limits.

    Pythonagentagent-based-modelai
    在 GitHub 上查看↗18,510
  • vercel/vercelvercel 的头像

    vercel/vercel

    15,738在 GitHub 上查看↗

    Vercel is a cloud platform for building, deploying, and scaling web applications. It provides a unified infrastructure that automates the build process by detecting project frameworks and distributing static and dynamic content through a global content delivery network. The platform executes application logic using serverless functions that scale automatically based on real-time traffic demand. The platform distinguishes itself through a centralized AI gateway that proxies requests to multiple model providers, enabling standardized authentication, observability, and cost tracking. It supports

    Calculates token usage for messages to optimize context window management and control operational costs.

    TypeScriptclicloudcommand
    在 GitHub 上查看↗15,738
  • kilo-org/kilocodeKilo-Org 的头像

    Kilo-Org/kilocode

    15,616在 GitHub 上查看↗

    Kilocode is an autonomous engineering platform designed to orchestrate AI agents for complex software development tasks. It functions as a comprehensive system for automating coding, testing, and repository management by integrating directly with your codebase and terminal. The platform provides a unified gateway for model orchestration, allowing for the management of agentic workflows, event-driven automation, and persistent session state across distributed development environments. The platform distinguishes itself through its federated task management and policy-based access control, which

    Enables message transformation techniques to handle prompts that exceed the maximum context limits of selected AI models.

    TypeScriptaiai-ageai-coding
    在 GitHub 上查看↗15,616
  • qwenlm/qwen3-coderQwenLM 的头像

    QwenLM/Qwen3-Coder

    15,615在 GitHub 上查看↗

    Qwen3-Coder is a specialized large language model designed for software development, technical reasoning, and automated code synthesis. Built on transformer-based sequence modeling, it functions as a multilingual programming assistant capable of generating, completing, and debugging source code across more than one hundred programming languages. The model distinguishes itself through its capacity to process and maintain logical coherence across massive datasets, supporting context windows of up to one million tokens. This allows for repository-scale reasoning, enabling the model to analyze co

    Manages long context windows to maintain logical coherence across up to one million tokens.

    Python
    在 GitHub 上查看↗15,615
  • fuergaosi233/wechat-chatgptfuergaosi233 的头像

    fuergaosi233/wechat-chatgpt

    13,225在 GitHub 上查看↗

    This project is a conversational AI bot that integrates large language models into WeChat accounts to provide automated responses in private and group chats. Built on the WeChaty bot framework, it functions as a bridge that enables real-time conversational interactions between a messaging account and an AI model. The system acts as an AI multimedia gateway and context manager, supporting the generation of images from text and the transcription of audio files within the chat interface. It tracks interaction histories to manage token limits and maintains coherent conversations through custom sy

    Tracks and clears per-user interaction histories to maintain coherent conversations within the language model's token limits.

    TypeScript
    在 GitHub 上查看↗13,225
  • doriandarko/claude-engineerDoriandarko 的头像

    Doriandarko/claude-engineer

    11,199在 GitHub 上查看↗

    Claude-engineer is an autonomous software engineering agent and command-line interface for interacting with the Claude 3.5 Sonnet model. It functions as an AI code editor that writes code, manages local files, and executes terminal commands to automate technical workflows. The system features a self-evolving tool framework that allows the agent to design and implement its own functional scripts to expand its capabilities during a session. It utilizes a sandboxed Python executor to run scripts for data analysis and complex computations in a secure remote environment. The project covers a broa

    Tracks real-time token consumption to prevent context window overflows and optimize API costs.

    Python
    在 GitHub 上查看↗11,199
上一个12下一个
  1. Home
  2. Artificial Intelligence & ML
  3. Context Window Management

探索子标签

  • Context-Window AggregatorsAggregates selected blocks and excerpts into a structured string for LLM context windows. **Distinct from Context Window Management:** Focuses on aggregating multiple disparate excerpts into one string rather than managing the total size of the window