Skip to content

Commit eca8b5a

Browse files
committed
v3.18.3: grepai-reminder hook retargeted Glob|Grep -> Bash (native Grep/Glob removed on macOS CC; gates on search-command regex)
1 parent f954903 commit eca8b5a

9 files changed

Lines changed: 40 additions & 14 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
},
77
"metadata": {
88
"description": "Claude Code plugin suite: brewcode for infinite task execution, brewdoc for documentation tools, brewtools for text utilities, brewui for UI/visual/creative tools",
9-
"version": "3.18.2"
9+
"version": "3.18.3"
1010
},
1111
"plugins": [
1212
{
1313
"name": "brewcode",
1414
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
15-
"version": "3.18.2",
15+
"version": "3.18.3",
1616
"category": "productivity",
1717
"keywords": [
1818
"brewcode",
@@ -46,7 +46,7 @@
4646
{
4747
"name": "brewdoc",
4848
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization, md-to-pdf conversion",
49-
"version": "3.18.2",
49+
"version": "3.18.3",
5050
"category": "productivity",
5151
"keywords": [
5252
"brewdoc",
@@ -74,7 +74,7 @@
7474
{
7575
"name": "brewtools",
7676
"description": "Brewtools - universal utilities for Claude Code: text optimization, humanization, secrets scanning",
77-
"version": "3.18.2",
77+
"version": "3.18.3",
7878
"category": "productivity",
7979
"keywords": [
8080
"brewtools",
@@ -102,7 +102,7 @@
102102
{
103103
"name": "brewui",
104104
"description": "Placeholder for future UI/visual/creative tools (currently empty, installable)",
105-
"version": "3.18.2",
105+
"version": "3.18.3",
106106
"category": "productivity",
107107
"keywords": [
108108
"ui",

RELEASE-NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
---
44

5+
## v3.18.3 (2026-06-27)
6+
7+
> Docs: [brewcode hooks](https://doc-claude.brewcode.app/brewcode/overview/)
8+
9+
### brewcode
10+
11+
#### Fixed
12+
- **grepai-reminder hook:** retargeted from dead `PreToolUse:Glob|Grep` to `PreToolUse:Bash`. Native Grep/Glob tools were removed on the macOS Claude Code build -- code search now runs through Bash (shadow `grep`->ugrep, `find`->bfs, `rg`). The hook now gates on a search-command regex (grep/egrep/fgrep/ugrep/rg/ag/ack/find/bfs) so the grepai reminder still fires only on actual searches; `.grepai/index.gob` guard + 60s throttle preserved.
13+
14+
---
15+
516
## v3.18.2 (2026-06-27)
617

718
> Docs: [brewui overview](https://doc-claude.brewcode.app/brewui/overview/)

brewcode/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brewcode",
3-
"version": "3.18.2",
3+
"version": "3.18.3",
44
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
55
"author": {
66
"name": "Maksim Kochetkov",

brewcode/hooks/grepai-reminder.mjs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
#!/usr/bin/env node
22

33
/**
4-
* PreToolUse hook for Glob/Grep tools.
5-
* Reminds Claude to prefer grepai_search for semantic queries.
4+
* PreToolUse:Bash hook.
5+
* Native Grep/Glob tools were removed on this CC build; code search runs via Bash
6+
* (shadow grep->ugrep / find->bfs / rg). Reminds Claude to prefer grepai_search
7+
* when a grep/find/rg search command is run through Bash.
68
*/
79

810
import { existsSync, statSync, writeFileSync } from 'fs';
911
import { join } from 'path';
1012
import { readStdin, output, log } from './lib/utils.mjs';
1113

14+
const SEARCH_RE = /(?:^|[|;&(]|&&|\|\|)\s*(?:command\s+)?(grep|egrep|fgrep|ugrep|rg|ag|ack|find|bfs)\b/;
15+
1216
async function main() {
1317
let cwd = null;
1418
let session_id = null;
@@ -19,6 +23,17 @@ async function main() {
1923
session_id = input.session_id;
2024
cwd = input.cwd || cwd;
2125

26+
const command = input.tool_input && input.tool_input.command;
27+
if (!command) {
28+
output({});
29+
return;
30+
}
31+
32+
if (!SEARCH_RE.test(command)) {
33+
output({});
34+
return;
35+
}
36+
2237
const grepaiDir = join(cwd, '.grepai');
2338
const indexFile = join(grepaiDir, 'index.gob');
2439

brewcode/hooks/hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]
4848
},
4949
{
50-
"matcher": "Glob|Grep",
50+
"matcher": "Bash",
5151
"hooks": [
5252
{
5353
"type": "command",

brewcode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-plugin-brewcode",
3-
"version": "3.18.2",
3+
"version": "3.18.3",
44
"description": "Infinite task execution with automatic handoff for Claude Code",
55
"keywords": [
66
"claude-code",
@@ -36,6 +36,6 @@
3636
},
3737
"claude-plugin": {
3838
"name": "brewcode",
39-
"version": "3.18.2"
39+
"version": "3.18.3"
4040
}
4141
}

brewdoc/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brewdoc",
3-
"version": "3.18.2",
3+
"version": "3.18.3",
44
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization",
55
"author": {
66
"name": "Maksim Kochetkov",

brewtools/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brewtools",
3-
"version": "3.18.2",
3+
"version": "3.18.3",
44
"description": "Brewtools - universal utilities for Claude Code: text optimization, humanization, secrets scanning",
55
"author": {
66
"name": "Maksim Kochetkov",

brewui/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brewui",
3-
"version": "3.18.2",
3+
"version": "3.18.3",
44
"description": "Brewui -- placeholder for future UI/visual/creative tools",
55
"author": {
66
"name": "Maksim Kochetkov",

0 commit comments

Comments
 (0)