Stats
Actions
Tags
From claudecode-research-harness-workflow
Orchestrates Claude Code plugin lifecycle and automates tasks at session stop via bash commands and subagents. Runs session summaries, memory bridges, and evaluators, blocking stop if WIP tasks remain.
27 events · 62 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook session-summary30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook memory-bridge30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook stop-evaluator30msinit/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook setup-init60msinit-only/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook setup-init60msmaintenance/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook setup-maintenance60ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook runtime-reactive10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ pre-compact10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook pre-compact-save30msWrite|Edit|MultiEdit|Bash|Read/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook pre-tool10msAskUserQuestion/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook ask-user-question-normalize5msWrite|Edit/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook inbox-check10msmcp__chrome-devtools__.*|mcp__playwright__.*|mcp__plugin_playwright_playwright__.*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook browser-guide10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook session-cleanup10ms*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook elicitation10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook runtime-reactive10ms*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook post-compact10msWrite|Edit|MultiEdit|Bash/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook post-tool10msWrite|Edit*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook memory-bridge10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook log-toolname30msBash/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook commit-cleanup10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook ci-status30msSkill|Task|SlashCommand/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook usage-tracker30msSkill/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook clear-pending5msTodoWrite/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook todo-sync30msWrite|Edit|MultiEdit|Bash/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/scripts/hook-handlers/posttool-progress-regen.sh"' _5msWrite|Edit|Task/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook emit-trace5ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook auto-cleanup60ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook track-changes30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook auto-test120ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook quality-pack60ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook plans-watcher30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook tdd-check30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook auto-broadcast10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook stop-failure10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook runtime-reactive10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook config-change10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook notification5msstartup|resume/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook session-start15ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook memory-bridge30ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec /bin/bash "$root/scripts/hook-handlers/memory-session-start.sh" "$@"' _30msworker|reviewer|scaffolder|video-scene-generator/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook subagent-stop10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook teammate-idle10msworker|reviewer|scaffolder|video-scene-generator/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook subagent-start10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook task-completed-ext10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook worktree-create10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook worktree-remove10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook permission-denied5ms*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook memory-bridge10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec /bin/bash "$root/scripts/userprompt-inject-policy.sh" "$@"' _15ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook track-command10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook fix-proposal10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook breezing-signal10ms*/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook elicitation-result5msEdit|Write|MultiEdit/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook permission10msBash/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook permission10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook instructions-loaded10ms/bin/bash -c 'valid_root(){ local r="${1:-}"; [ -n "$r" ] && [ -x "$r/bin/harness" ] && [ -f "$r/.claude-plugin/plugin.json" ] && /usr/bin/grep -q "\"name\"[[:space:]]*:[[:space:]]*\"claude-code-harness\"" "$r/.claude-plugin/plugin.json"; }; root="${CLAUDE_PLUGIN_ROOT:-}"; if ! valid_root "$root"; then root=""; for c in "${CLAUDE_PROJECT_DIR:-}" "$PWD" "$HOME/.claude/plugins/marketplaces/claude-code-harness-marketplace" "$HOME/.claude/plugins/cache/claude-code-harness-marketplace/claude-code-harness/"*; do if valid_root "$c"; then root="$c"; break; fi; done; fi; if ! valid_root "$root"; then echo "[claude-code-harness] plugin root not found; hook skipped" >&2; exit 0; fi; exec "$root/bin/harness" "$@"' _ hook post-tool-failure5msnpx claudepluginhub maxwell2732/claudecode-research-harness-workflow --plugin claudecode-research-harness-workflow