-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
Description
Bug Description
Running npx agentguard fails with a 404 error because the unscoped package agentguard is not registered on npm:
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/agentguard - Not found
npm error 404 'agentguard@*' is not in this registry.
The actual package is published as @red-codes/agentguard, so npx agentguard only works when the package is already in local node_modules/.bin/. If node_modules is missing or the command runs from a different directory, npx tries to fetch the non-existent unscoped name and fails.
Impact
This breaks all Claude Code hooks that reference npx agentguard ...:
npx agentguard claude-hook post(PostToolUse)npx agentguard status(SessionStart)npx agentguard claude-hook notify(Notification)npx agentguard claude-hook stop(Stop)
Any user following the docs to set up hooks with npx agentguard will hit this if they haven't already installed the package locally.
Suggested Fix
Either:
- Register
agentguardas an unscoped package on npm (or a redirect/alias) sonpx agentguardworks out of the box - Update docs and examples to use
npx @red-codes/agentguardeverywhere
Environment
@red-codes/agentguard: 2.4.0- npm: latest
- Node: v20.x
Workaround
Use the scoped name: npx @red-codes/agentguard instead of npx agentguard
Reactions are currently unavailable