Skip to content
Development
Hook

Hooks

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

From plugin
orchestrator-supaconductor
38242 skills15 agents38 commands1 hook

Claude Code

> /plugin marketplace add Ibrahim-3d/orchestrator-supaconductor
> /plugin install orchestrator-supaconductor@ibrahim-plugins

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.

  • Matchesstartup|resume|clear|compact${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh
Read hooks/hooks.json

Where it lives

  • hooks/session-start.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    # SessionStart hook for SupaConductor plugin
    
    set -euo pipefail
    
    # Determine plugin root directory
    SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
    PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
    
    # ── Version detection ────────────────────────────────────────────────
    # Read current version from plugin.json
    LOCAL_VERSION=""
    PLUGIN_JSON="${PLUGIN_ROOT}/.claude-plugin/plugin.json"
    if [ -f "$PLUGIN_JSON" ]; then
        # Extract version using lightweight parsing (no jq dependency)
        LOCAL_VERSION=$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$PLUGIN_JSON" | head -1)
    fi
    LOCAL_VERSION="${LOCAL_VERSION:-unknown}"
    
    # Check for latest release on GitHub (non-blocking, 3s timeout, cached 24h)
    REPO="Ibrahim-3d/orchestrator-supaconductor"
    CACHE_DIR="${XDG_CACHE_HOME:-${HOME}/.cache}/supaconductor"
    CACHE_FILE="${CACHE_DIR}/last-update-check"
    update_message=""
    if command -v curl &>/dev/null; then
        latest_tag=""
    
        # Reuse a successful check for 24 hours to avoid network latency on every session.
        if [ -f "$CACHE_FILE" ] && find "$CACHE_FILE" -mmin -1440 -print 2>/dev/null | grep -q .; then
            latest_tag=$(cat "$CACHE_FILE")
        else
            latest_tag=$(curl -s --max-time 3 \
                "https://api.github.com/repos/${REPO}/releases/latest" 2>/dev/null \
                | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' \
                | sed 's/^v//' | head -1) || true
    
            if [ -n "$latest_tag" ]; then
                mkdir -p "$CACHE_DIR"
                printf '%s' "$latest_tag" > "$CACHE_FILE"
            fi
        fi
    
        if [ -n "$latest_tag" ] && [ "$latest_tag" != "$LOCAL_VERSION" ]; then
            update_message="\\n\\n**UPDATE AVAILABLE:** SupaConductor v${latest_tag} is available (you have v${LOCAL_VERSION}). Tell the user: A new version of SupaConductor is available (v${latest_tag}). Update with: claude plugin marketplace update ibrahim-plugins && claude plugin update orchestrator-supaconductor@ibrahim-plugins"
        fi
    fi
    
    # ── Legacy skills directory check ────────────────────────────────────
    warning_message=""
    legacy_skills_dir="${HOME}/.config/supaconductor/skills"
    if [ -d "$legacy_skills_dir" ]; then
        warning_message="\n\n<important-reminder>IN YOUR FIRST REPLY AFTER SEEING THIS MESSAGE YOU MUST TELL THE USER:⚠️ **WARNING:** SupaConductor now uses Claude Code's skills system. Custom skills in ~/.config/supaconductor/skills will not be read. Move custom skills to ~/.claude/skills instead. To make this message go away, remove ~/.config/supaconductor/skills</important-reminder>"
    fi
    
    # Read using-supaconductor content
    using_supaconductor_content=$(cat "${PLUGIN_ROOT}/skills/using-supaconductor/SKILL.md" 2>&1 || echo "Error reading using-supaconductor skill")
    
    # Escape string for JSON embedding using bash parameter substitution.
    # Each ${s//old/new} is a single C-level pass - orders of magnitude
    # faster than the character-by-character loop this replaces.
    escape_for_json() {
        local s="$1"
        s="${s//\\/\\\\}"
        s="${s//\"/\\\"}"
        s="${s//$'\n'/\\n}"
        s="${s//$'\r'/\\r}"
        s="${s//$'\t'/\\t}"
        printf '%s' "$s"
    }
    
    using_supaconductor_escaped=$(escape_for_json "$using_supaconductor_content")
    warning_escaped=$(escape_for_json "$warning_message")
    update_escaped=$(escape_for_json "$update_message")
    
    # Output context injection as JSON
    cat <<EOF
    {
      "hookSpecificOutput": {
        "hookEventName": "SessionStart",
        "additionalContext": "<EXTREMELY_IMPORTANT>\nYou have SupaConductor v${LOCAL_VERSION}.\n\n**Below is the full content of your 'orchestrator-supaconductor:using-supaconductor' skill - your introduction to using skills. For all other skills, use the 'Skill' tool:**\n\n${using_supaconductor_escaped}\n\n${warning_escaped}${update_escaped}\n</EXTREMELY_IMPORTANT>"
      }
    }
    EOF
    
    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.

@ibrahim-3d
Ships withorchestrator-supaconductor

Multi-agent orchestration system for Claude Code with parallel execution, automated quality gates, Board of Directors, and bundled Superpowers skills

38242 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
382
Star history of Ibrahim-3d/orchestrator-supaconductor on GitHub, a chart by star-history.com

More plugins that ship hooks.

superpowers

superpowers

A development methodology for coding agents that makes the agent brainstorm before building, follow plans, run parallel work and finish branches in a disciplined way. You get fewer skipped steps and more consistent results from your coding assistant.

15 skills1 hook311k
@obra@obra
Install Plugin
ponytail

ponytail

A Claude Code plugin with skills for auditing a whole repo, reviewing a change, listing deferred shortcut comments, and showing measured savings and a quick command reference.

6 skills10 hooks188k
@dietrichgebert@dietrichgebert
Install Plugin
agent-skills

agent-skills

Walks a software change from a written spec through design, testing, code review, CI/CD, and release, applying the matching engineering skill at each stage. Useful for developers using Claude Code on full development workflows.

25 skills+3112k
@addyosmani@addyosmani
Install Plugin
planning-with-files

planning-with-files

Persistent file-based planning for AI coding agents on long-running, multi-step tasks. It keeps task_plan.md, findings.md and progress.md on disk, so work can resume after /clear or context compaction.

6 skills+228k
@othmanadi@othmanadi
Install Plugin
gsd-core

gsd-core

A spec-driven development workflow for Claude Code that guides a project through planning, phases, milestone audits and fixes. Includes skills to generate tests from UAT criteria and to audit completed work.

72 skills+311k
@open-gsd@open-gsd
Install Plugin
superpowers-zh

superpowers-zh

Chinese-language skill pack for Claude Code that adds workflow guidance for brainstorming, TDD, debugging, and code review, plus Chinese conventions for commits, documentation, and domestic Git platforms like Gitee and Coding.net.

21 skills1 hook8.5k
@jnmetacode@jnmetacode
Install Plugin
socraticode

socraticode

Gives Claude Code semantic search, dependency graph and architecture context over a codebase, so an AI assistant can explore and understand a project's code. Includes skills for indexing a project and managing its file watching.

2 skills+33.4k
@giancarloerra@giancarloerra
Install Plugin
cocoindex-code

cocoindex-code

A lightweight code search engine that uses AST-based semantic search with local embeddings and incremental indexing. It helps Claude Code users find code faster and more efficiently.

1 skill1 MCP+13k
@cocoindex-io@cocoindex-io
Install Plugin

Questions about the hooks in orchestrator-supaconductor.

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