PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Context Window Python Packages

Python packages with the GitHub topic context-window. Sorted by relevance, with stars and monthly downloads.
chopratejas
headroom-ai

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.

1.3M 57K 4K
jgravelle
jcodemunch-mcp

Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.

93K 2K 300
cocoindex-io
cocoindex-code

A super light-weight embedded code search engine CLI (AST based) that just works - saves 70% token and improves speed for coding agent 🌟 Star if you like it!

15K 2K 192
DFKHelper
token-goat

Token burn reducer and focus keeper for Claude Code, Codex, Gemini CLI, Cline, Windsurf, Aider, Cursor, Copilot, and more: surgical read hints, PDF/Office/CSV/markdown file interception, 160+ filter & interception rules, compact manifest injection, image shrinking, cache and compact skills, cache MCP calls, and much more.

9K 44 3
whiskybeer
toolrecall

High-performance local SQLite FTS5-based tool output cache and MCP multiplexer for AI agents.

6K 5 0
shardstitch
shardstitch

Recover and hand off your AI coding session β€” after a rate limit, crash, or context bloat β€” across 23 tools. 100% local, no cloud, no account.

6K 0 0
tokenpak
tokenpak

Drop-in HTTP proxy that compresses LLM context, optimizes cache hits, routes smart, and tracks every dollar. Zero SDK changes required.

6K 1 1
nikolay-e
diffctx

Smart git diff context for LLMs - selects the minimal code fragments needed to understand a change. Also exports full codebase in YAML/JSON/MD.

5K 1 1
cenbonew
zing-audit

LLM relay reality check β€” a CLI that audits whether an API relay actually serves the model it claims (货不对板检桋)。

4K 1 0
Topos-Labs
infiniloom

Python bindings for Infiniloom - AST-aware code context engine for RAG and vector databases. Tree-sitter parsing, PageRank ranking, BLAKE3 content-addressable chunks, 27+ tokenizers.

4K 40 5
gs202
pagetomd

Convert web pages to clean Markdown

3K 3 0
woshilaohei
mindcore-memory

Production-hardened MCP memory server for AI agents: hybrid BM25+FAISS search, circuit breaker, SLO tracking, Prometheus metrics, BND boundary evaluation. Gives AI persistent long-term memory that survives across sessions.

3K 1 3
nikolay-e
treemapper

TreeMapper product layer on top of the diffctx engine

3K 0 0
mkorpela
kopipasta

`cat project | LLM | patch`. Transparent context control and interactive patching for terminal-centric LLM workflows.

3K 16 1
Priyanshu-byte-coder
contextrot

Find out where your coding agent starts degrading. Personal context-rot analytics from your own sessions - 100% local, zero-config: uvx contextrot

2K 10 3
a2cr
a2cr-mcp

MCP server for client-encrypted AI agent handoffs with WorkBaton and WorkStash

2K 2 0
mekickdemons-creator
mnemara

Controlled rolling-context conversation runtime for Claude. Stop your agent from running away with your bill.

2K 4 0
iKislay
copium-ai

Context optimization layer for LLMs. 65-90% token savings with zero quality loss. Drop-in proxy for Claude, GPT, Gemini, and local LLMs (Ollama/VLLM/llama.cpp). Features KV cache-aware compression, session dedup, error cards, and Pichay-proven context paging.

2K 8 1
chopratejas
headroom-hardened

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.

2K 57K 4K
ultracontext
ultracontext

Open Source Context infrastructure for AI agents. Auto-capture and share your agents' context everywhere.

2K 215 17
FidelErnesto03
codec-cortex

Deterministic structural compression protocol for LLM agent cognitive memory. 85% less tokens. Zero LLM in codec cycle. 100% reversible. Golden ratio memory distribution.

2K 0 0
JesusGarcia9009
lethe-llm-context

Context garbage collector for long-running LLM agents - offload & recall to save tokens in Claude Code and Codex via MCP.

2K 0 0
akadeepesh
contextzip

CLI tool for intelligent project packaging with framework detection, smart exclusions, and git-aware file selection.

1K 17 0
Rohithmatham12
rm-contextos

Open-source context operating system for AI coding agents. Scans repositories, builds repo intelligence, selects task-specific context under token budgets, and exports optimized context packs for Claude Code, Codex, Cursor, Aider, and other coding agents.

1K 0 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery