Skip to content
Claude Code Mods

Hook events

Every event Claude Code's function hooks name, and which entries in the directory list each one.

Note

Event names come from Anthropic's type declarations at commit a92ea1c (Claude Code 2.1.277), read on 2026-09-21. Which entries use an event is as each entry's listing names it, not checked against its code. Entries marked Community listing come from a third party and are not published by Anthropic. This page does not say what an event does: neither the catalog nor this list records that, so read the entry's page or the declarations before relying on an event.

Mods are early access. Hooks modules load only where function hooks are enabled, and the API they are written against may change between releases without notice.

Every hook event

Function hooks name 125 events: 38 engine, 54 calls on $ and 33 classic. A classic hook plugin lists a classic event by its plain name, such as PreToolUse; function hooks name the same event classic.PreToolUse. New to mods? Start with what a mod is.

Matches part of an event name, or the name of an entry that lists it.

125 events in 3 families. Open one, or filter to see matches right away.

Engine (38)

agent

agent.offer

Declared at line 3323 (opens in a new tab) of Anthropic's type declarations.

agent.spawn

Declared at line 3332 (opens in a new tab) of Anthropic's type declarations.

attribution

attribution.text

Declared at line 3497 (opens in a new tab) of Anthropic's type declarations.

command

command.describe

Declared at line 3451 (opens in a new tab) of Anthropic's type declarations.

command.run

Declared at line 3439 (opens in a new tab) of Anthropic's type declarations.

config

config.describe

Declared at line 3475 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

config.set

Declared at line 3463 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

engine

engine.create

Declared at line 3618 (opens in a new tab) of Anthropic's type declarations.

plugin

plugin.register

Declared at line 3586 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

prompt

prompt.attachment

Declared at line 3413 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

prompt.context

Declared at line 3401 (opens in a new tab) of Anthropic's type declarations.

prompt.edit

Declared at line 3377 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

prompt.fill

Declared at line 3353 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

prompt.section

Declared at line 3389 (opens in a new tab) of Anthropic's type declarations.

prompt.submit

Declared at line 3341 (opens in a new tab) of Anthropic's type declarations.

prompt.suggest

Declared at line 3365 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session

session.attach

Declared at line 3545 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.compact

Declared at line 3533 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.detach

Declared at line 3550 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.end

Declared at line 3574 (opens in a new tab) of Anthropic's type declarations.

session.measure

Declared at line 3562 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.receive

Declared at line 3521 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.start

Declared at line 3509 (opens in a new tab) of Anthropic's type declarations.

skill

skill.prompt

Declared at line 3486 (opens in a new tab) of Anthropic's type declarations.

tool

tool.call

Declared at line 3222 (opens in a new tab) of Anthropic's type declarations.

tool.check

Declared at line 3234 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

tool.describe

Declared at line 3427 (opens in a new tab) of Anthropic's type declarations.

turn

turn.complete

Declared at line 3609 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

turn.start

Declared at line 3591 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

turn.step

Declared at line 3600 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui

ui.focus

Declared at line 3312 (opens in a new tab) of Anthropic's type declarations.

ui.input

Declared at line 3270 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.message

Declared at line 3288 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.press

Declared at line 3261 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.render

Declared at line 3243 (opens in a new tab) of Anthropic's type declarations.

ui.resolve

Declared at line 3252 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.scroll

Declared at line 3300 (opens in a new tab) of Anthropic's type declarations.

ui.select

Declared at line 3279 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

Calls on $ (54)

agent

agent.list

Declared at line 5577 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

agent.register

Declared at line 5582 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

audio

audio.play

Declared at line 5481 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

audio.speak

Declared at line 5489 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

clock

clock.after

Declared at line 5711 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

clock.every

Declared at line 5716 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

clock.now

Declared at line 5701 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

clock.sleep

Declared at line 5706 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

command

command.list

Declared at line 5565 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

command.register

Declared at line 5569 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

config

config.list

Declared at line 5573 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

env

env.get

Declared at line 5738 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

env.set

Declared at line 5745 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs

fs.ancestors

Declared at line 5674 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs.exists

Declared at line 5660 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs.list

Declared at line 5654 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs.read

Declared at line 5640 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs.stat

Declared at line 5667 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

fs.write

Declared at line 5647 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

http

http.fetch

Declared at line 5720 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

mcp

mcp.call

Declared at line 5493 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

model

model.classify

Declared at line 5468 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

model.complete

Declared at line 5464 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

model.fork

Declared at line 5476 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

process

process.run

Declared at line 5727 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

prompt

prompt.read

Declared at line 5553 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session

session.authorize

Declared at line 5539 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.cwd

Declared at line 5501 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.id

Declared at line 5517 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.messages

Declared at line 5521 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.model

Declared at line 5509 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.repo

Declared at line 5525 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.root

Declared at line 5505 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.surface

Declared at line 5531 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.surfaces

Declared at line 5535 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.turns

Declared at line 5513 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

session.usage

Declared at line 5543 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

settings

settings.read

Declared at line 5734 (opens in a new tab) of Anthropic's type declarations.

store

store.delete

Declared at line 5691 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

store.get

Declared at line 5678 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

store.keys

Declared at line 5697 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

store.set

Declared at line 5684 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

tool

tool.list

Declared at line 5557 (opens in a new tab) of Anthropic's type declarations.

tool.register

Declared at line 5561 (opens in a new tab) of Anthropic's type declarations.

turn

turn.abort

Declared at line 5547 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui

ui.blit

Declared at line 5635 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.close

Declared at line 5626 (opens in a new tab) of Anthropic's type declarations.

ui.invalidate

Declared at line 5614 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.log

Declared at line 5600 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.notice

Declared at line 5607 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.open

Declared at line 5621 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.panes

Declared at line 5630 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.status

Declared at line 5593 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

ui.toast

Declared at line 5586 (opens in a new tab) of Anthropic's type declarations.

No entry in this directory lists it.

Classic (33)

classic

classic.ConfigChange

Declared at line 1590 (opens in a new tab) of Anthropic's type declarations.

classic.CwdChanged

Declared at line 3019 (opens in a new tab) of Anthropic's type declarations.

classic.DirectoryAdded

Declared at line 3025 (opens in a new tab) of Anthropic's type declarations.

classic.Elicitation

Declared at line 3152 (opens in a new tab) of Anthropic's type declarations.

classic.ElicitationResult

Declared at line 3165 (opens in a new tab) of Anthropic's type declarations.

classic.FileChanged

Declared at line 3914 (opens in a new tab) of Anthropic's type declarations.

classic.InstructionsLoaded

Declared at line 4604 (opens in a new tab) of Anthropic's type declarations.

classic.MessageDisplay

Declared at line 5005 (opens in a new tab) of Anthropic's type declarations.

classic.Notification

Declared at line 5330 (opens in a new tab) of Anthropic's type declarations.

classic.PermissionDenied

Declared at line 6008 (opens in a new tab) of Anthropic's type declarations.

classic.PermissionRequest

Declared at line 6036 (opens in a new tab) of Anthropic's type declarations.

classic.PostCompact

Declared at line 6240 (opens in a new tab) of Anthropic's type declarations.

classic.PostModelSwitch

Declared at line 6249 (opens in a new tab) of Anthropic's type declarations.

classic.PostToolBatch

Declared at line 6290 (opens in a new tab) of Anthropic's type declarations.

classic.PostToolUse

Declared at line 6316 (opens in a new tab) of Anthropic's type declarations.

classic.PostToolUseFailure

Declared at line 6302 (opens in a new tab) of Anthropic's type declarations.

classic.PreCompact

Declared at line 6329 (opens in a new tab) of Anthropic's type declarations.

classic.PreModelSwitch

Declared at line 6335 (opens in a new tab) of Anthropic's type declarations.

classic.PreToolUse

Declared at line 6420 (opens in a new tab) of Anthropic's type declarations.

classic.SessionEnd

Declared at line 8703 (opens in a new tab) of Anthropic's type declarations.

classic.SessionStart

Declared at line 8985 (opens in a new tab) of Anthropic's type declarations.

classic.Setup

Declared at line 9117 (opens in a new tab) of Anthropic's type declarations.

classic.Stop

Declared at line 9252 (opens in a new tab) of Anthropic's type declarations.

classic.StopFailure

Declared at line 9245 (opens in a new tab) of Anthropic's type declarations.

classic.SubagentStart

Declared at line 9371 (opens in a new tab) of Anthropic's type declarations.

classic.SubagentStop

Declared at line 9377 (opens in a new tab) of Anthropic's type declarations.

classic.TaskCompleted

Declared at line 9448 (opens in a new tab) of Anthropic's type declarations.

classic.TaskCreated

Declared at line 9460 (opens in a new tab) of Anthropic's type declarations.

classic.TeammateIdle

Declared at line 9472 (opens in a new tab) of Anthropic's type declarations.

classic.UserPromptExpansion

Declared at line 11079 (opens in a new tab) of Anthropic's type declarations.

classic.UserPromptSubmit

Declared at line 11088 (opens in a new tab) of Anthropic's type declarations.

classic.WorktreeCreate

Declared at line 11110 (opens in a new tab) of Anthropic's type declarations.

classic.WorktreeRemove

Declared at line 11115 (opens in a new tab) of Anthropic's type declarations.

Other names entries list

These names select none of the events above. A name can belong to a noun that a plugin adds to $ itself, which is not in Anthropic's list, or be spelled differently from the declarations.

telemetry.*