Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bengousv2.2.5MITIn 1 marketplace
Makes plugin source edits load in your next session without a version bump by overwriting the cache. Hooks validate each edited plugin after every edit and again at turn end, blocking the turn on failure.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
plugin-cache, plugin-development, hot-reload, plugin-validation, local-development, cache-sync, plugin, sync ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Sync Claude Code plugin cache from local sources.
Version: 2.2.1
Claude Code copies a directory-source plugin into ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/. The cache path is keyed by version. Edit a source file without bumping the version and nothing refreshes the cache: not /reload-plugins, not /reload-plugins --force, not a full restart.
This tool force-copies the source over the cache so the next session loads your edits.
To test a plugin you are editing, use the flag Anthropic documents instead:
claude --plugin-dir /path/to/my-plugin
That reads the source directly, ignores the cache, and needs no version bump. Use plugin-cache-sync only when you want an edit live in your ordinary sessions, without launching with flags.
/plugin-cache-sync:install
This symlinks (Linux/macOS) or copies (Windows) the plugin-cache-sync CLI to ~/.local/bin/.
plugin-cache-sync status # Show cache vs source comparison (incl. enabled state)
plugin-cache-sync sync <name> # Sync a plugin (partial name match)
plugin-cache-sync sync --all # Sync all installed plugins
plugin-cache-sync version # Print version
status compares the cached files with the plugin source. The recorded Git SHA
is provenance only, so unrelated repository commits do not mark plugins stale.
sync writes the plugin cache and registry but does not touch
~/.claude/settings.json. Claude Code only loads a plugin listed in
enabledPlugins, so a brand-new plugin that has never been enabled syncs
successfully yet never loads. Enable it with the official CLI:
claude plugin enable <name>@<marketplace>
status shows the current enabled state, and sync warns when a synced plugin is not enabled.
Works without a registered directory-source marketplace:
# Auto-detect: run from a repo with .claude-plugin/marketplace.json
cd ~/my-plugins && plugin-cache-sync sync --all
# Explicit source
plugin-cache-sync --source ~/my-plugins sync --all
Two hooks check what you edit. Both read the source directory on disk, so they see an edit the moment it lands — no sync, no restart, no cache involved.
| Event | Scope | Check | Cost |
|---|---|---|---|
PostToolUse on Edit|Write | the plugin holding the written file | claude plugin validate | ~0.4 s |
Stop | every plugin with uncommitted changes | validate --strict, then claude --plugin-dir <dir> plugin details <name> | ~1 s cold, ~20 ms warm |
A failure exits 2, so the reason reaches Claude, which fixes it and keeps working. The
turn never ends on a plugin that fails to validate or to load. Stop results are keyed
by a content hash, so an unchanged plugin is never re-checked.
The two levels use different strictness on purpose. Mid-edit a plugin is legitimately
incomplete, and --strict fails a manifest that merely lacks a description — so the
per-edit check runs plain validate, which stays silent on a half-built plugin and still
fails on malformed JSON or malformed frontmatter. --strict belongs at Stop, where the
work is meant to be finished. A file outside any plugin directory exits immediately.
These hooks never write. They do not sync, and they do not make an edit live in the running session — nothing can, short of a restart. They answer one question: is what you just wrote valid and loadable?
Neither check proves the plugin behaves. For that, write eval cases and run
claude plugin eval <dir>.
After syncing, restart Claude Code. /reload-plugins reports success and keeps serving the definitions it loaded at startup, so a synced change stays invisible until you restart.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bengous/claude-code-plugins --plugin plugin-cache-syncPlugins from other owners that cover similar ground