fix: ship bin/agentcomm — bare command works, no global install (0.16.2)#85
Merged
Conversation
… (0.16.2) A session hit "command not found": init's CLAUDE.md tells agents to run bare `agentcomm register` / `inbox`, but nothing put agentcomm on PATH — the package.json bin only applies to `npm install -g` (unpublished), and the plugin shipped no bin/ dir. Claude Code adds each plugin's bin/ to PATH (as ctx/rakevet prove), so the real fix is to ship one: a small launcher that resolves the prebuilt dist/cli.js relative to itself (symlink-safe, survives version-dir upgrades). Bare `agentcomm` now works in every Claude Code session with no system writes and no per-command node "$CLAUDE_PLUGIN_ROOT/..." prefix; the skill keeps that form documented as the universal fallback. bin added to package files; e2e proves the launcher runs from an unrelated cwd. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause of 'command not found': nothing put agentcomm on PATH (package.json bin needs npm -g; plugin shipped no bin/). Fix: ship bin/agentcomm launcher — Claude Code adds plugin bin/ to PATH (like ctx/rakevet), so bare
agentcommworks everywhere, no system writes, upgrade-safe. Skill keeps the node-path form as fallback. e2e verifies the launcher from a foreign cwd.