Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By viktorbezdekv1.0.11MITIn 1 marketplace
Diagnoses why LLM agents degrade as context grows and matches symptoms to lost-in-middle, poisoning, distraction, confusion or clash patterns. Includes model-specific degradation thresholds, which it says come from the RULER benchmark and cover Claude 4.5, GPT-5.2 and Gemini 3.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
v1.0.11 | Context Engineering | 5 iterations
Diagnose and fix the predictable failure patterns that cause LLM agents to produce incorrect, irrelevant, or contradictory outputs as context grows -- lost-in-middle, poisoning, distraction, confusion, and clash patterns with empirical thresholds by model. Single skill + 1 reference document | 13 trigger evals, 3 output evals
AI agents degrade in predictable but invisible ways as their context grows. A coding agent that works flawlessly at turn 10 starts producing irrelevant outputs at turn 60. A retrieval system that finds the right answer in short documents misses it when the document grows to 30 pages. An agent that correctly follows instructions with one task loses track when juggling three. These failures are not random -- they follow specific, documented patterns -- but most teams treat them as mysterious quality problems.
The core issue is that context degradation is a continuum, not a binary state. Performance does not suddenly drop from "works" to "broken." It erodes gradually: 10-40% lower recall for information placed in the middle of context. A single irrelevant document reducing performance by a measurable step function. Hallucinations that persist because poisoned context creates feedback loops reinforcing incorrect beliefs. Teams that do not understand these patterns cannot diagnose them, and resort to cargo-cult solutions like "just use a bigger context window" -- which often makes things worse.
The cost of undiagnosed degradation compounds. An agent operating at 60% of its potential wastes 40% of the tokens spent on it. A team that does not recognize context poisoning spends hours debugging symptoms while the root cause -- a single hallucinated fact early in the conversation -- continues to corrupt every subsequent output.
This plugin provides a systematic taxonomy of five context degradation patterns -- lost-in-middle, context poisoning, context distraction, context confusion, and context clash -- with empirical benchmarks, model-specific degradation thresholds, and concrete architectural mitigations for each pattern. Rather than treating degradation as a vague quality problem, it gives you a diagnostic framework: observe the symptom, match it to a pattern, apply the specific fix.
The skill includes empirical data from the RULER benchmark and model-specific thresholds showing where degradation begins and where it becomes severe for Claude 4.5, GPT-5.2, and Gemini 3. It provides a four-bucket mitigation strategy (Write, Select, Compress, Isolate) and counterintuitive research findings -- like shuffled haystacks outperforming coherent ones, and single distractors having outsized impact. This turns degradation diagnosis from guesswork into engineering.
| Without this plugin | With this plugin |
|---|---|
| Agent quality drops at turn 60 and nobody knows why | Recognize lost-in-middle pattern: critical info placed in attention dead zone; reposition to beginning or end |
| Hallucinations persist despite corrections and compound over turns | Identify context poisoning: a single hallucinated fact early in conversation creates feedback loop; truncate to before poisoning point |
| Adding retrieved documents makes the agent worse, not better | Understand distraction: even one irrelevant document triggers a step-function performance drop; filter before loading |
| "Just use a bigger context window" is the default fix for everything | Know that larger contexts often hurt: degradation onset varies by model (64K for GPT-5.2, 100K for Claude Opus 4.5) |
| Agent mixes up instructions from different tasks in the same session | Recognize context confusion: multi-task sessions require explicit task segmentation and context isolation |
| No way to tell if context quality is degrading until outputs are clearly wrong | Monitor degradation thresholds: model-specific onset points and the four-bucket mitigation strategy |
The more precisely you describe your degradation symptoms, the more targeted the diagnosis. Vague descriptions ("my agent is getting worse") activate the skill but produce generic guidance. Specific descriptions activate pattern-matching against the five degradation types and generate concrete mitigations.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub viktorbezdek/skillstack --plugin context-degradation