We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3755c0 commit 6aa1614Copy full SHA for 6aa1614
1 file changed
.claude-plugin/hooks/leankg-pretooluse.mjs
@@ -56,6 +56,9 @@ function isCodeSearchTool(toolName, toolInput) {
56
57
if (toolName === "Bash") {
58
const cmd = (toolInput.command || "").toLowerCase();
59
+ // Allow cargo/npm/etc build commands through - they're not code search
60
+ const isBuildCmd = /^(cargo|npm|pnpm|yarn|go|make|cmake|rustc)/.test(cmd);
61
+ if (isBuildCmd) return false;
62
const isSearch = SEARCH_COMMANDS.some(c => cmd.includes(c));
63
const isLeankgCmd = cmd.includes("leankg");
64
return isSearch && !isLeankgCmd;
0 commit comments