Skip to content
Agent Orchestration
Hook

Hooks

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

From plugin
fusion-fable
4722 skills5 commands1 hook

Claude Code

$ npx -y skills add duolahypercho/fusion-fable --agent claude-code

Where it lives

  • hooks/fusion-plan-nudge.shGitHub
    Read the script
    #!/usr/bin/env bash
    # fusion-plan-nudge.sh — PreToolUse backstop for the Agent/Task tool.
    #
    # When the orchestrator is about to spawn a sub-agent for a NON-TRIVIAL implementation task, inject an
    # advisory reminder to plan it first via `/fusion-plan --no-interview` (requirements from the story doc /
    # current plan, never an interview). Advisory only: never blocks, never denies. Fail-open on any error.
    #
    # Wired in settings.local.json as a PreToolUse hook with matcher "Agent|Task".
    
    input="$(cat 2>/dev/null)"
    [ -z "$input" ] && exit 0
    command -v jq >/dev/null 2>&1 || exit 0   # no jq -> no-op, never block
    
    tool="$(printf '%s' "$input" | jq -r '.tool_name // empty' 2>/dev/null)"
    case "$tool" in
      Agent|Task) ;;
      *) exit 0 ;;
    esac
    
    prompt="$(printf '%s' "$input" | jq -r '.tool_input.prompt // empty' 2>/dev/null)"
    agent="$(printf '%s' "$input" | jq -r '.tool_input.agent_name // .tool_input.subagent_type // empty' 2>/dev/null)"
    session="$(printf '%s' "$input" | jq -r '.session_id // "nosession"' 2>/dev/null)"
    [ -z "$prompt" ] && exit 0
    
    # Skip fusion-plan's own Opus panelist spawns (they carry this marker) so we never self-trigger.
    printf '%s' "$prompt" | grep -q '\[FUSION-PANELIST\]' && exit 0
    
    low="$(printf '%s' "$prompt" | tr '[:upper:]' '[:lower:]')"
    
    # Only nudge when the delegation clearly involves implementation (English + Thai signals).
    # Pure explore/research/review delegations have no implementation verb and are skipped.
    impl_re='implement|build|create |write the|add (a|the|support|an)|fix |bug|refactor|migrat|wire up|integrat|เขียนโค้ด|เขียน code|สร้าง|แก้|ทำ feature|coding|รีแฟคเตอร์'
    printf '%s' "$low" | grep -Eq "$impl_re" || exit 0
    
    # Dedupe: nudge at most once per distinct task per session.
    dir="${TMPDIR:-/tmp}/fusion-plan-nudge"
    mkdir -p "$dir" 2>/dev/null
    key="$(printf '%s|%s' "$agent" "$(printf '%s' "$prompt" | head -c 200)" | sha1sum 2>/dev/null | cut -d' ' -f1)"
    marker="$dir/${session}.${key}"
    if [ -n "$key" ]; then
      [ -f "$marker" ] && exit 0
      : > "$marker" 2>/dev/null
    fi
    
    msg='⟡ fusion-plan backstop: about to delegate an implementation task. If it is NON-TRIVIAL (real logic/architecture, "wrong is expensive") and not planned yet, FIRST run `/fusion-plan --no-interview` on it — derive requirements from the story doc / current plan, do NOT interview. Skip if the task is trivial or already planned.'
    
    jq -n --arg ctx "$msg" '{hookSpecificOutput:{hookEventName:"PreToolUse", additionalContext:$ctx}}' 2>/dev/null
    exit 0
    

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.

@duolahypercho
Ships withfusion-fable

Fuse a panel of frontier models into one Fable-tier answer. Fusion-Fable is a Claude Code skill that runs a hard question through a panel → judge pipeline.

Stars on GitHub

Momentum

stars in total
472
Star history of duolahypercho/fusion-fable on GitHub, a chart by star-history.com

More plugins that ship hooks.

oh-my-claudecode

oh-my-claudecode

Splits a complex task across several specialized Claude Code agents working in parallel, then keeps going until the result is checked. You describe what you want in plain language instead of memorizing commands.

84 skills+441k
@yeachan-heo@yeachan-heo
Install Plugin
ouroboros

ouroboros

Turns a rough feature idea into a written spec through guided questions, then has the agent build it and checks the result against that spec. Instead of hand-checking whether the work is finished, you get an automatic evaluation gate that runs in your coding agent.

26 skills+36.4k
@q00@q00
Install Plugin
myclaude

myclaude

A plugin that runs coding tasks through multiple AI backends (Codex, Claude, Gemini, OpenCode) with a structured development workflow, parallel execution, browser automation and multi-session task checkpointing.

11 skills+32.8k
@stellarlinkco@stellarlinkco
Install Plugin
harmonist

harmonist

Coordinates AI agents with mechanical protocol enforcement, a workflow gate, memory validation and a session hook. Includes a catalog of specialist agents and has no runtime dependencies.

199 agents+12.1k
@gammalabtechnologies@gammalabtechnologies
Install Plugin
bernstein

bernstein

Bernstein is a Claude Code plugin for orchestrating AI agents. It adds skills to list and inspect agents, review and approve tasks, create tasks, track costs and budgets, and show alerts for failed or stalled work.

26 skills+41.2k
@sipyourdrink-ltd@sipyourdrink-ltd
Install Plugin
fablize

fablize

A Claude Code plugin that enforces finishing multi-step tasks with evidence and verification at each stage. It works as a procedure for Opus or any Claude model, not as chance.

1 skill+2893
@fivetaku@fivetaku
Install Plugin
super-board

super-board

Autonomous GitHub Project build → QA → review loop for Claude Code. One-line install.

10 skills7 hooks747
@erictechpro@erictechpro
Install Plugin
hello2cc

hello2cc

Adjusts how third-party models behave inside Claude Code so they run closer to a native Opus session, covering subagent lifecycle, session hooks and tool interception. It does not replace your gateway, provider mapping or account setup.

1 agent11 hooks686
@hellowind777@hellowind777
Install Plugin

Questions about the hooks in fusion-fable.

Which coding agents can use the hooks in fusion-fable?
The hooks in fusion-fable install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.