context-degradation

Detect and quantify context degradation patterns in multi-turn agent conversations.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/0xharryriddle/codex-field-kit --skill context-degradation-0xharryriddle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/0xharryriddle/codex-field-kit/tree/main/archive/upstream/chasebuild-agent-skills/context-engineering/skills/context-degradation
Command: npx skills add https://github.com/0xharryriddle/codex-field-kit --skill context-degradation-0xharryriddle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Context degradation undermines agent reliability in long-running conversations by letting central information drift or become inaccessible. This skill provides structured detection and actionable guidance to preserve context integrity.

Core Features & Use Cases

  • Detects Lost-in-Middle patterns and context poisoning signals to highlight at-risk information.
  • Analyzes context structure, attention distribution, and overall health to guide robust design and debugging.
  • Use cases include long multi-turn agent chats, multi-agent orchestration, and production monitoring to sustain performance.

Quick Start

Run the context-degradation analysis on the current session context to surface degradation risk 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 detect context degradation in multi-turn agent conversations?

Context degradation in multi-turn agent conversations is detected by analyzing attention distribution, Lost-in-Middle patterns, and context poisoning indicators. This skill quantifies these degradation risks and provides a health score with actionable recommendations to preserve context integrity.

What causes Lost-in-Middle risk during long-running agent sessions?

Lost-in-Middle risk during long-running agent sessions occurs when central context information drifts or becomes inaccessible to the model's attention. This skill identifies and quantifies these attention distribution patterns to highlight at-risk information in multi-turn workflows.

Can I monitor context poisoning signals in multi-agent workflows?

Yes, you can monitor context poisoning signals in multi-agent workflows using this skill. It applies structured detection to multi-agent orchestration sessions, analyzing context structure to guide debugging and sustain production performance.

How do I analyze attention distribution to debug agent reliability issues?

Attention distribution is analyzed by applying modular detection mechanisms to the current session context. This skill surfaces degradation risks and generates a health score that provides actionable recommendations to debug and preserve agent reliability.

Do I need numpy to run context health analysis on long-running sessions?

Yes, numpy is required as a dependency to run context health analysis on long-running sessions. It supports the underlying numerical computations needed to quantify degradation patterns and calculate the overall context health score.