Skip to content

fix(llm-sync): don't copy marketplace plugins' hooks into Claude's settings.json - #67

Merged
tstapler merged 1 commit into
masterfrom
fix/llm-sync-skip-marketplace-hooks
Nov 9, 2026
Merged

tstapler merged 1 commit into
masterfrom
fix/llm-sync-skip-marketplace-hooks

Conversation

@tstapler

@tstapler tstapler commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Claude Code loads /plugin install'd plugins' hooks natively, with ${CLAUDE_PLUGIN_ROOT} set. llm-sync's Claude target also merged them into ~/.claude/settings.json, duplicating each hook and running the copy with the variable unset. The claude-magic-compact UserPromptSubmit hook became bun ${CLAUDE_PLUGIN_ROOT}/src/hook.ts and would run bun /src/hook.ts.

Plugins now carry from_marketplace, and ClaudePluginInstaller._install_hooks skips those. Gemini and Antigravity targets are unchanged. Dotfiles-committed plugins such as core-hooks still install. Tests: 8 pass under pytest (two new).

Config/tooling-only change. A stale entry already written to settings.json must be removed by hand; this does not clean it up.

🤖 Generated with Claude Code

…ttings.json

Claude Code loads /plugin install'd plugins' hooks itself with
${CLAUDE_PLUGIN_ROOT} set. llm-sync also merged them into settings.json,
duplicating them and running them with the variable unset (the
claude-magic-compact UserPromptSubmit hook ran 'bun /src/hook.ts').

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tstapler
tstapler merged commit 5e19f1b into master Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant