A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Claude Code Boost - Hook utilities for Claude Code with intelligent auto-approval
Smart hooks for Claude Code that reduce friction and keep quality high.
npm install -g claude-code-boost
ccb install
See what gets auto-approved and blocked in the sections below.
Prerequisites: Node.js 20+ and Claude Code installed
# Step 1: Install Claude Code Boost globally
npm install -g claude-code-boost
# Step 2: Run the install command to set up the hook
ccb install
The ccb install command guides you through:
Reduces manual approval overhead by automatically approving common safe operations:
npm test, npm build, git commit)curl localhost:3000)npm install, dependency updates)Always blocks destructive system commands (rm -rf /, disk formatting, etc.)
Analyzes conversation transcripts to detect when tests should be run before ending a session:
Simple desktop notifications for Claude Code events:
Utility for processing Claude Code conversation logs:
Claude Code Boost uses Claude Code's hook system to intercept tool calls before execution:
Claude Code Tool Request → CCB Hook → Decision → Execute/Block
# Interactive installation with prompts
ccb install --user
# Non-interactive with API key
ccb install --user --api-key sk-your-api-key-here
# Use project-level settings
ccb install --project-local
CCB uses a configuration file located at ~/.ccb/config.json (or $CCB_CONFIG_DIR/config.json):
{
"log": true, // Enable/disable approval logging
"cache": true, // Enable/disable approval caching (default: true)
"apiKey": "sk-..." // Anthropic API key (optional)
}
Configuration Options:
log (boolean, default: true): Controls whether approval decisions are logged to ~/.ccb/approval.jsonlcache (boolean, default: true): Controls intelligent caching of approval decisions to avoid redundant AI callsapiKey (string, optional): Anthropic API key for direct API access (overrides ANTHROPIC_API_KEY environment variable)Caching Behavior:
ccb debug clear-approval-cache# Disable caching if needed
echo '{"log": true, "cache": false}' > ~/.ccb/config.json
# Clear approval cache
ccb debug clear-approval-cache
npm test, npm build, git commitcurl http://localhost:3000docker build, docker runnpm install, yarn addrm -rf /, rm -rf /usrmkfs, destructive fdisk# Test safe operation approval
echo '{"session_id":"test","transcript_path":"/tmp/test","tool_name":"Read","tool_input":{"file_path":"/etc/hosts"}}' | ccb auto-approve-tools
# Expected: {"decision":"approve","reason":"Read is a safe read-only operation"}
# Test dangerous operation blocking
echo '{"session_id":"test","transcript_path":"/tmp/test","tool_name":"Bash","tool_input":{"command":"rm -rf /"}}' | ccb auto-approve-tools
# Expected: {"decision":"block","reason":"..."}
# Test notification system
echo '{"session_id":"test","transcript_path":"/tmp/test","cwd":"/tmp","hook_event_name":"Notification","message":"Test notification from CCB"}' | ccb notification
# Test Stop hook (requires transcript file)
echo '{"session_id":"test","transcript_path":"/path/to/transcript.jsonl","cwd":"/tmp","stop_hook_active":false}' | ccb enforce-tests
# Clear approval cache
ccb debug clear-approval-cache
# View current config
cat ~/.ccb/config.json
# View approval logs
tail -f ~/.ccb/approval.jsonl
# View cached decisions
cat ~/.ccb/approval_cache.json
Claude Code Boost aims to make Claude Code more practical for daily development work by reducing friction in common workflows.
This is an early-stage project that solves real workflow friction. Contributions and feedback are welcome as we figure out what developers actually need from Claude Code automation.
MIT License - see LICENSE file for details.
npm install -g claude-code-boost && ccb install
MCP server plugin for voice input and output in Claude Code
Intelligent prompt improver hook for Claude Code. Type vibes, ship precision.
Give Claude Code memory that evolves with your codebase via hooks and LLM-compiled knowledge
Blocks dangerous git and shell commands from being executed by AI coding agents