Armory
Source

Browse

Search and filter by type across the catalog

134 results in Hooks · page 2 of 6

HooksPreview

context-timeline

Real-time browser visualization of Claude Code's context window and subagent/tool execution as a git-graph timeline. Opens http://localhost:7878 on SessionStart with a vertical timeline (most recent on top), one column per agent (main + subagents branching from their Task tool call). Tool calls are color-coded by type (Read=green, Edit/Write=orange, Bash=red, Grep/Glob=cyan, Task=purple, Web=yellow, MCP=gray). Right sidebar shows context-window usage (tokens/200K) with cache_read/cache_creation/input/output breakdown plus per-subagent mini-context. Reads ~/.claude/projects/<encoded-cwd>/<session_id>.jsonl directly — no data replication, no network calls. Pure stdlib Python, zero pip dependencies. Persistent daemon HTTP server on port 7878 (auto-fallback 7879-7888 if busy; override with CONTEXT_TIMELINE_PORT env var). Watchdog auto-shutdown after 1h of inactivity. Disable browser auto-open with CONTEXT_TIMELINE_NO_BROWSER=1. Manual shutdown: python3 .claude/hooks/context-timeline.py --shutdown

UnrankedNo signals yet
Harnessclaude
monitoringhooks
Details
HooksPreview

context-timeline-2

context-timeline: Claude Code session visualizer. Modes (called by Claude Code hooks via stdin JSON): --server-start SessionStart hook — launch daemon + open browser --event <NAME> PreToolUse / PostToolUse / Stop hook — notify server --shutdown Kill daemon manually --run-server <PORT> Internal: daemon entry point (do not call directly)

UnrankedNo signals yet
Harnessclaude
monitoringhooks
Details
HooksPreview

conventional-commits

Enforce conventional commit message format for all git commits. Validates commit messages follow the pattern: type(scope): description. Supported types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert. Ensures consistent commit history for changelog generation and semantic versioning.

UnrankedNo signals yet
Harnessclaude
githooks
Details
HooksPreview

conventional-commits-2

❌ Invalid commit message format Your message: {commit_msg} Commit messages must follow Conventional Commits: type(scope): description Types: feat: New feature fix: Bug fix docs: Documentation changes style: Code style changes (formatting) refactor: Code refactoring perf: Performance improvements test: Adding or updating tests chore: Maintenance tasks ci: CI/CD changes build: Build system changes revert: Revert previous commit Examples: ✅ feat: add user authentication ✅ feat(auth): implement JWT tokens ✅ fix: resolve memory leak in parser ✅ fix(api): handle null responses ✅ docs: update API documentation Invalid: ❌ Added new feature (no type) ❌ feat:add feature (missing space after colon) ❌ feature: add login (wrong type, use 'feat') 💡 Tip: Start your message with one of the types above followed by a colon and space.

UnrankedNo signals yet
Harnessclaude
githooks
Details
HooksPreview

dangerous-command-blocker

Advanced protection against dangerous shell commands with multi-level security. Blocks catastrophic operations (rm -rf /, dd, mkfs), protects critical paths (.claude/, .git/, node_modules/), and warns about suspicious patterns. Features: catastrophic command blocking, critical path protection, smart pattern detection, and detailed safety messages.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

dangerous-command-blocker-2

Dangerous Command Blocker Hook Multi-level security system for blocking dangerous shell commands

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

debug-window

Auto Debug Log Viewer. Opens a live-tailing debug log window when Claude Code starts with --debug or -d flag. The window closes automatically on session end. To keep the debug window open after session ends, set DEBUG_WINDOW_AUTO_CLOSE_DISABLE=1 in your settings.json. Tested on Intel Mac. Supports macOS, Linux, and Windows (Git Bash/Cygwin). Contributions from other platform users are welcome.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

debug-window-2

Session Hook: Auto Debug Log Viewer

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

dependency-checker

Advanced dependency analysis and security checking. Monitors for outdated packages, security vulnerabilities, and license compatibility.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

deployment-health-monitor

Monitor deployment status, error rates, and performance metrics, sending notifications for failed deployments or performance degradation. Tracks Vercel deployment health, monitors build success/failure rates, and provides alerts for deployment issues. Setup: Export 'export VERCEL_TOKEN=your_token' and 'export VERCEL_PROJECT_ID=your_project_id' (get from vercel.com/account/tokens and Vercel dashboard).

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

desktop-notification-on-stop

Sends a native desktop notification when Claude Code finishes responding. Uses the Stop hook event so you get a single notification per response instead of one per tool call (which is very noisy with PostToolUse). Supports macOS (osascript) and Linux (notify-send). Useful when you switch to another window while Claude works — you'll get a notification when it's ready for your input.

UnrankedNo signals yet
Harnessclaude
monitoringhooks
Details
HooksPreview

discord-detailed-notifications

Send detailed Discord notifications with session information when Claude Code finishes. Includes working directory, session duration, and system info with rich embeds. Requires DISCORD_WEBHOOK_URL environment variable.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

discord-error-notifications

Send Discord notifications when Claude Code encounters long-running operations or when tools take significant time. Helps monitor productivity and catch potential issues with rich embeds. Requires DISCORD_WEBHOOK_URL environment variable.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

discord-notifications

Send Discord notifications when Claude Code finishes working. Requires DISCORD_WEBHOOK_URL environment variable. Get webhook URL from Discord Server Settings -> Integrations -> Webhooks.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

edit-audit-log

Log all file edits to a project-local audit file with timestamps. Records every Edit tool usage to .claude/edit-log.txt for tracking changes across sessions. Requires jq.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

env-file-protection

Prevent writing to .env files using the if condition for lightweight filtering. Blocks any Write tool call targeting .env* files, protecting secrets from accidental overwrites. Uses the if field to avoid spawning a process unless the file pattern matches.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

file-backup

Automatically backup files before editing. Creates timestamped backups in a .backups directory when files are modified.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

file-protection

Protect critical files from accidental modification. Prevents editing of important system files, configuration files, and production code.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

force-push-blocker

Block git force push commands using the if condition for efficient filtering. Prevents accidental force pushes that can overwrite remote history. Covers --force, --force-with-lease, and the -f shorthand.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

format-javascript-files

Automatically format JavaScript/TypeScript files after any Edit operation using prettier. This hook runs 'npx prettier --write' on any .js, .ts, .jsx, or .tsx file that Claude modifies, ensuring consistent code formatting. Uses npx so prettier doesn't need to be globally installed. Includes error suppression so it won't fail if prettier is not available.

UnrankedNo signals yet
Harnessclaude
post-toolhooks
Details
HooksPreview

format-python-files

Automatically format Python files after any Edit operation using black formatter. This hook runs 'black' on any .py file that Claude modifies, ensuring consistent Python code formatting. Requires black to be installed ('pip install black'). The command includes error suppression (2>/dev/null || true) so it won't fail if black is not installed.

UnrankedNo signals yet
Harnessclaude
post-toolhooks
Details
HooksPreview

git-add-changes

Automatically stage changes in git after file modifications for easier commit workflow. This hook runs 'git add' on any file that Claude edits or writes, automatically staging changes for the next commit. Includes error suppression so it won't fail in non-git repositories. Helps streamline the development workflow by preparing files for commit.

UnrankedNo signals yet
Harnessclaude
post-toolhooks
Details
HooksPreview

langsmith-tracing

Automatically send Claude Code conversation traces to LangSmith for monitoring and analysis. Prerequisites: jq (brew install jq on macOS or sudo apt-get install jq on Linux), curl and uuidgen (usually pre-installed), LangSmith account and API key. Configuration: Install langsmith-tracing setting (npx claude-code-templates@latest --setting telemetry/langsmith-tracing) or manually add to .claude/settings.local.json the following environment variables: TRACE_TO_LANGSMITH=true, CC_LANGSMITH_API_KEY=lsv2_pt_..., CC_LANGSMITH_PROJECT=project-name, CC_LANGSMITH_DEBUG=true (optional). How it works: Runs in background on Stop event after each Claude response, reads conversation transcript, converts to LangSmith format, sends to LangSmith API, groups by thread_id for session continuity. Debugging: Check logs at ~/.claude/state/hook.log. Privacy note: System prompts not included in traces.

UnrankedNo signals yet
Harnessclaude
monitoringhooks
Details
HooksPreview

langsmith-tracing-2

#

UnrankedNo signals yet
Harnessclaude
monitoringhooks
Details
Browse · Armory