Hooks
What session-orchestrator runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
$ npx -y skills add Kanevry/session-orchestrator --agent claude-codeShips with session-orchestrator. Installing the plugin gets these 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.
- Runs [analyze|review|list]'.
SessionEnd
- Runs on-session-end.mjs".
PreToolUse
- Runs skill-invocation-telemetry.mjs".
PostToolUse
- Runs post-edit-validate.mjs".
Stop
- Runs on-stop.mjs".
SubagentStop
- Runs on-stop.mjs".
PostToolUseFailure
- Runs post-tool-failure-corrective-context.mjs".
PostToolBatch
- Runs post-tool-batch-wave-signal.mjs".
SubagentStart
- Runs subagent-telemetry.mjs".
CwdChanged
- Runs cwd-change-restore.mjs".
Where it lives
- hooks/agent-teams-h3-test.shGitHub
- hooks/config-protection.mjsGitHub
- hooks/cwd-change-restore.mjsGitHub
- hooks/enforce-commands.mjsGitHub
- hooks/enforce-scope.mjsGitHub
- hooks/loop-guard.mjsGitHub
- hooks/on-session-end.mjsGitHub
- hooks/on-session-start.mjsGitHub
- hooks/on-stop.mjsGitHub
- hooks/operator-steer.mjsGitHub
- hooks/post-bash-write-verify.mjsGitHub
- hooks/post-edit-validate.mjsGitHub
- hooks/post-subagent-discovery-validator.mjsGitHub
- hooks/post-tool-batch-wave-signal.mjsGitHub
- hooks/post-tool-failure-corrective-context.mjsGitHub
- hooks/post-tooluse-frontend-slop.mjsGitHub
- hooks/pre-bash-destructive-guard.mjsGitHub
- hooks/pre-bash-issue-budget.mjsGitHub
- hooks/pre-bash-memory-propose-audit.mjsGitHub
- hooks/pre-bash-sessions-ledger-guard.mjsGitHub
- hooks/pre-bash-staging-fence.mjsGitHub
- hooks/pre-bash-templates-first.mjsGitHub
- hooks/run-node.shGitHub
- hooks/skill-invocation-telemetry.mjsGitHub
- hooks/subagent-telemetry.mjsGitHub
- hooks/wave-scope-commit-guard.mjsGitHub
Showing the source of 6 of 26 scripts. Every one is linked above.
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.
Loop engineering for AI coding agents — turn ad-hoc sessions into a repeatable research → plan → wave-execute → close loop with verification gates. Runs on Claude Code, Codex CLI, Cursor, and Pi.
Repo: Kanevry/session-orchestrator

