mirror of
https://github.com/kochetkov-ma/claude-brewcode.git
synced 2026-09-14 20:16:41 +08:00
v3.4.6: memory skill autoMemoryDirectory support
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Claude Code plugin suite: brewcode for infinite task execution and brewdoc for documentation tools",
|
||||
"version": "3.4.5"
|
||||
"version": "3.4.6"
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "brewcode",
|
||||
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
|
||||
"version": "3.4.5",
|
||||
"version": "3.4.6",
|
||||
"category": "productivity",
|
||||
"keywords": [
|
||||
"brewcode",
|
||||
@@ -46,7 +46,7 @@
|
||||
{
|
||||
"name": "brewdoc",
|
||||
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization, md-to-pdf conversion",
|
||||
"version": "3.4.5",
|
||||
"version": "3.4.6",
|
||||
"category": "productivity",
|
||||
"keywords": [
|
||||
"brewdoc",
|
||||
|
||||
@@ -5,3 +5,4 @@ package-lock.json
|
||||
|
||||
# User-specific files (not tracked)
|
||||
user/
|
||||
.claude/memory/
|
||||
@@ -2,6 +2,17 @@
|
||||
|
||||
---
|
||||
|
||||
## v3.4.6 (2026-03-13)
|
||||
|
||||
### brewdoc
|
||||
#### Changed
|
||||
- **memory skill** — support for `autoMemoryDirectory` from `.claude/settings.json` instead of hardcoded legacy path
|
||||
|
||||
### Other
|
||||
- `.gitignore` — added `.claude/memory/`
|
||||
|
||||
---
|
||||
|
||||
## v3.4.5 (2026-03-12)
|
||||
|
||||
### brewcode
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "brewcode",
|
||||
"version": "3.4.5",
|
||||
"version": "3.4.6",
|
||||
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
|
||||
"author": {
|
||||
"name": "Maksim Kochetkov",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "claude-plugin-brewcode",
|
||||
"version": "3.4.5",
|
||||
"version": "3.4.6",
|
||||
"description": "Infinite task execution with automatic handoff for Claude Code",
|
||||
"keywords": [
|
||||
"claude-code",
|
||||
@@ -36,6 +36,6 @@
|
||||
},
|
||||
"claude-plugin": {
|
||||
"name": "brewcode",
|
||||
"version": "3.4.5"
|
||||
"version": "3.4.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "brewdoc",
|
||||
"version": "3.4.5",
|
||||
"version": "3.4.6",
|
||||
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization",
|
||||
"author": {
|
||||
"name": "Maksim Kochetkov",
|
||||
|
||||
@@ -15,13 +15,27 @@ Optimizes Claude Code memory files through 4 interactive steps.
|
||||
|
||||
## Phase 0: Load Context
|
||||
|
||||
1. Glob all memory files: `~/.claude/projects/**/memory/*.md`
|
||||
0. **Determine memory directory (`$MEMORY_DIR`):**
|
||||
```bash
|
||||
CUSTOM_DIR=$(cat .claude/settings.json 2>/dev/null | jq -r '.autoMemoryDirectory // empty')
|
||||
if [ -n "$CUSTOM_DIR" ]; then
|
||||
MEMORY_DIR="$(git rev-parse --show-toplevel)/$CUSTOM_DIR"
|
||||
else
|
||||
MEMORY_DIR=~/.claude/projects/<hash>/memory
|
||||
fi
|
||||
```
|
||||
Read `.claude/settings.json` (if exists) → extract `autoMemoryDirectory`.
|
||||
If set → resolve as `<git-root>/<autoMemoryDirectory>`.
|
||||
If not set → use legacy `~/.claude/projects/<hash>/memory/` glob pattern.
|
||||
|
||||
1. Glob all memory files: `$MEMORY_DIR/*.md` (or `~/.claude/projects/**/memory/*.md` for legacy)
|
||||
2. Read `~/.claude/CLAUDE.md` and project `CLAUDE.md` (if exists)
|
||||
3. Glob `.claude/rules/*.md` — read all project rules
|
||||
4. Read `~/.claude/rules/*.md` — read all global rules
|
||||
|
||||
Build context map:
|
||||
```
|
||||
memory_dir: $MEMORY_DIR
|
||||
memory_files: [paths]
|
||||
claude_md_sections: [sections]
|
||||
rules_files: [paths with content]
|
||||
@@ -107,7 +121,7 @@ Compression techniques:
|
||||
- No contradictions between memory and CLAUDE.md
|
||||
- Memory files are well-formed markdown
|
||||
2. Clean broken references (Edit tool)
|
||||
3. Check for orphaned memory files (files in `~/.claude/projects/**/memory/` with no MEMORY.md reference)
|
||||
3. Check for orphaned memory files (files in `$MEMORY_DIR` with no MEMORY.md reference)
|
||||
4. Report orphaned files and ask to delete
|
||||
|
||||
**Final Report:**
|
||||
@@ -129,5 +143,5 @@ Compression techniques:
|
||||
- Step 4: Fixed X broken references, removed X orphaned files
|
||||
|
||||
### Final Memory Structure
|
||||
{directory listing of ~/.claude/projects/.../memory/}
|
||||
{directory listing of $MEMORY_DIR}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user