Ryan Malloy 50fd0266c9 Release v1.0.0: Pure Node.js Claude Hooks with Shadow Learning
🚀 Production-ready release of the intelligent hooks system for Claude Code.

## Key Features
- Pure Node.js implementation (no Python dependencies)
- Shadow learning with pattern recognition and confidence scoring
- Auto-configuration via npm postinstall script
- Comprehensive Diátaxis documentation framework
- End-to-end testing and validation

## Package Distribution
- NPM-ready with global CLI binary
- Auto-configures hooks during installation
- Fail-safe design with graceful degradation
- Complete API reference and development docs

## Release Notes
- CHANGELOG.md with comprehensive v1.0.0 details
- CONTRIBUTING.md with development guidelines
- Updated package.json with distribution metadata
- Ready for npm registry publication

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-20 03:16:13 -06:00
test-clone @ 1e169a5d45
2025-07-19 21:03:13 -06:00

Claude Hooks

Intelligent hooks system for Claude Code that provides command validation, session continuity, and learning capabilities using Claude Code's native hooks architecture.

Quick Start

# Install globally via npm
npm install -g claude-hooks

# Initialize hooks
claude-hooks init

# Test installation
claude-hooks test

# Restart Claude Code to activate

Features

🧠 Shadow Learning - Learns from command failures and suggests working alternatives
📊 Context Monitoring - Automatically backs up work before context limits
Smart Validation - Blocks dangerous commands with intelligent suggestions
🔄 Session Continuity - Maintains history and state across Claude restarts

Usage

After installation, Claude Hooks runs automatically:

  • Command Learning: Try pip install requests → suggests pip3 install requests
  • Auto Backup: Triggers before context limits or manually with claude-hooks backup
  • Status Check: Run claude-hooks status to verify installation
  • Manual Test: Use claude-hooks test to verify all components

Commands

claude-hooks init          # Initialize after npm install
claude-hooks status        # Check installation status  
claude-hooks test          # Run test suite
claude-hooks backup        # Create manual backup
claude-hooks uninstall     # Remove hooks configuration
claude-hooks --help        # Show all commands

How It Works

Claude Hooks uses Claude Code's native hook system with four key integration points:

  • UserPromptSubmit: Monitors context usage and triggers backups
  • PreToolUse[Bash]: Validates commands and suggests alternatives
  • PostToolUse[*]: Logs activity and learns from patterns
  • Stop: Finalizes sessions and creates continuation docs

Installation Methods

npm install -g claude-hooks
claude-hooks init

Git (Development)

git clone https://git.supported.systems/rsp2k/claude-hooks.git
cd claude-hooks && ./scripts/install.sh

Documentation

Requirements

  • Node.js 16+ (only runtime required)
  • Claude Code (hooks integrate with Claude's native system)

License

MIT License - see LICENSE for details.


Claude Code Hooks makes your AI assistant smarter by giving it memory, environmental awareness, and the ability to learn from experience.

Description
Intelligent hooks system that makes Claude Code smarter, safer, and more reliable through learning and automation
Readme MIT 311 KiB
Languages
JavaScript 82.3%
Shell 16.3%
Python 1.4%