5 pages for turn.step.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…porting success when an API error cut off a reply while a mod hooked `turn.step` * Fixed a message sent right after a model change still running after Stop in headless sessions: Stop now cancels or st…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…everything Claude does in answer to one prompt. Handle `turn.start`, `turn.step`, and `turn.complete` to follow one: | Event | When it fires | What a hook can do | | :- | :- | :- | | `turn.start` | A…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…, each with when it fires and what a hook on it can return. Hooks on `turn.step` and `process.spawn` are async generators, and other hooks are async functions. The last column of each table uses shor…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…et` resolve to `7`. A stub for one of Claude Code's events, such as [`turn.step`](https://code.claude.com/docs/en/plugins/mods/reference#turns) or `tool.call`, returns that event's own result, such as…
Troubleshoot a mod
Claude Code CLI · in the page
plugins/mods/troubleshoot
…`](https://code.claude.com/docs/en/plugins/mods/reference#tools) or [`turn.step`](https://code.claude.com/docs/en/plugins/mods/reference#turns) hook, or a [`PreToolUse`](https://code.claude.com/docs/e…