You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
npm's lifecycle subcommands are never routed to rtk #3671
The npm rule matches only ^npm\s+(exec|run|run-script|rum|urn|x), so the subcommands an agent
runs most often fall through to the native binary unfiltered:
Command
Rewritten before
npm run build
yes
npm test
no
npm install
no
npm ci
no
npm audit
no
npm outdated
no
npm ls
no
This is a rule gap, not a filter gap: npm_cmd::KNOWN_SUBCOMMANDS already lists install, ci, test, audit, outdated and friends precisely so that run is not injected for them. The
filter was built to handle these; nothing ever sent them its way.
Why it matters
npm install is among the noisiest commands in a JS project — dozens of npm WARN deprecated
lines, EBADENGINE blocks, funding notices — wrapped around two lines that actually matter
(how many packages were added, and how many vulnerabilities were found).
npm rule only matches exec/run/run-script/x, so common subcommands like test/install/ci/audit/outdated/ls never get routed to rtk's filter despite it already supporting them — extend the regex to cover npm's lifecycle/known subcommands.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/discover/rules.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
Activity
pszymkowiak commentedon Aug 23, 2026
🔍 Automated Triage
featuremediumSummary
npm rule only matches exec/run/run-script/x, so common subcommands like test/install/ci/audit/outdated/ls never get routed to rtk's filter despite it already supporting them — extend the regex to cover npm's lifecycle/known subcommands.
📁 Relevant files
src/discover/rules.rsTriaged automatically by wshm · This is an automated analysis, not a human review.