Skip to main content

Cc Safe Setup

Plugin Verified Active

Token consumption guards for Claude Code. Warns on large file reads (100KB+), limits unique file reads per session, estimates token budget, and caps subagent spawns. From 800+ hours of autonomous operation data.

Purpose

To significantly enhance the safety and efficiency of Claude Code during autonomous operation by preventing issues related to token consumption and potentially risky actions.

Features

  • Warns on large file reads (>100KB)
  • Limits unique file reads per session
  • Estimates token budget and warns/blocks exceeding it
  • Caps subagent spawns per session
  • Provides hooks for various safety checks

Use Cases

  • Protecting against accidental large file reads that consume excessive tokens
  • Preventing uncontrolled spawning of subagents
  • Monitoring and managing token usage to avoid unexpected costs
  • Enhancing overall operational safety and stability of Claude Code

Non-Goals

  • Replacing Claude Code's core functionality
  • Directly managing user credentials or secrets
  • Providing AI generation capabilities

Workflow

  1. Install hooks via npm or plugin marketplace
  2. Restart Claude Code to activate hooks
  3. Hooks automatically monitor file reads, agent spawns, and token usage
  4. Warnings or blocks are issued based on configurable thresholds
  5. User adjusts behavior or CLAUDE.md based on hook feedback

Practices

  • Operational safety
  • Token management
  • LLM agent security

Prerequisites

  • jq installed on the system

Documentation

  • info:Configuration & parameter referenceThe README and plugin.json mention configuration variables like CC_READ_BUDGET, CC_MAX_AGENTS, etc., but their default values and precedence order are not explicitly documented.

Invocation

  • info:Hooks-off mechanismThere is no explicit 'hooks-off' mechanism documented for this plugin; disabling hooks would likely require manual removal of configurations.

Installation

First, add the marketplace

/plugin marketplace add yurukusa/cc-safe-setup
/plugin install token-guard@cc-safe-setup

Quality Score

Verified
97 /100
Analyzed about 17 hours ago

Trust Signals

Last commitabout 19 hours ago
Stars25
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.