Skip to content
Productivity
Hook

Hooks

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

From plugin
hey
4271 skill1 hook

Claude Code

$ npx -y skills add basecamp/hey-cli --agent claude-code

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh
Read hooks/hooks.json

In the plugin's words

How hey describes its own hook set.

hey hooks for HEY integration

Where it lives

  • hooks/session-start.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    # session-start.sh - HEY plugin liveness check
    set -euo pipefail
    
    if ! command -v hey &>/dev/null; then
      cat << 'EOF'
    <hook-output>
    HEY plugin active — CLI not found on PATH.
    Install: https://github.com/basecamp/hey-cli#install
    </hook-output>
    EOF
      exit 0
    fi
    
    auth_json=$(hey auth status --json 2>/dev/null || echo '{}')
    
    if ! command -v jq &>/dev/null; then
      cat << 'EOF'
    <hook-output>
    HEY plugin active.
    </hook-output>
    EOF
      exit 0
    fi
    
    is_auth=false
    if parsed_auth=$(echo "$auth_json" | jq -er '.data.authenticated' 2>/dev/null); then
      is_auth="$parsed_auth"
    fi
    
    if [[ "$is_auth" == "true" ]]; then
      cat << 'EOF'
    <hook-output>
    HEY plugin active.
    </hook-output>
    EOF
    else
      cat << 'EOF'
    <hook-output>
    HEY plugin active — not authenticated.
    Run: hey auth login
    </hook-output>
    EOF
    fi
    

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.

@basecamp
Ships withhey

A CLI and TUI for HEY: your email and calendar, in the terminal and in your coding agent's hands.

Stars on GitHub

Momentum

stars in total
427
Star history of basecamp/hey-cli on GitHub, a chart by star-history.com

More plugins that ship hooks.

i-have-adhd

i-have-adhd

A skill that shapes Claude Code's output for readers with ADHD: it leads with the next action, numbers multi-step work, restates state across turns, drops tangents, gives specific time estimates, and makes progress visible. Invoke it with /i-h.

1 skill1 hook62k
@ayghri@ayghri
Install Plugin
pua

pua

A Claude Code plugin that makes the assistant work harder when it stalls or repeats failures. It adds pressure-style coaching, plus skills for workplace reminders and senior engineer, CTO and team-lead modes for planning and execution.

12 skills+320k
@tanweai@tanweai
Install Plugin
claude-obsidian

claude-obsidian

Turns the sources you read, such as papers, articles and transcripts, into a linked wiki of Markdown notes in Obsidian. Claude keeps sources and citations so every summary can be traced back to its origin.

15 skills+217k
@agricidaniel@agricidaniel
Install Plugin
obsidian-second-brain

obsidian-second-brain

Gives Claude Code a persistent second brain stored as plain markdown in an Obsidian vault. Notes rewrite themselves as new sources arrive, and scheduled agents handle research synthesis and note capture.

1 skill+25.4k
@eugeniughelbur@eugeniughelbur
Install Plugin
arscontexta

arscontexta

A Claude Code plugin that builds a personal knowledge system through conversation, with skills for adding knowledge domains, checking vault health, getting methodology guidance, and evolving the system over time.

10 skills+23.5k
@agenticnotetaking@agenticnotetaking
Install Plugin
pro-workflow

pro-workflow

A Claude Code workflow plugin that learns from your corrections and keeps a self-correcting memory across sessions. It adds skills for agent teams, parallel worktree batch changes, bug capture as GitHub issues, project auto-setup and context compaction.

41 skills+33k
@rohitg00@rohitg00
Install Plugin
engram

engram

Helps you learn any topic with a first-principles curriculum, guided tutoring, and spaced review that schedules free-recall practice. Includes coaching for retention stats and study strategy.

3 skills+21.5k
@nagisanzenin@nagisanzenin
Install Plugin
basecamp-cli

basecamp-cli

Lets you manage Basecamp projects, todos, cards, messages, files and schedules from your terminal or from Claude Code, so you stop switching to the web app for routine updates.

3 skills4 hooks302
@basecamp@basecamp
Install Plugin

Questions about the hooks in hey.

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