Skip to content
PluginStats

@claude-flow/hooks weekly downloads statistics

By claude-flow (6 listings) · npm · MCP servers

V3 Hooks System - Event-driven lifecycle hooks with ReasoningBank learning integration

View on npm Fresh · Oct 27, 2026 · data Jul 1, 2026

@claude-flow/hooks has 16,365 recorded weekly downloads on npm.

Weekly downloads
16,365
Official API · Jul 1, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About @claude-flow/hooks

@claude-flow/hooks

npm version npm downloads License: MIT TypeScript Node.js

Event-driven lifecycle hooks with ReasoningBank learning integration for Claude Flow V3

The @claude-flow/hooks package provides a comprehensive hooks system for intercepting and extending Claude Flow operations. It enables intelligent task routing, pattern learning, background metrics collection, and real-time statusline integration.

Features

  • 🎣 Hook Registry - Priority-based hook registration with filtering and management
  • ⚡ Hook Executor - Timeout handling, error recovery, and result aggregation
  • 🤖 Background Daemons - Metrics collection, swarm monitoring, pattern learning
  • 👷 Background Workers - 12 specialized workers for analysis, optimization, and automation
  • 📊 Statusline Integration - Real-time status display for Claude Code
  • 🧠 ReasoningBank Learning - Intelligent task routing based on learned patterns
  • 🔧 MCP Tools - 13 MCP tools for programmatic hooks access
  • 🔄 V2 Compatibility - Backward compatible with V2 hook commands

Installation

# Using npm
npm install @claude-flow/hooks

# Using pnpm
pnpm add @claude-flow/hooks

# Using yarn
yarn add @claude-flow/hooks

Quick Start

Basic Usage
import {
  HookRegistry,
  HookExecutor,
  HookEvent,
  HookPriority,
} from '@claude-flow/hooks';

// Create registry and executor
const registry = new HookRegistry();
const executor = new HookExecutor(registry);

// Register a pre-edit hook
registry.register(
  HookEvent.PreEdit,
  async (context) => {
    console.log(`Editing file: ${context.file?.path}`);
    return { success: true };
  },
  HookPriority.Normal,
  { name: 'log-edits' }
);

// Execute hooks
const result = await executor.preEdit('src/app.ts', 'modify');
console.log(`Hooks executed: ${result.hooksExecuted}`);
Initialize with Daemons
import { initializeHooks } from '@claude-flow/hooks';

// Initialize full system with background daemons
const { registry, executor, statusline } = await initializeHooks({
  enableDaemons: true,
  enableStatusline: true,
});

// Generate statusline
console.log(statusline.generateStatusline());
Using MCP Tools
import { hooksMCPTools, getHooksTool } from '@claude-flow/hooks';

// Get specific tool
const routeTool = getHooksTool('hooks/route');

// Execute routing
const result = await routeTool.handler({
  task: 'Implement user authentication',
  includeExplanation: true,
});

console.log(`Recommended agent: ${result.recommendedAgent}`);
console.log(`Confidence: ${result.confidence}%`);

CLI Commands

Hooks Daemon

Manage background daemon processes for metrics and learning.

# Start daemon with default 60s interval
hooks-daemon start

# Start with custom interval (30 seconds)
hooks-daemon start 30

# Stop daemon
hooks-daemon stop

# Check status
hooks-daemon status

# Run pattern consolidation
hooks-daemon consolidate

# Export learned patterns
hooks-daemon export json

# Rebuild HNSW index
hooks-daemon rebuild-index

# Notify activity (for hook integration)
hooks-daemon notify-activity
Statusline

Generate statusline output for Claude Code integration.

# Display formatted statusline
statusline

# Output JSON data
statusline --json

# Compact JSON (single line)
statusline --compact

# Show help
statusline --help

Example Output:

▊ Claude Flow V3 ● agentic-flow@alpha  │  ⎇ v3
─────────────────────────────────────────────────────
🏗️  DDD Domains    [●●●●●]  5/5    ⚡ 1.0x → 2.49x-7.47x
🤖 Swarm Agents    ◉ [ 5/15]      🟢 CVE 3/3    💾 156 patterns
🔧 Architecture    DDD ●93%  │  Security ●CLEAN  │  Hooks ●ACTIVE
📊 Routing         89% accuracy │  Avg 4.2ms │  1547 operations
─────────────────────────────────────────────────────

Hook Events

EventDescription
PreToolUseBefore any tool execution
PostToolUseAfter tool execution completes
PreEditBefore file modification
PostEditAfter file modification
PreReadBefore file read
PostReadAfter file read
PreCommandBefore shell command execution
PostCommandAfter shell command completes
PreTaskBefore task starts
PostTaskAfter task completes
TaskProgressDuring task execution
SessionStartWhen session begins
SessionEndWhen session ends
SessionRestoreWhen restoring previous session
AgentSpawnWhen agent is spawned
AgentTerminateWhen agent terminates
PreRouteBefore task routing
PostRouteAfter routing decision
PatternLearnedWhen new pattern is learned
PatternConsolidatedWhen patterns are consolidated

Hook Priorities

PriorityValueUse Case
Critical1000Security validation, must run first
High100Pre-processing, preparation
Normal50Standard hooks
Low10Logging, metrics
Background1Async operations, runs last

Background Workers

The hooks system includes 12 specialized background workers that can be triggered automatically or manually dispatched.

Available Workers…

Description from the npm listing.

  • claude-flow
  • hooks
  • daemons
  • statusline
  • reasoningbank
  • mcp
  • agents

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@claude-flow/hooks weekly downloads on npm, last 90 days: 16,365 weekly downloads as of Jul 1, 2026.@claude-flow/hooksWeekly downloads on npm · Last 90 days16,365downloads / weekNo observations recorded in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
@claude-flow/hooks weekly downloads on npm, last 90 days: 16,365 weekly downloads as of Jul 1, 2026.

7/30/90-day growth

@claude-flow/hooks weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@claude-flow/hooksWeekly downloads growth on npm16,365downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Jul 1, 2026pluginstats.com
@claude-flow/hooks weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@claude-flow/hooks has no ranking history on npm yet.@claude-flow/hooksnpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
@claude-flow/hooks has no ranking history on npm yet.

Listing placement

All npm2,577 listings · 129 pages · 1,289 shown · page 44, #15 (overall #875)
All npm: every listing in weekly downloads order

Listing placement

MCP servers342 listings · 18 pages · page 7, #17 (overall #137)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (1)
Recent weekly downloads observations for @claude-flow/hooks
Date (UTC)Weekly downloadsChange vs. previous
16,365—

Similar npm MCP servers plugins

All 20 @claude-flow/hooks alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@claude-flow/hooks. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.