guard

Official

Auto-prune sessions to prevent compaction

AuthorRuya-AI
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill runs a background sentinel that monitors Claude Code session size and proactively prunes bloat so that auto-compaction does not discard critical agent team state or waste token budget.

Core Features & Use Cases

  • Continuous checkpointing: saves team state to disk at configurable intervals to enable safe reloads.
  • Threshold-driven pruning: applies soft trims at a soft threshold and full prescriptions plus optional auto-reload at a hard threshold.
  • Reactive overflow recovery: file-watcher detects rapid inbox floods and applies escalating prescriptions with a circuit breaker to prevent recovery loops.
  • Use Case: Protect long-running Agent Teams from losing TeamCreate, SendMessage, and task state during Claude Code auto-compaction.

Quick Start

Start the guard daemon in the background with a 50MB threshold and a 30 second checkpoint interval to protect agent teams.

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: guard
Download link: https://github.com/Ruya-AI/cozempic/archive/main.zip#guard

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 223,000+ vetted skills library on demand.