context-kernel

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

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.

Claude Code
/plugin marketplace add Pinperepette/context-kernel
agentmods
npx agentmods add plugins/pinperepette/context-kernel/claude-context-kernel
Clone the repo
git clone --depth 1 https://github.com/Pinperepette/context-kernel

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
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 yesterday.

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. yesterday 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 1mo 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.