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.

176K 2K 160
tokenpak
tokenpak

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

15K 1 1
ultracontext
ultracontext

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

14K 197 16
mekickdemons-creator
mnemara

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

9K 4 0
dfrostar
neuralmind

🧠 Adaptive Neural Knowledge System - 40-70x token reduction for AI code understanding

4K 8 0
yttrium400
reducethemtokens

Compress any code repo into a compact skeleton to reduce LLM token usage. 90%+ reduction with full structural retention.

3K 3 2
mekickdemons-creator
gemma-mnemara

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

3K 4 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.

3K 40 5
viditraj
llmfs

Filesystem-based persistent memory for LLMs and AI agents -- unlimited context windows without lossy summarization

2K 6 0
nikolay-e
treemapper

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

2K 1 1
osamarehman
claude-mem

Persistent session memory for Claude Code. Indexes your session history locally and injects context automatically. Zero dependencies.

2K 0 0
mkorpela
kopipasta

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

2K 16 1
z3knayr0
tailspin-ai

Token optimization and compression for Claude API requests

1K 1K 123
thomaschill
unclog

Audit MCP servers, skills, and CLAUDE.md bloat eating your Claude Code context window.

1K 31 1
Anyesh
cognitive-cache

Optimal context orchestration for LLMs

1K 2 0
immartian
bellamem

Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact.

735 18 2
MukundaKatta
agentfit-py

Python port of @mukundakatta/agentfit: fit your messages into the LLM context window

608 0 0
lguibr
codeconcat

A tool to concatenate folders into a single text file, respecting .gitignore and using optional config.

559 5 0
srinathsankara
agent-recall-ai

Structured session checkpointing for AI agents — survive context limits, cost overruns, and session death

488 2 0
Rishi-Bethi-007
reguliq-diagnostics

Diagnose context degradation in LLM agents — find where memory breaks and how to fix it

462 0 0
Leonwenhao
deeprepo-cli

AI project memory for coding tools. Eliminates the cold start tax in every AI session.

450 11 1
tokenpak
tokenpak-paid-stub

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

417 1 1
npow
context-bench

Benchmark any system that transforms LLM context: compressors, RAG rerankers, memory managers, and more.

386 0 0
lucifer-ux
contextcore

ContextCore: An MCP server for Claude (or any AI tool) that enables massive token saving through hybrid search (BM25 + Embeddings)

381 20 5
    • Data from PyPI, GitHub, ClickHouse, and BigQuery