By pinperepette
context-kernel: proiezione del contesto answer-preserving per Claude Code (compressione con canary, repo slice con budget automatico, pipeline di verifica).
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub pinperepette/context-kernelPipeline 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: guardia PreToolUse sugli Edit dei file citati, sopravvive all'auto-compact (snapshot PreCompact + reiniezione), T4 verifica adversarial + A/B campionato di answer-invariance sul traffico reale + minimalita' empirica (ddmin/delta debugging: dato un oracolo pass/fail, isola il ripro 1-minimale, gemello operativo della sufficiency oracle), T5 miner della rilevanza rivelata dal transcript. Zero chiavi API, zero dipendenze, stdlib-only.
Via selectionis: of everything the repository affords, only the task-indexed path is lit. The rest is not deleted — it remains as roots, omnia possibilia, one page fault away. Solum quod refert, manet.
Context engineering for Claude Code, Codex and AI coding agents: task-induced context optimization with measured answer preservation.
context-kernel is an open-source context engineering framework for coding agents: repositories and tool outputs get projected onto task-equivalent working sets, cutting token usage — measurably — without changing what the agent can answer.
Modern coding agents waste most of their context window on information that is irrelevant to the current task. context-kernel — a native Claude Code plugin, with a Pi port, a Codex fallback and MCP tools any AI coding assistant can call — reduces that context while preserving the agent's ability to solve the task: the repository is projected onto a representative of its equivalence class with respect to the task. Deterministic, stdlib-only, zero API keys — and every claim below is measured, not estimated, and reproducible from this repository.
"There is no such thing as the context" is not a slogan: there is no task-independent context. A context only exists with respect to a task, and the task is what induces the projection (the model). context-kernel is one implementation; the underlying idea — task-induced context projection — is independent of Claude Code and applies to local or hosted coding agents alike.
This is not compression. gzip makes text smaller and unreadable; normalization maps a context to a canonical, smaller member of the same answer-equivalence class. The output is still code, still readable, still sufficient — by construction where possible, by measurement everywhere else.
One real measured case (Django, from the sufficiency benchmark):
Repository: Django — 2,972 source files
│
▼ task-induced projection (the symptom: one traceback)
Task state: 44 files (−98.5% of the repository)
│
▼
Agent solves the same bug — sufficiency verified: the raise site
is in the working set for 60/60 real fault cases
The whole project is this arrow, made deterministic, measured, and safe to rely on (how).
Claude Code, native plugin — no API key, no config, nothing to sign up for:
/plugin marketplace add pinperepette/context-kernel
/plugin install context-kernel
The hooks now normalize tool outputs automatically. You'll see a
[context-kernel: …] footer on long outputs and the cumulative savings in the
status line; confirm it's live with /hooks and /plugin.
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Official marketplace for gstack — AI engineering workflow skills, code review, QA browser automation, and shipping tools for Claude Code.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering