Skip to content
Agent Orchestration
Hook

Hooks

What evanflow runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
evanflow
41916 skills2 agents1 hook

Claude Code

> /plugin marketplace add evanklem/evanflow
> /plugin install evanflow@evanflow

What fires, and when

PreToolUse

  • MatchesBash${CLAUDE_PLUGIN_ROOT}/hooks/block-dangerous-git.sh
Read hooks/hooks.json

Where it lives

  • hooks/block-dangerous-git.shRunsGitHub
    Read the script
    #!/bin/bash
    
    # Fail-closed: if jq is unavailable, block the command rather than allowing it.
    if ! command -v jq &>/dev/null; then
      echo "BLOCKED: jq is not installed — cannot verify command safety. Install jq or remove this hook." >&2
      exit 2
    fi
    
    INPUT=$(cat)
    COMMAND=$(echo "$INPUT" | jq -r '.tool_input.command')
    
    DANGEROUS_PATTERNS=(
      "git push"
      "git reset --hard"
      "git clean -f"
      "git branch -D"
      "git checkout \."
      "git checkout -- \."
      "git restore \."
      "git restore -- \."
      "push --force"
      "reset --hard"
    )
    
    for pattern in "${DANGEROUS_PATTERNS[@]}"; do
      if echo "$COMMAND" | grep -qE "$pattern"; then
        echo "BLOCKED: '$COMMAND' matches dangerous pattern '$pattern'. The user has prevented you from doing this." >&2
        exit 2
      fi
    done
    
    exit 0
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

@evanklem
Ships withevanflow

A TDD-driven iterative feedback loop for software development with Claude Code. 16 cohesive skills + 2 custom subagents walk an idea from brainstorm through implementation, with checkpoints throughout where you stay in control.

41916 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
419
Star history of evanklem/evanflow on GitHub, a chart by star-history.com

More plugins that ship hooks.

oh-my-claudecode

oh-my-claudecode

Splits a complex task across several specialized Claude Code agents working in parallel, then keeps going until the result is checked. You describe what you want in plain language instead of memorizing commands.

84 skills+441k
@yeachan-heo@yeachan-heo
Install Plugin
ouroboros

ouroboros

Turns a rough feature idea into a written spec through guided questions, then has the agent build it and checks the result against that spec. Instead of hand-checking whether the work is finished, you get an automatic evaluation gate that runs in your coding agent.

26 skills+36.4k
@q00@q00
Install Plugin
myclaude

myclaude

A plugin that runs coding tasks through multiple AI backends (Codex, Claude, Gemini, OpenCode) with a structured development workflow, parallel execution, browser automation and multi-session task checkpointing.

11 skills+32.8k
@stellarlinkco@stellarlinkco
Install Plugin
harmonist

harmonist

Coordinates AI agents with mechanical protocol enforcement, a workflow gate, memory validation and a session hook. Includes a catalog of specialist agents and has no runtime dependencies.

199 agents+12.1k
@gammalabtechnologies@gammalabtechnologies
Install Plugin
bernstein

bernstein

Bernstein is a Claude Code plugin for orchestrating AI agents. It adds skills to list and inspect agents, review and approve tasks, create tasks, track costs and budgets, and show alerts for failed or stalled work.

26 skills+41.2k
@sipyourdrink-ltd@sipyourdrink-ltd
Install Plugin
fablize

fablize

A Claude Code plugin that enforces finishing multi-step tasks with evidence and verification at each stage. It works as a procedure for Opus or any Claude model, not as chance.

1 skill+2891
@fivetaku@fivetaku
Install Plugin
super-board

super-board

Autonomous GitHub Project build → QA → review loop for Claude Code. One-line install.

10 skills7 hooks725
@erictechpro@erictechpro
Install Plugin
hello2cc

hello2cc

Adjusts how third-party models behave inside Claude Code so they run closer to a native Opus session, covering subagent lifecycle, session hooks and tool interception. It does not replace your gateway, provider mapping or account setup.

1 agent11 hooks687
@hellowind777@hellowind777
Install Plugin

Questions about the hooks in evanflow.

Which coding agents can use the hooks in evanflow?
The hooks in evanflow install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.