claude-inspect-context-size

Analyze session context percentage and generate compaction prompts for BitBot sessions.

3|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/ManuelKugelmann/BitBot --skill claude-inspect-context-size
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-inspect-context-size
Source: https://github.com/ManuelKugelmann/BitBot/tree/main/.bitbot/scripts/claude-inspect-context-size
Command: npx skills add https://github.com/ManuelKugelmann/BitBot --skill claude-inspect-context-size

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps Claude manage context usage within a BitBot-enabled workflow by evaluating current context percentage, identifying natural break points, and suggesting safe points to compact. It reduces cognitive load and prevents context exhaustion, saving time across long runs.

Core Features & Use Cases

  • Reads Session Data: Accesses .bitbot/session-env/<session-id>.env to read the current context usage.
  • Analyzes Context: Evaluates the current context percentage and work state to propose optimal break points.
  • Provides Strategies: Gives actionable continuation strategies and compaction prompts to maintain momentum with minimal context loss.
  • Usage Example: When context hits 60%, you get a recommended plan to complete the current task and compact with a clear continuation prompt.

Quick Start

Use the Claude Code command or the shell script to inspect the current context and suggested compaction plan:

  • /claude-inspect-context-size
  • .bitbot/scripts/claude-inspect-context-size/claude-inspect-context-size.sh

Frequently Asked Questions about claude-inspect-context-size

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

FAQPage Schema
How do I check Claude's current context usage during a long session?

Context inspection reads your BitBot session environment to display current context percentage and status. Run `/claude-inspect-context-size` or execute `.bitbot/scripts/claude-inspect-context-size/claude-inspect-context-size.sh` to see real-time usage and identify when compaction is needed.

When should I compact my Claude session context?

Compaction is recommended when context usage reaches natural break points—typically around 60% capacity. The Skill analyzes your work state and suggests optimal moments to compact, preserving momentum while preventing exhaustion across development, testing, and debugging tasks.

What does context compaction do and why is it necessary?

Context compaction consolidates session history into continuation prompts, resetting available tokens while maintaining task continuity. It reduces cognitive load, prevents context exhaustion, and saves time during long development runs by identifying safe break points automatically.

Can I use context inspection in workflows outside BitBot-enabled sessions?

This Skill requires BitBot-enabled sessions and reads session-env data from `.bitbot/session-env/` to function. It's designed specifically for Claude workflows with BitBot integration; standard CLI sessions without this setup cannot access context metrics through this Skill.

How does the Skill generate continuation prompts for context compaction?

After analyzing context percentage and work state, the Skill emits compaction guidance and continuation prompts compatible with the wrapper system. These prompts summarize progress and context, enabling you to resume work seamlessly after compaction without losing task momentum.

What information does context inspection provide beyond usage percentage?

The Skill produces a context usage report classifying status by thresholds, identifies natural break points in your work, and recommends actionable strategies to complete current tasks before compaction. It supports proactive planning and reactive checks across documentation, testing, and debugging workflows.