context-degradation

Diagnose context degradation patterns in long conversations with empirical thresholds.

10|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/viktorbezdek/skillstack --skill context-degradation-viktorbezdek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/viktorbezdek/skillstack/tree/main/context-degradation/skills/context-degradation
Command: npx skills add https://github.com/viktorbezdek/skillstack --skill context-degradation-viktorbezdek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagnosing context degradation patterns that erode agent performance in long conversations, including lost-in-middle, poisoning, distraction, and clash.

Core Features & Use Cases

  • Detect and categorize degradation patterns (lost-in-middle, context poisoning, distraction, context confusion, and context clash) with empirical thresholds.
  • Provide actionable mitigation guidance (compaction, masking, partitioning, and isolation) and integration notes with context-engineering practices.
  • Use cases include debugging prolonged chats, evaluating retrieval-heavy workflows, and designing robust multi-agent systems.

Quick Start

Run the diagnostic workflow on a long-context session to identify degradation patterns and recommended mitigations.

Frequently Asked Questions about context-degradation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose context degradation in long-running agent conversations?

Run a diagnostic workflow on long-context sessions to identify degradation patterns like lost-in-middle, poisoning, and distraction using empirical thresholds. This process categorizes specific failure points where agent accuracy erodes during prolonged chats.

What are the most common context degradation patterns that reduce LLM accuracy?

Common context degradation patterns include lost-in-middle, context poisoning, distraction, context confusion, and context clash. These issues typically arise in multi-source retrieval scenarios and prolonged debugging sessions, progressively reducing the model's ability to maintain accuracy.

How do I mitigate lost-in-middle and context poisoning issues in retrieval workflows?

Mitigate lost-in-middle and context poisoning by applying architectural strategies like compaction, masking, partitioning, and isolation. These techniques restructure context delivery to prevent irrelevant or conflicting information from degrading agent performance.

When should I use context partitioning and isolation for multi-agent systems?

Use context partitioning and isolation when designing robust multi-agent systems that suffer from context clash or confusion. These strategies are prescribed when empirical thresholds detect performance erosion caused by overlapping or conflicting contexts.

Does this approach work for debugging prolonged chats and evaluating retrieval-heavy workflows?

Yes, this approach works for debugging prolonged chats and evaluating retrieval-heavy workflows by diagnosing context degradation patterns. It provides empirical thresholds for detection and actionable mitigation guidance tailored for long-running scenarios.