Skip to content

Commit a6c1b14

Browse files
committed
v3.19.5: remove dead lock/task code from hooks; clean all stale refs
1 parent f6f93ea commit a6c1b14

12 files changed

Lines changed: 39 additions & 653 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.19.4"
9+
"version": "3.19.5"
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.19.4",
15+
"version": "3.19.5",
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.19.4",
49+
"version": "3.19.5",
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.19.4",
77+
"version": "3.19.5",
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.19.4",
105+
"version": "3.19.5",
106106
"category": "productivity",
107107
"keywords": [
108108
"ui",

RELEASE-NOTES.md

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

33
---
44

5+
## v3.19.5 (2026-06-29)
6+
7+
### brewcode
8+
#### Removed
9+
- **session-start.mjs:** dead lock-detection block removed (injected stale bc-coordinator/PLAN.md instructions)
10+
- **utils.mjs:** 16 dead task/lock exported functions removed (backed deleted hooks)
11+
- **docs:** remaining plan/start/KNOWLEDGE/PLAN.md stale refs cleaned from commands.md, file-tree.md, README.md
12+
13+
---
14+
515
## v3.19.4 (2026-06-29)
616

717
### brewcode

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.19.4",
3+
"version": "3.19.5",
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/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
| Field | Value |
66
|-------|-------|
7-
| Version | 3.19.4 |
7+
| Version | 3.19.5 |
88
| Skills | 13 |
99
| Agents | 12 |
1010
| Hooks | 6 |
@@ -136,13 +136,7 @@ brewcode/
136136

137137
```
138138
.claude/tasks/{TS}_{NAME}_task/
139-
SPEC.md # Specification (research results)
140-
PLAN.md # Phased execution plan
141-
KNOWLEDGE.jsonl # Accumulated knowledge (survives compactions)
142-
phases/ # Individual phase files for agents
143-
artifacts/ # Execution reports by phases
144-
backup/ # Backups
145-
.lock # Session lock file
139+
SPEC.md # Specification (research results from /brewcode:spec)
146140
```
147141

148142
## Documentation

brewcode/docs/commands.md

Lines changed: 7 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ auto-sync-type: doc
55
description: Detailed description of all brewcode plugin commands
66
---
77

8-
[DICT: BC=brewcode, AG=agent, SK=skill, KB=KNOWLEDGE.jsonl, PL=PLAN.md, SP=SPEC.md, TD=task dir (.claude/tasks/{TS}_{NAME}_task/), TS=timestamp, PLG=plugin, QR=quorum review, PR=Phase Registry, TK=task, PT=pre-task]
8+
[DICT: BC=brewcode, AG=agent, SK=skill, KB=KNOWLEDGE.jsonl, SP=SPEC.md, TD=task dir (.claude/tasks/{TS}_{NAME}_task/), TS=timestamp, PLG=plugin, QR=quorum review, TK=task]
99

1010
# BC Plugin Commands
1111

@@ -17,10 +17,8 @@ description: Detailed description of all brewcode plugin commands
1717
|---|---------|---------|---------|-------|------|
1818
| 1 | `/bc:setup` | Analyze project, gen templates, install prereqs | fork | opus | -- |
1919
| 2 | `/bc:spec` | Create task SP | session | opus | setup |
20-
| 3 | `/bc:plan` | Create PL from SP or Plan Mode | session | opus | spec |
21-
| 4 | `/bc:start` | Execute TK phases | session | opus | plan |
2220
| 5 | `/bc:review` | Code review w/ QR | fork | opus | setup |
23-
| 6 | `/bc:rules` | Extract rules from KB | session | sonnet | start |
21+
| 6 | `/bc:rules` | Extract rules from KB | session | sonnet | -- |
2422
| 7 | `/bc:grepai` | Semantic code search | session | sonnet | setup |
2523
| 8 | `/bc:teardown` | Remove PLG files | fork | haiku | setup |
2624
| ~~10~~ | ~~`/bc:secrets-scan`~~ | **moved to brewtools** | -- | -- | -- |
@@ -36,9 +34,9 @@ description: Detailed description of all brewcode plugin commands
3634
## Execution Order
3735

3836
```
39-
setup --> spec --> plan --> start --> review --> rules
40-
|
41-
grepai / teardown
37+
setup --> spec --> review --> rules
38+
|
39+
grepai / teardown
4240
```
4341

4442
---
@@ -68,9 +66,7 @@ Analyzes project structure, tech stack, test frameworks, project AGs. Generates
6866

6967
| Path | Purpose |
7068
|------|---------|
71-
| `.claude/tasks/templates/PLAN.md.template` | Plan template |
7269
| `.claude/tasks/templates/SPEC.md.template` | SP template |
73-
| `.claude/tasks/templates/KNOWLEDGE.jsonl.template` | KB template |
7470
| `.claude/tasks/cfg/brewcode.config.json` | PLG cfg |
7571
| `.claude/skills/brewcode-review/SKILL.md` | Code review SK |
7672
| `.claude/skills/brewcode-review/references/` | Prompt + report templates |
@@ -110,7 +106,7 @@ Re-run when: adding AG in `.claude/agents/`, updating `CLAUDE.md`, changing test
110106

111107
```
112108
/bc:setup
113-
/bc:setup ~/.claude/templates/PLAN.md.template
109+
/bc:setup ~/.claude/templates/SPEC.md.template
114110
```
115111

116112
---
@@ -162,7 +158,6 @@ Creates SPEC.md via parallel codebase research + interactive user clarification.
162158

163159
| Input | Action |
164160
|-------|--------|
165-
| Empty `$ARGUMENTS` | Read `.claude/TASK.md` — first line = path |
166161
| Text | Use as task desc |
167162
| Path | Read file as task desc |
168163

@@ -175,172 +170,6 @@ Naming: `YYYYMMDD_HHMMSS` + lowercase slug, e.g. `20260208_143052_auth_feature`
175170

176171
---
177172

178-
## 3. `/bc:plan`
179-
180-
Creates PL from SPEC.md or Plan Mode file. Phase breakdown, AG assignment, QR, requirements coverage check.
181-
182-
| Param | Value |
183-
|-------|-------|
184-
| Args | Path to TD, SPEC.md, or `.claude/plans/LATEST.md` |
185-
| Context | session |
186-
| Model | opus |
187-
| Deps | `/bc:spec` or Plan Mode file |
188-
| Tools | Read, Write, Glob, Grep, Bash, Task, AskUserQuestion |
189-
190-
### Created Files
191-
192-
| Path | Purpose |
193-
|------|---------|
194-
| `TD/PLAN.md` | Slim PL w/ PR table |
195-
| `TD/phases/` | Individual phase instruction files (v3) |
196-
| `TD/phases/{N}-{name}.md` | Execution phase (e.g. `1-research.md`) |
197-
| `TD/phases/{N}V-verify-{name}.md` | Verification phase |
198-
| `TD/phases/FR-final-review.md` | Final review phase |
199-
| `TD/KNOWLEDGE.jsonl` | Empty KB |
200-
| `TD/artifacts/` | AG reports dir |
201-
| `TD/backup/` | Backups dir |
202-
| `.claude/TASK.md` | Quick ref (path to latest TK prepended) |
203-
204-
v3: phase details in `phases/` files, PL.md has only slim PR table (name, status, AG, parallel group). Manager !=reads `phases/` directly — only AGs receive phase file path via Task API.
205-
206-
### Agents (QR)
207-
208-
| AG | Cnt | Purpose |
209-
|----|-----|---------|
210-
| Plan | 1 | Coverage check |
211-
| `bc:architect` | 1 | Architecture, tech choices, deps |
212-
| `bc:reviewer` | 1-2 | Quality, risks + traceability |
213-
214-
QR: 3 mixed AGs (Plan + bc:architect + bc:reviewer), 2/3 majority.
215-
216-
### Workflow (from SPEC)
217-
218-
1. Verify PLAN.md.template + phase templates
219-
2. Read SP: goals, requirements, risks
220-
3. Scan project for Reference Examples (R1, R2...)
221-
4. Gen 5-12 phases w/ deps + AGs
222-
5. User approval via AskUserQuestion
223-
6. Gen: slim PL (PR table), `phases/` dir, KB (0-byte), artifacts/, backup/
224-
7. Doc non-trivial tech choices (lib, pattern, approach) w/ rationale + rejected alternatives in PL
225-
8. QR: 3 AGs in parallel, 2/3 accepted
226-
9. Traceability: bc:reviewer verifies Scope > In + original requirements; gaps → added phases before step 10
227-
10. User approval
228-
229-
### Workflow (from Plan Mode)
230-
231-
1. Verify templates
232-
2. Read `.claude/plans/LATEST.md`
233-
3. Create TD, scan project
234-
4. Each plan item → 1-3 phases + verification
235-
5. User approval
236-
6. Gen artifacts (same as step 6 above)
237-
7. Lightweight review: 2 AGs (bc:architect + bc:reviewer), 2/2 consensus
238-
239-
### Input Handling
240-
241-
| Input | Action |
242-
|-------|--------|
243-
| Path to `{TS}_{NAME}_task/` | Read SPEC.md from that dir |
244-
| Path to `SPEC.md` | TD = parent |
245-
| `.claude/plans/LATEST.md` | Plan Mode: create TK w/o SP |
246-
| Empty | Read `.claude/TASK.md` |
247-
248-
```
249-
/bc:plan .claude/tasks/20260208_143052_auth_feature_task/
250-
/bc:plan .claude/plans/LATEST.md
251-
/bc:plan
252-
```
253-
254-
---
255-
256-
## 4. `/bc:start`
257-
258-
Executes TK by PL phases w/ infinite context via auto handoff. v3 uses Task API (TC/TU/TL) for phase mgmt. Hooks inject knowledge, compact on limit, auto-continue.
259-
260-
| Param | Value |
261-
|-------|-------|
262-
| Args | `[task-path]` (default from `.claude/TASK.md`) |
263-
| Context | session |
264-
| Model | opus |
265-
| Deps | `/bc:plan` (PL + `phases/` must exist) |
266-
| Tools | Read, Write, Edit, Bash, Task, Glob, Grep, Skill |
267-
268-
### Created Files
269-
270-
| Path | Purpose |
271-
|------|---------|
272-
| `TD/.lock` | Session lock |
273-
| `TD/artifacts/{P}-{N}{T}/` | Phase dirs |
274-
| `TD/artifacts/{P}-{N}{T}/{AG}_output.md` | AG reports |
275-
| `TD/artifacts/MANIFEST.md` | Artifacts manifest |
276-
| `TD/artifacts/FINAL.md` | Final report |
277-
| `TD/sessions/{session_id}.info` | Session info |
278-
| `TD/phases/{N}F-fix-{name}.md` | Fix phase files (dynamic, on verification failure) |
279-
280-
### v3 Task API
281-
282-
| API | Purpose |
283-
|-----|---------|
284-
| `TaskCreate` | Spawn AG w/ phase file path — AG reads its own `phases/{N}-{name}.md` |
285-
| `TaskUpdate` | Update phase status in PL PR |
286-
| `TaskList` | Check running/completed for parallel group mgmt |
287-
288-
Manager !=reads `phases/` directly. Only spawned AGs read their assigned phase file. Keeps manager ctx slim, enables parallel phases in same Parallel group.
289-
290-
### Hooks
291-
292-
| Hook | Event | Purpose |
293-
|------|-------|---------|
294-
| `session-start.mjs` | SessionStart | Session init, Task API reminder on active v3 TK |
295-
| `pre-task.mjs` | PreToolUse:Task | grepai reminder + v3 phase file reminder |
296-
297-
### Workflow
298-
299-
1. Resolve TK path from args or `.claude/TASK.md`
300-
2. Init via CT: validation, create lock, status `in progress`
301-
3. Load ctx: read PL PR + KB (manager !=reads `phases/`)
302-
4. Execute phases via Task API:
303-
- `TaskCreate` → spawn AG w/ `phases/{N}-{name}.md` path
304-
- AG executes, WRITES report to `artifacts/{P}-{N}{T}/{AG}_output.md`
305-
- CALL CT → read report, extract knowledge
306-
- `TaskCreate` → spawn verify AG w/ `phases/{N}V-verify-{name}.md`
307-
- On verify fail: gen `phases/{N}F-fix-{name}.md`, spawn fix AG
308-
- Same Parallel group AGs → multiple `TaskCreate` simultaneously
309-
5. Final review: 3+ `reviewer` AGs in parallel via `TaskCreate`
310-
6. Complete: status `finished`, call `/bc:rules`
311-
312-
### Handoff (infinite context)
313-
314-
```
315-
Phase exec → PreCompact (approaching limit)
316-
→ KB compaction → auto-compact (ctx compression)
317-
→ Re-read PL + KB → continue from current phase
318-
```
319-
320-
State preserved: phase statuses in PL, knowledge in KB, artifacts on disk.
321-
322-
### 2-step Protocol (after EVERY AG)
323-
324-
```
325-
1. WRITE report → artifacts/{P}-{N}{T}/{AG}_output.md
326-
2. CALL ct → reads report from disk, extracts knowledge
327-
```
328-
329-
### KB → Rules (auto at step 5)
330-
331-
| Step | Action | AG | Result |
332-
|------|--------|----|--------|
333-
| 1 | `Skill(bc:rules)` | bc-rules-organizer | Reads KB, writes ❌ → `.claude/rules/avoid.md`, ✅ → `.claude/rules/best-practice.md` |
334-
335-
After extraction: only ℹ️ context facts remain (architecture decisions, project-specific facts, env details).
336-
337-
```
338-
/bc:start .claude/tasks/20260208_143052_auth_feature_task/PLAN.md
339-
/bc:start
340-
```
341-
342-
---
343-
344173
## 5. `/bc:review`
345174

346175
Code review w/ QR consensus. Multiple AGs review in parallel, findings confirmed by quorum, verified by DoubleCheck. Optional Critic phase.
@@ -424,7 +253,7 @@ Extracts anti-patterns + best practices from KB or session ctx → updates `.cla
424253
| Args | `[path-to-KNOWLEDGE.jsonl]` (empty = session mode) |
425254
| Context | session |
426255
| Model | sonnet |
427-
| Deps | `/bc:start` or current session |
256+
| Deps | current session |
428257
| Tools | Read, Write, Edit, Glob, Grep, Bash |
429258

430259
### Created Files

0 commit comments

Comments
 (0)