#Context-window

Showing 39 of 39 repositories tagged #context-window, ranked by stars

headroomlabs-ai
headroomlabs-ai
headroom

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

Score
100
β˜… 58.3k β‘‚ 4.3k +65/day
Python
humanlayer
humanlayer
12-factor-agents

What are the principles we can use to build LLM-powered software that is actually good enough to put in the hands of production customers?

Score
100
β˜… 24.0k β‘‚ 1.8k +45/day
TypeScript
cocoindex-io
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!

Score
100
β˜… 2.5k β‘‚ 196 +211/day
Python
jgravelle
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.

Score
100
β˜… 2.0k β‘‚ 301 +1/day
Python
alexgreensh
alexgreensh
token-optimizer

Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.

Score
0
β˜… 1.6k β‘‚ 127 +48/day
Python
zzet
zzet
gortex

High-performance code-intelligence engine for AI agents and IDE, supports 257 languages, multi repositories, based on graph, with access via CLI, MCP Server, and API. AI coding agents teammate - expose only needed information, cutting token usage up to 50x. 100% local. Discord: https://discord.gg/ysC2prTGD

Score
100
β˜… 836 β‘‚ 71 +2/day
Go
datamllab
datamllab
LongLM

[ICML'24 Spotlight] LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuning

Score
65
β˜… 668 β‘‚ 61 +1/day
Python
memvid
memvid
claude-brain

Give Claude Code photographic memory in ONE portable file. No database, no SQLite, no ChromaDB - just a single .mv2 file you can git commit, scp, or share. Native Rust core with sub-ms operations.

Score
0
β˜… 524 β‘‚ 55 +1/day
TypeScript
mnemon-dev
mnemon-dev
mnemon

LLM-supervised persistent memory for AI agents β€” graph-based recall, cross-session knowledge, single binary. Works with Claude Code, OpenClaw, and any CLI agent.

Score
93
β˜… 375 β‘‚ 55 +2/day
Go
OnlyTerp
OnlyTerp
openclaw-optimization-guide

Make your OpenClaw AI agent faster, smarter, and cheaper. Speed optimization, memory architecture, context management, model selection, and one-shot development guide.

Score
94
β˜… 361 β‘‚ 42 β€”
JavaScript
edouard-claude
edouard-claude
snip

CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go.

Score
86
β˜… 361 β‘‚ 38 +5/day
Go
bibinprathap
bibinprathap
VeritasGraph

VeritasGraph β€” open-source Knowledge Graph & GraphRAG framework on GitHub. Build multi-hop reasoning, ontology-aware retrieval, and verifiable attribution over your own data. Nodes, edges, RDF, linked-data β€” runs locally or in the cloud.

Score
88
β˜… 297 β‘‚ 33 +1/day
Python
smart-mcp-proxy
smart-mcp-proxy
mcpproxy-go

Supercharge AI Agents, Safely

Score
79
β˜… 282 β‘‚ 36 +9/day
Go
mpecan
mpecan
tokf

Config-driven CLI tool that compresses command output before it reaches an LLM context

Score
71
β˜… 189 β‘‚ 20 +1/day
Rust
0xhimanshu
0xhimanshu
governor

Claude Code usage governor: compact professional output, context slimming, tool-output filtering, telemetry, and drift guardrails.

Score
57
β˜… 123 β‘‚ 6 β€”
Python
brandondocusen
brandondocusen
CntxtPY

A discovery and compression tool for your Python codebase. Creates a knowledge graph for a LLM context window, efficiently outlining your project | Code structure visualization | LLM Context Window Efficiency | Static analysis for AI | Large Language Model tooling #LLM #AI #Python #CodeAnalysis #ContextWindow #DeveloperTools

Score
0
β˜… 115 β‘‚ 13 β€”
Python
linggen
linggen
linggen-memory

A local-first memory layer for AI (Cursor, Zed, Claude). Persistent architectural context via semantic search.

Score
43
β˜… 108 β‘‚ 5 β€”
Rust
reshaprio
reshaprio
reshapr

The open source, no-code MCP Server for AI-Native API Access

Score
64
β˜… 107 β‘‚ 20 β€”
Java
HoangP8
HoangP8
tokless

A unified CLI to install and update token-saving plugins β€” RTK, Caveman, CodeGraph, and Context-Mode β€” for Claude Code, OpenCode, Codex, and Antigravity. Minimal setup. Any OS.

Score
50
β˜… 107 β‘‚ 10 +19/day
Go
nambok
nambok
mentedb

A cognition aware database engine for AI agent memory. Purpose built in Rust with WAL, HNSW, knowledge graphs, and speculative context pre assembly. Not a wrapper, a ground up storage engine that thinks.

Score
82
β˜… 105 β‘‚ 5 +3/day
Rust
day50-dev
day50-dev
llm-manpage-tool

Inject relevant documentation into your prompts: 98% savings.

Score
71
β˜… 97 β‘‚ 8 β€”
Python
mensfeld
mensfeld
llm-docs-builder

Transform and optimize your markdown documentation for Large Language Models (LLMs) and RAG systems. Generate llms.txt automatically.

Score
76
β˜… 93 β‘‚ 5 β€”
Ruby
diillson
diillson
chatcli

ChatCLI Γ© uma aplicaΓ§Γ£o de linha de comando que utiliza modelos de linguagem como OpenAI, GoogleAI, e outras, para conversas interativas no terminal. Suporta comandos como @history, @git, @env e @file e @command para integrar histΓ³rico do shell, Git, variΓ‘veis e conteΓΊdos de arquivos.

Score
0
β˜… 89 β‘‚ 23 β€”
Go
Abinesh-L
Abinesh-L
claude-crusts

Analyze your Claude Code context window, detect wasted tokens, and get pasteable fix commands. Zero API calls

Score
36
β˜… 83 β‘‚ 24 β€”
TypeScript
Elijas
Elijas
baml-agents

Building Agents with LLM structured generation (BAML), MCP Tools, and 12-Factor Agents principles

Score
0
β˜… 71 β‘‚ 13 β€”
Python
henchmarketing-rgb
henchmarketing-rgb
headroom

Know your headroom. Context window usage bar for Claude Code.

Score
21
β˜… 67 β‘‚ 4 β€”
Shell
zircote
zircote
rlm-rs

Rust CLI implementing the Recursive Language Model (RLM) pattern for Claude Code. Process documents 100x larger than context windows through intelligent chunking, SQLite persistence, and recursive sub-LLM orchestration.

Score
59
β˜… 57 β‘‚ 5 +1/day
Rust
choihyunsus
choihyunsus
n2-arachne

Optimize AI workflows with Arachne. Automatically assembles the perfect code context (Tree, Target, Deps, Semantic) to fit context windows without noise. Built for efficiency and scale.

Score
14
β˜… 55 β‘‚ 5 β€”
TypeScript
cuzfrog
cuzfrog
lissom-skills

Light weight Claude Skills and Agents for every day tasks.

Score
29
β˜… 53 β‘‚ 5 β€”
Python
hunhee98
hunhee98
pluck

MCP-native code retrieval for AI agents β€” 84-88% fewer read tokens, BM25F + semantic search, AST chunks, session dedup

Score
47
β˜… 38 β‘‚ 0 +1/day
Rust
tjqscott
tjqscott
dory

Dory treats hosted LLM interfaces as disposable tools by offloading state to your local environment and enforcing atomic sessions.

Score
53
β˜… 38 β‘‚ 0 +8/day
AgusRdz
AgusRdz
chop

CLI output compressor for Claude Code. Reduces token consumption by 50–90% by compressing verbose command output before it enters the context window. Supports 52+ commands β€” git, docker, kubectl, npm, terraform, and more.

Score
7
β˜… 37 β‘‚ 2 β€”
Go
DBarr3
DBarr3
Unlimited-Context-LLM

Unlimited context for Ai β€” give any LLM a billion-token memory. Open-source, local-first context + memory engine for agents. 🧠⚑

Score
29
β˜… 26 β‘‚ 1 β€”
Python
1broseidon
1broseidon
promptext

Smart code context extractor for AI assistants

Score
24
β˜… 22 β‘‚ 1 β€”
Go
lucifer-ux
lucifer-ux
Contextcore

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

Score
35
β˜… 22 β‘‚ 4 β€”
Python
pleasedodisturb
pleasedodisturb
awesome-llm-token-optimization

A curated list of strategies, tools, papers, and resources for reducing LLM token costs and improving efficiency in production.

Score
41
β˜… 21 β‘‚ 6 +6/day
mkorpela
mkorpela
kopipasta

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

Score
12
β˜… 16 β‘‚ 1 β€”
Python
di37
di37
context-engineering-bootcamp

Context Engineering for LLMs: structured notes on RAG, system prompts, MCP, Agents, and Memory Management β€” compiled from multiple expert sources.

Score
18
β˜… 13 β‘‚ 3 β€”
Typst
appautomaton
appautomaton
automaton

AI coding agent framework β€” portable, stage-gated harness for Claude Code, Codex, and OpenCode

Score
6
β˜… 12 β‘‚ 1 β€”
JavaScript
Related Topics
#llm#developer-tools#claude-code#ai#mcp#rag#cli#token-optimization#ai-tools#claude#ai-agents#prompt-engineering

Β© 2026 GitRepoTrend Β· GitHub repositories by topic Β· Updated weekly