Skip to content
Development
Hook

Hooks

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

Install
$ npx -y skills add vibeeval/vibecosystem --agent claude-code

Ships with vibecosystem. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs pre-tool-use-broadcast.mjs.

PreCompact

  • Runs pre-compact-continuity.mjs.

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.

  • Runs session-banner.mjs.

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.

  • Runs intent-classifier.mjs.

PostToolUse

  • Runs typescript-preflight.mjs.

Stop

  • Runs magic-doc-updater.mjs.

SessionEnd

  • Runs session-end-cleanup.mjs.
Read hooks/hooks.json

Where it lives

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.

Ships withvibecosystem

Your AI software team. Built on Claude Code. vibecosystem turns Claude Code into a full AI software team — 138 specialized agents that plan, build, review, test, and learn from every mistake. No configuration needed — just install and code.

Get the whole plugin, auto-invoked