Skip to content
Productivity
Hook

Hooks

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

From plugin
iterm2-tab-status
403 commands7 hooks

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}/scripts/bootstrap.sh

Notification

  • Matchesidle_prompt|permission_prompt${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh

PreToolUse

  • MatchesAskUserQuestion${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh

PostToolUse

  • MatchesAskUserQuestion${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh

PostToolUseFailure

  • MatchesAskUserQuestion${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh

Stop

  • ${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • ${CLAUDE_PLUGIN_ROOT}/scripts/hook.sh
Read hooks/hooks.json
@jaspersui
Ships withiterm2-tab-status

See what every Claude Code session is doing. Each iTerm2 tab shows a status prefix. โšก running, ๐Ÿ’ค idle, or ๐Ÿ”ด needs attention (with flashing).

Stars on GitHub

Momentum

stars in total
40
Star history of JasperSui/claude-code-iterm2-tab-status 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 hook61k
@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+216k
@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.3k
@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
hey

hey

A command line tool for HEY that lets you read and send email, manage contacts, labels, calendars, todos, habits, time tracking and journal entries from the terminal or from your coding agent.

1 skill1 hook426
@basecamp@basecamp
Install Plugin

Questions about the hooks in iterm2-tab-status.

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