Install orchestration plugin hooks into project settings
Installs orchestration plugin hooks into project settings for automated workflow enforcement.
/plugin marketplace add bengous/claude-code-plugins/plugin install claude-orchestration@bengous-plugins[--remove|--force|--dry-run]claude-sonnet-4-5Install plugin hooks into .claude/settings.local.json for automated workflow enforcement.
⚠️ Why this command exists:
Claude Code v2.0.13 doesn't automatically load hooks from plugins. This command installs them manually into project settings as a workaround. When Claude Code adds native plugin hook support, this command will no longer be necessary.
What it installs:
git worktree commandsUsage:
# Install hooks (safe to run multiple times)
/setup-hooks
# Preview changes without applying
/setup-hooks --dry-run
# Force reinstall (overwrites existing)
/setup-hooks --force
# Remove plugin hooks
/setup-hooks --remove
What happens:
.claude/settings.local.json to .backupExample output:
✅ Installed 1 hook from claude-orchestration plugin
- PreToolUse:Bash → worktree-guard.py
📝 Backup saved: .claude/settings.local.json.backup
Verification:
After installation, test that hooks work:
# Should be blocked with helpful message
git worktree add /tmp/test
Troubleshooting:
/plugin to install claude-orchestration--force to reinstallRelated:
${CLAUDE_PLUGIN_ROOT}/~/.claude/plugins/.../hooks/.claude/settings.local.jsonPlugin location: !realpath ~/.claude/plugins/marketplaces/bengous-plugins/orchestration 2>/dev/null || echo "$HOME/projects/claude-plugins/orchestration"
Your task:
Execute the setup hooks script:
<plugin-location-from-above>/scripts/setup-hooks.js $ARGUMENTS
Show the full output to the user.