Armory
Source

Browse

Search and filter by type across the catalog

170 results in Hooks, Memory ยท page 4 of 8

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
HooksPreview

lint-on-save

Automatically run linting tools after file modifications. Supports ESLint for JavaScript/TypeScript, Pylint for Python, and RuboCop for Ruby.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

memory-persistence

Lifecycle hook bundle (SessionStart, PreCompact, observation, SessionEnd) that loads prior context and persists session state across compaction.

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hooksmemorylifecycle
Details
HooksPreview

memory-persistence-bundle

Hook bundle: Reference lifecycle hook definitions for ECC memory persistence. The production hook graph is hooks/hooks.json.. Use to persist and reload agent session state across compaction.

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hookmemory-persistence
Details
HooksPreview

nextjs-code-quality-enforcer

Enforce Next.js best practices, proper file structure, component patterns, and TypeScript usage with automated code reviews and suggestions. Validates Next.js App Router conventions, Server/Client component patterns, proper imports, and TypeScript usage. Provides real-time feedback on code quality and adherence to Next.js best practices.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

notification

Run on Claude Code notification events to surface alerts (e.g. text-to-speech, desktop toast).

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

notify-before-bash

Show notification before any Bash command execution for security awareness. This hook displays a simple echo message '๐Ÿ”” About to run bash command...' before Claude executes any bash command, giving you visibility into when system commands are about to run. Useful for monitoring and auditing command execution.

UnrankedNo signals yet
Harnessclaude
pre-toolhooks
Details
HooksPreview

performance-budget-guard

Monitor bundle size and Core Web Vitals metrics during development, blocking deployments that exceed performance budgets with detailed reports. Automatically analyzes Next.js build output, checks bundle sizes against predefined budgets, and provides optimization recommendations. Hook triggers on PostToolUse for build-related operations and file changes that could affect performance.

UnrankedNo signals yet
Harnessclaude
performancehooks
Details
HooksPreview

performance-monitor-2

Monitor system performance during Claude Code operations. Tracks CPU, memory usage, and execution time for performance optimization.

UnrankedNo signals yet
Harnessclaude
performancehooks
Details
HooksPreview

permission-request

Run when a permission dialog is shown, to audit, auto-approve, or deny tool permissions.

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

plan-gate

Planning gate that warns when editing production code without an approved specification. Checks for recent .spec.md files in the project directory (last 14 days). If no spec is found, shows a warning suggesting to create one first. Non-blocking (exit 0) โ€” acts as a reminder, not a hard gate. Supports 16 programming languages. Part of the Spec-Driven Development (SDD) methodology where every implementation should be backed by an approved specification.

UnrankedNo signals yet
Harnessclaude
quality-gateshooks
Details
HooksPreview

plan-gate-2

plan-gate.sh โ€” Warning if implementing code without an approved spec

UnrankedNo signals yet
Harnessclaude
quality-gateshooks
Details
HooksPreview

portable-quality-validator

Portable code quality validator - main handler.

UnrankedNo signals yet
Harnessclaude
hookdecider
Details
Browse ยท Armory