Vibe Coding
Claude Code's function-hook contract is now public: ~80 engine events and five ordered tiers
`mods/types/claude-code.d.ts` is a 9,880-line declaration file written by the `/plugin-types` command. It names roughly 80 hookable events across `session.*`, `turn.*`, `tool.*`, `prompt.*`, `ui.*`, `fs.*`, `store.*`, `clock.*`, `model.*`, `mcp.call`, `http.fetch`, `process.run` and `engine.create`, plus `classic.PreToolUse` wrapping the old settings hooks as just another event. Hooks nest in exactly five tiers, outermost first: `prepend`, `user`, `append`, `builtin`, `core`, where `prepend`/`append` are administrator-listed plugins and `user` is everything a person installs.
Source
↳ Follow the thread