context-kernel

context-kernel is a plugin for Claude Code from Pinperepette/context-kernel. Its manifest loads nothing; the 6 skills, 8 commands, 3 agents, 6 hooks, 1 MCP server it bundles cost 1,067 tokens per session together, scanned A, original, MIT.

A context-management pipeline that compresses tool output and selects the repository code most relevant to the current problem. It can restore stored details when needed and lets a command bypass compression.

In plain words
What is it for?
It helps agents investigate failing tests or command errors, focus on relevant files and symbols, and retrieve earlier tool output during a session.
Why use it?
It reduces the amount of information an agent must handle while keeping important signals available. It also avoids guessing when code references cannot be resolved and can fall back to the original output after repeated failures.

Plugin for Claude Code

Written for Claude Code: PreToolUse hook event.

Good fit It helps agents investigate failing tests or command errors, focus on relevant files and symbols, and retrieve earlier tool output during a session.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add Pinperepette/context-kernel
/plugin install context-kernel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Pinperepette/context-kernel

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-kernel

README.md
[![agentmods](https://agentmods.dev/badge/plugins/pinperepette/context-kernel/claude-context-kernel/github.svg)](https://agentmods.dev/plugins/pinperepette/context-kernel/claude-context-kernel)
Your own site
<a href="https://agentmods.dev/plugins/pinperepette/context-kernel/claude-context-kernel"><img src="https://agentmods.dev/badge/plugins/pinperepette/context-kernel/claude-context-kernel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-kernel

Your own site · 80×15
<a href="https://agentmods.dev/plugins/pinperepette/context-kernel/claude-context-kernel"><img src="https://agentmods.dev/badge/plugins/pinperepette/context-kernel/claude-context-kernel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 6 skills, 8 commands, 3 agents, 6 hooks, 1 MCP server cost 1,067 tokens a session between them.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

context-kernel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-context-kernel/.claude-plugin/plugin.json · 18 lines

How it starts

The opening of the file, as written. The whole thing — 18 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "name": "context-kernel",
  "description": "Pipeline P_Q di proiezione del contesto: T1 compressione signal-preserving degli output dei tool (canary end-to-end con auto-degrade: dopo N violazioni updatedToolOutput nella sessione, raw pass-through; auto-heal su evidenza dal transcript: auto-ack dei failure transitori dopo M verified consecutive e un-degrade a sonda — 1 output comprimibile ogni K ripassa dal flusso normale, M sonde verificate consecutive tolgono il degrado, mai a tempo, code-aware sui sorgenti, JSON-aware sugli output MCP, page fault su elisione con recall mirato e recall storage di sessione (recall --search: grep su tutti gli output parcheggiati), escape per-comando # ck:raw), T2 slice deterministico del repository dal sintomo (budget automatico, AMBIENTALE: traceback nel prompt o test falliti nell'output Bash -> manifest iniettato; cambio-task dichiarato col diff dei manifest; resolver supervisionato dei riferimenti dinamici: import_module/__import__ con argomento letterale -> seed col call site, il resto punto cieco dichiarato, mai indovinato; slice formale a simbolo su budget insoddisfacibile: Python esatto via AST, Go conservativo via tokenizer con fallback al file intero su split infido; oracle di sufficienza deterministico: la proiezione e' sufficiente sse contiene la chiusura answer-preserving dei seed, altrimenti i file droppati dal budget sono dichiarati page fault attesi; grafo generico promosso a preciso dall'indice ctags se il repo lo shippa: archi simbolo->definitore univoco, zero dipendenze, ambiguo saltato; prior da accoppiamento evolutivo git: i file che co-cambiano coi seed nella storia diventano seed additivi, segnale cold-start ortogonale a T5; prior di copertura: consuma .coverage/coverage.xml/lcov.info se presenti (stdlib, zero dip) e aggiunge come seed i file ESEGUITI fuori dalla chiusura statica = reachability dinamica che il grafo perde, troppi -> dichiarati non seminati), T3 carta del task con vincoli citati — ATTIVA: gua

Read the full file on GitHub · 18 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 18 lines scan A d602c7b498f3

Subscribe to this mod's changes

context-kernel is a plugin published in the GitHub repository Pinperepette/context-kernel (24 stars, last pushed 2mo ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.