Automic VaultAutomic Vault

brew

claude-hooks を Homebrew でインストール

claude-hooks のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install claude-hooks

local Homebrew formula metadata

概要

パッケージ概要

Hook system for Claude Code

コマンドとエイリアス

  • claude-hooks

履歴

プロジェクトの歴史と使われ方

claude-hooks is a TypeScript-oriented setup tool for Claude Code hooks. Its official README describes it as a CLI that generates `.claude/settings.json` hook configuration and typed TypeScript handler files for Claude Code lifecycle events.

プロジェクトの歴史

The npm package was first published in July 2025, after Claude Code's hook system had become a documented extension point. The project focuses on one friction point in that system: turning JSON hook payloads and shell-command handlers into a typed TypeScript development environment.

The README documents generated files under `.claude/hooks/`, including `index.ts`, `lib.ts`, and `session.ts`, plus `.claude/settings.json`. It also requires Node.js 18+ for the CLI and Bun for running hooks.

採用の歴史

Distribution is source-backed through npm and Homebrew. The npm registry records 32 versions and published version 2.4.0, while Homebrew packages the same 2.4.0 release from the npm registry.

The evidence supports a niche but clear role: claude-hooks is not a general Claude Code replacement; it is a helper for users who are already adopting Claude Code's official hook lifecycle and want TypeScript types and scaffolding.

使われ方

Users run `npx claude-hooks` or install it globally with npm, then run `claude-hooks`. The tool creates Claude Code hook configuration and TypeScript handlers that can inspect typed payloads for events such as PreToolUse, PostToolUse, Notification, and Stop.

The official Claude Code hooks reference documents the underlying event model, including command, HTTP, prompt, and MCP hooks, matcher groups, JSON stdin payloads, and hook decisions. claude-hooks builds on that official mechanism.

パッケージ好きにとっての重要性

claude-hooks is package-nerd interesting because it packages a type layer around an AI-agent lifecycle API. Instead of every team copying shell scripts and JSON snippets, it gives the hook surface a generated project structure and a package-manager install path.

It also shows how fast companion packages formed around Claude Code's configuration files: the package's value is not the hook runtime itself, but the typed developer experience around an official extension point.

タイムライン

  • 2025-07: npm registry records the first `claude-hooks` publication.
  • 2025-08: npm registry records published version 2.4.0 after 32 published versions.
  • 2026: Homebrew formula `claude-hooks` packages version 2.4.0 from the npm registry.

Related projects

  • Claude Code's official hooks system is the extension point claude-hooks configures.
  • Bun is required by the README for running generated hooks.
  • TypeScript is the language layer used for typed payloads and handlers.
  • claude-cmd and Claude Code Templates are related Claude Code configuration companion tools.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.claude/settings.json

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
claude-hookscliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版2.4.0
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/johnlindquist/claude-hooks

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:claude-hooks
バージョン2.4.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/claude-hooks
ホームページhttps://github.com/johnlindquist/claude-hooks
リポジトリhttps://github.com/johnlindquist/claude-hooks
上流ドキュメントhttps://code.claude.com/docs/en/hooks
ライセンスMIT
ソースアーカイブhttps://registry.npmjs.org/claude-hooks/-/claude-hooks-2.4.0.tgz
依存関係node
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameclaude-hooks
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment