pinperepette/context-kernel — explained in plain English
Analysis updated 2026-05-18
Reduce how much context a Claude Code session uses on a large repository without losing the ability to solve the task.
Install a native Claude Code plugin that automatically narrows a repository down to a task relevant working set.
Call into the same context reduction logic from other AI coding assistants through its MCP interface.
Benchmark how well a context reduction approach preserves the ability to actually fix real bugs.
| pinperepette/context-kernel | 0c33/agentic-ai | adennng/stock_strategy_lab | |
|---|---|---|---|
| Stars | 14 | 14 | 14 |
| Language | Python | Python | Python |
| Setup difficulty | easy | hard | hard |
| Complexity | 3/5 | 4/5 | 4/5 |
| Audience | developer | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Runs entirely on Python's standard library with zero external dependencies or API keys.
Context kernel is a tool built for AI coding assistants like Claude Code, aimed at solving a common problem, these agents often waste a large part of their limited context window on information that has nothing to do with the task at hand. Instead of giving the assistant an entire repository or every tool output, this project narrows things down to just the files and information that actually matter for the specific task being solved. The core idea is that what counts as relevant context always depends on the task itself. There is no single fixed set of files that matters, it changes based on what you are trying to fix or build. Context kernel takes a repository and the tool outputs an agent has already produced, and reduces them down to a smaller, focused set that still contains everything needed to answer correctly. The project describes this as different from simple compression, since the output stays in its original, readable form rather than becoming shorter but harder to understand. The project reports specific measured results rather than estimates. On one full real world coding session it reduced total token usage by 79 percent from start to finish. On two separate test sets built from real bugs in the pandas and Django codebases, it kept the piece of code needed to actually fix the bug inside the reduced working set 100 percent of the time across 120 combined test cases. It also ships with several hundred automated tests covering this behavior across Linux, Windows, and macOS. Context kernel works as a native plugin for Claude Code, with support for Codex and a general purpose interface called MCP that other AI coding assistants can call into as well. It runs using only Python's standard library, meaning it needs no extra installed dependencies and makes no calls to any external API or paid service, so everything it does happens locally within your own coding session.
A Claude Code plugin that trims a repository and its tool outputs down to just what a specific coding task needs, cutting token usage without losing answers.
Mainly Python. The stack also includes Python, Claude Code, MCP.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.