context-reset-handler

Community

Graceful resets that preserve session progress.

AuthorCheggin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Detect context window limits and perform clean resets with structured handoff documents for session continuity.

Core Features & Use Cases

  • Monitor token usage during agent execution and trigger a reset at 80% capacity to prevent failures.
  • Generate a handoff document at .harness/handoffs/{agent-id}-{timestamp}.md with four sections: Objective, Completed, In Progress, and Next Steps.
  • Stop the current agent session gracefully and start a new session with the handoff injected as initial context via a PostStart hook.
  • Read open GitHub Issues and recent PR comments to rebuild broader project context.
  • Validate handoff quality by ensuring all four sections are non-empty and include concrete references (file paths, issue numbers).

Quick Start

Trigger a graceful session reset when 80% of context is used and load the resulting handoff as the initial context for the next session.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: context-reset-handler
Download link: https://github.com/Cheggin/request-for-startups/archive/main.zip#context-reset-handler

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.