Skip to content

v1.7.4 — Fix ENAMETOOLONG Recursive Plugin Caching

Choose a tag to compare

@uditgoenka uditgoenka released this 19 Mar 06:46
84c1c32

Bug Fix

Fixes #43 — Plugin installation failed on macOS with ENAMETOOLONG error due to recursive self-nesting in the plugin cache.

What happened

When marketplace.json had "source": "./", Claude Code cached the entire repo — including marketplace.json itself. The cached copy triggered another cache cycle, creating an infinite loop:

~/.claude/plugins/cache/autoresearch/1.7.3/autoresearch/1.7.3/autoresearch/1.7.3/... (45+ levels deep)

This pushed file paths to 1021+ characters, exceeding macOS's 1024-character path limit.

What we fixed

Isolated the plugin distribution into a dedicated claude-plugin/ subdirectory that doesn't contain marketplace.json, breaking the recursion cycle:

Before: marketplace.json → source: "./"              → caches entire repo → INFINITE LOOP
After:  marketplace.json → source: "./claude-plugin"  → caches only plugin files → STOPS

Changes

  • Restructured plugin packaging — moved distribution files to isolated claude-plugin/ directory
  • Updated marketplace.json — source from "./" to "./claude-plugin"
  • Added .gitignore — repo previously had none
  • Removed duplicate directories — root commands/ and skills/ replaced by claude-plugin/
  • Updated release scriptrelease.sh now syncs to claude-plugin/ instead of root
  • Updated all documentation — README, CONTRIBUTING, guide, release docs with new paths

Upgrade

/plugin update autoresearch

Or reinstall:

/plugin marketplace add uditgoenka/autoresearch
/plugin install autoresearch@autoresearch

Full Changelog: v1.7.3...v1.7.4