Skip to content
Development
Hook

Hooks

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

From plugin
maestro-orchestrate
45359 skills72 agents4 hooks1 MCP
Install
> /plugin marketplace add josstei/maestro-orchestrate
> /plugin install maestro@maestro-orchestrator

Ships with maestro-orchestrate. 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.

  • node ${extensionPath}/hooks/hook-runner.js gemini session-start

BeforeAgent

  • node ${extensionPath}/hooks/hook-runner.js gemini before-agent

AfterAgent

  • node ${extensionPath}/hooks/hook-runner.js gemini after-agent

SessionEnd

  • node ${extensionPath}/hooks/hook-runner.js gemini session-end
Read hooks/hooks.json

Where it lives

  • hooks/hook-runner.jsRunsGitHub
    Read the script
    'use strict';
    
    require('../src/platforms/shared/hook-runner');
    

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 withmaestro-orchestrate

Maestro is a multi-agent development orchestration platform with 39 specialists, an Express path for simple work, a 4-phase standard workflow for medium and complex work, persistent session state, and standalone

Get the whole plugin