$ recombobulate _
~/recombobulate $ tip --list --tag="hooks"

// 12 tips tagged "hooks"

0
Run Setup Scripts on Every Session with the SessionStart Hook

The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.

bagwaa @bagwaa · 27 minutes ago
0
Filter Test Output with a PreToolUse Hook to Cut Token Costs

A PreToolUse hook can intercept test runner commands and filter output to show only failures, cutting thousands of tokens from Claude's context.

bagwaa @bagwaa · 1 hour ago
0
Use --init-only to Run Setup Hooks Without Starting a Session

Run Claude Code's initialization hooks and exit immediately, reusing your hook infrastructure for CI setup and environment preparation without starting a session.

bagwaa @bagwaa · 1 hour ago
0
Use Prompt Hooks to Let Claude Guard Its Own Tool Calls

Use prompt hooks to evaluate tool calls with an LLM instead of bash scripts, describing your safety policies in plain English rather than brittle regex patterns.

bagwaa @bagwaa · 1 hour ago
0
Use HTTP Hooks to Send Webhooks on Tool Execution

Send POST requests to external services on every tool call using HTTP hooks, with header authentication and the ability to block actions from a remote endpoint.

bagwaa @bagwaa · 1 hour ago
0
Block Dangerous Commands Before They Run with PreToolUse Hooks

The PreToolUse hook fires before every tool call and supports blocking via exit code 2, letting you write custom scripts that intercept dangerous commands before Claude executes them.

bagwaa @bagwaa · 3 hours ago
0
Use the FileChanged Hook to Reload Environment Variables Automatically

Attach a FileChanged hook to your .envrc or .env file so Claude Code automatically reloads your environment variables the moment it edits them.

bagwaa @bagwaa · 4 hours ago
0
Connect the Slack MCP Server for Team Notifications

Add the Slack MCP server to let Claude post deployment updates, incident alerts, or standup summaries directly to your channels.

bagwaa @bagwaa · 7 hours ago
1
Play a Sound When Claude Finishes with a Stop Hook

Configure a Stop hook to play a system sound the moment Claude finishes, so you can step away without constantly checking the terminal.

bagwaa @bagwaa · 11 hours ago
0
Set Up lint-staged and Husky Pre-commit Hooks

Ask Claude to set up lint-staged and Husky for your project — it handles the config, hook files, install commands, and the edge cases you'd otherwise debug for an hour.

bagwaa @bagwaa · 12 hours ago
0
Use Claude for Pre-Commit Code Reviews

You don't need a teammate to catch issues before committing — pipe your diff to Claude for a fast, targeted review.

bagwaa @bagwaa · 16 hours ago
0
Automate Repetitive Tasks with Hooks

Claude Code hooks let you run shell commands automatically before or after tool calls.

bagwaa @bagwaa · 4 days ago