Skip to content

fix: ship bin/agentcomm — bare command works, no global install (0.16.2)#85

Merged
yonidavidson merged 1 commit into
mainfrom
feat-bin-shim
Jul 9, 2026
Merged

fix: ship bin/agentcomm — bare command works, no global install (0.16.2)#85
yonidavidson merged 1 commit into
mainfrom
feat-bin-shim

Conversation

@yonidavidson

Copy link
Copy Markdown
Owner

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 agentcomm works everywhere, no system writes, upgrade-safe. Skill keeps the node-path form as fallback. e2e verifies the launcher from a foreign cwd.

… (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]>
@yonidavidson yonidavidson merged commit d531396 into main Jul 9, 2026
1 check passed
@yonidavidson yonidavidson deleted the feat-bin-shim branch July 9, 2026 10:13
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