auditing-context-window-pressure

Audit Claude Code sessions for context-window pressure and prompt-cache drift.

2|Updated May 23, 2026
One-click install
npx skills add https://github.com/rocklambros/rcs --skill auditing-context-window-pressure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auditing-context-window-pressure
Source: https://github.com/rocklambros/rcs/tree/main/skills/workflow/auditing-context-window-pressure
Command: npx skills add https://github.com/rocklambros/rcs --skill auditing-context-window-pressure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you diagnose and reduce context-window pressure in long Claude Code sessions, where slow responses, rising token costs, and cache misses can accumulate unnoticed.

Core Features & Use Cases

  • Session pressure audit: Estimates how full the 200k context window is and whether token-efficient mode is needed.
  • Cache drift diagnosis: Checks prompt-cache hit rate and flags likely causes such as mid-session CLAUDE.md edits or dynamic content leaking into cached prompts.
  • Triage planning: Recommends the cheapest effective fix first, including moving large tool results to files, re-dispatching subagents with summary-only outputs, using /compact, or using /clear as a last resort.
  • Use case: A multi-turn coding or analysis session starts feeling sluggish, and you want a disciplined plan to reclaim performance without throwing away useful context.

Quick Start

Ask Claude to audit your current session for context-window pressure and tell you the first three steps to reduce bloat.

Frequently Asked Questions about auditing-context-window-pressure

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

FAQPage Schema
Why does my Claude Code session slow down and miss the prompt cache over long workflows?

Claude Code session slowdowns and prompt-cache misses often stem from context-window pressure. As a 200k context window fills, token costs rise and response latency increases, a condition this audit diagnoses by checking cache hit rates and measured context usage.

How do I reduce context window bloat during a long multi-turn coding session?

Reduce context window bloat by applying triage steps from a session audit. The most effective approach prioritizes moving large tool results to files, re-dispatching subagents with summary-only outputs, and using /compact to reclaim performance without discarding useful context.

What causes prompt-cache drift in Claude Code and how can I fix it?

Prompt-cache drift is frequently caused by mid-session CLAUDE.md edits or dynamic content leaking into cached prompts. You can fix cache drift by diagnosing these hit rate drops and enforcing CLAUDE.md hygiene to stabilize the cached prompt prefix.

When should I use /compact versus /clear to reclaim context space?

Use /compact to compress existing context into a smaller summary when you need to retain session continuity. Use /clear as a last resort only when the session is too degraded and you need a completely fresh context window for new agent work.

Can I audit my Claude Code context window before starting heavy subagent tasks?

Yes, you can run a pre-flight session pressure audit before dispatching heavy subagent tasks. This checks if token-efficient mode is needed and estimates available space in the 200k context window to prevent mid-task cache misses and slowdowns.