claude-mem-lite 6.29.1 → 6.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/commands/adopt.md +3 -3
- package/commands/bug.md +1 -2
- package/commands/lesson.md +3 -4
- package/commands/mem.md +3 -3
- package/commands/memory.md +3 -3
- package/commands/update.md +12 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"plugins": [
|
|
10
10
|
{
|
|
11
11
|
"name": "claude-mem-lite",
|
|
12
|
-
"version": "6.29.
|
|
12
|
+
"version": "6.29.2",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"homepage": "https://github.com/sdsrss/claude-mem-lite",
|
|
15
15
|
"description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark)."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-mem-lite",
|
|
3
|
-
"version": "6.29.
|
|
3
|
+
"version": "6.29.2",
|
|
4
4
|
"description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "sdsrss"
|
package/commands/adopt.md
CHANGED
|
@@ -7,9 +7,9 @@ description: "Use when: user asks to put the claude-mem-lite steering block into
|
|
|
7
7
|
|
|
8
8
|
Install the claude-mem-lite **steering block** into the current project's
|
|
9
9
|
`CLAUDE.md` (the canonical home for project instructions — loaded by Claude Code
|
|
10
|
-
at system-prompt authority).
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
at system-prompt authority). It does not go in the project's memory-dir
|
|
11
|
+
`MEMORY.md`: that index belongs to the user's own memories, and it carries no
|
|
12
|
+
more weight than `CLAUDE.md`.
|
|
13
13
|
|
|
14
14
|
Auto-adopt does not add the block to `CLAUDE.md`: in a git repository it keeps the same block
|
|
15
15
|
in `CLAUDE.local.md` at the repository root, excluded from git through `.git/info/exclude`.
|
package/commands/bug.md
CHANGED
|
@@ -10,8 +10,7 @@ Record a known bug + reproduction steps. Writes a searchable **observation**
|
|
|
10
10
|
via `mem_search` and the PreToolUse recall hooks warn when the affected files
|
|
11
11
|
are edited. Does NOT touch memdir. Useful for bugs you can't fix immediately
|
|
12
12
|
but want future sessions (or yourself after `/clear`) to know about and avoid
|
|
13
|
-
re-investigating.
|
|
14
|
-
never read.)
|
|
13
|
+
re-investigating.
|
|
15
14
|
|
|
16
15
|
## When to use
|
|
17
16
|
|
package/commands/lesson.md
CHANGED
|
@@ -9,9 +9,8 @@ Record a lesson / gotcha / workaround. Writes a searchable **observation**
|
|
|
9
9
|
(`type=discovery` with the text as `lesson_learned`) so future sessions can
|
|
10
10
|
find it via `mem_search` and the PreToolUse recall hooks surface it on the
|
|
11
11
|
relevant files. Does NOT touch memdir — so lessons never end up in the L1
|
|
12
|
-
system-prompt memory section and do not conflict with
|
|
13
|
-
|
|
14
|
-
`mem_search` never read.)
|
|
12
|
+
system-prompt memory section and do not conflict with Claude Code's auto-memory
|
|
13
|
+
rules on what not to save there.
|
|
15
14
|
|
|
16
15
|
## When to use
|
|
17
16
|
|
|
@@ -23,7 +22,7 @@ After you (or the user) solve a tricky bug or discover a non-obvious behavior:
|
|
|
23
22
|
|
|
24
23
|
Don't use for trivial fixes (typos, renames), for rules that belong in memdir
|
|
25
24
|
(user preferences, project-wide conventions), or for general project notes
|
|
26
|
-
(use `/mem:memory` or `mem_save` instead).
|
|
25
|
+
(use `/claude-mem-lite:memory` or `mem_save` instead).
|
|
27
26
|
|
|
28
27
|
## Arguments
|
|
29
28
|
|
package/commands/mem.md
CHANGED
|
@@ -30,9 +30,9 @@ When the user invokes `/mem`, parse their intent:
|
|
|
30
30
|
- `/mem save <text>` → call `mem_save` MCP tool with the text as content
|
|
31
31
|
- `/mem stats` → run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" stats` via Bash
|
|
32
32
|
- `/mem get <ids>` → run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" get <ids>` via Bash
|
|
33
|
-
- `/mem cleanup` → run `
|
|
34
|
-
- `/mem cleanup Nd` (e.g. `60d`) → same as above but add
|
|
35
|
-
- `/mem cleanup keep Nd` (e.g. `keep 14d`) → same as above with
|
|
33
|
+
- `/mem cleanup` → run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain scan` via Bash, report pending purge count and stale items to user, ask for confirmation, then run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain execute --ops purge_stale --confirm` via Bash if confirmed. **`--confirm` is required and is not optional politeness:** without it the command prints a dry-run PREVIEW and deletes nothing, while still succeeding — so you would report a cleanup that never happened.
|
|
34
|
+
- `/mem cleanup Nd` (e.g. `60d`) → same as above but add `--retain-days N` to only purge items older than N days. **`--retain-days` must be between 7 and 365**; the CLI rejects anything outside that range, so `/mem cleanup 3d` cannot be honoured — say so rather than silently substituting the default.
|
|
35
|
+
- `/mem cleanup keep Nd` (e.g. `keep 14d`) → same as above with `--retain-days N`, same 7–365 range.
|
|
36
36
|
- `/mem <query>` (no subcommand) → treat as search, run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" search <query>` via Bash
|
|
37
37
|
|
|
38
38
|
Use Bash commands first. For detailed data, use `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" get <id>` via Bash.
|
package/commands/memory.md
CHANGED
|
@@ -9,12 +9,12 @@ Save important content to your long-term memory database.
|
|
|
9
9
|
|
|
10
10
|
## Commands
|
|
11
11
|
|
|
12
|
-
- `/mem:memory <content>` — Save the given content directly to memory
|
|
13
|
-
- `/mem:memory` (no args) — Auto-summarize recent session highlights and save key findings
|
|
12
|
+
- `/claude-mem-lite:memory <content>` — Save the given content directly to memory
|
|
13
|
+
- `/claude-mem-lite:memory` (no args) — Auto-summarize recent session highlights and save key findings
|
|
14
14
|
|
|
15
15
|
## Instructions
|
|
16
16
|
|
|
17
|
-
When the user invokes `/mem:memory`, determine the intent:
|
|
17
|
+
When the user invokes `/claude-mem-lite:memory`, determine the intent:
|
|
18
18
|
|
|
19
19
|
### With explicit content
|
|
20
20
|
|
package/commands/update.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: update
|
|
3
3
|
description: "Use when: search results seem noisy or for periodic memory maintenance"
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Memory Maintenance
|
|
@@ -9,23 +10,25 @@ Run intelligent maintenance on the memory database.
|
|
|
9
10
|
|
|
10
11
|
## Usage
|
|
11
12
|
|
|
12
|
-
- `/mem:update` — Run full maintenance cycle
|
|
13
|
+
- `/claude-mem-lite:update` — Run full maintenance cycle
|
|
13
14
|
|
|
14
15
|
## Instructions
|
|
15
16
|
|
|
16
|
-
When the user invokes `/mem:update`, perform the following maintenance cycle:
|
|
17
|
+
When the user invokes `/claude-mem-lite:update`, perform the following maintenance cycle:
|
|
17
18
|
|
|
18
19
|
### Phase 1: Memory Maintenance
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
Run each command below via Bash; the CLI reaches the maintenance operations whether or not their MCP tools are in your tool list.
|
|
22
|
+
|
|
23
|
+
1. Run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain scan` to analyze maintenance candidates
|
|
21
24
|
2. Report scan results to the user (duplicates, stale items, broken items, boostable items, **pending purge** items)
|
|
22
|
-
3.
|
|
23
|
-
4.
|
|
24
|
-
5.
|
|
25
|
-
6.
|
|
25
|
+
3. **If pending purge items > 0**: first run the purge command below without `--confirm`: it prints how many rows it would delete and deletes nothing. Report that count to the user and ask for confirmation. If confirmed, run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain execute --ops purge_stale --confirm`. **`--confirm` is required:** without it the command prints a dry-run preview and deletes nothing while still succeeding, so you would report a purge that never happened. User may optionally add `--retain-days N` (default 30, allowed range 7–365) to both runs to control how many days of data to keep; the CLI rejects a value outside that range, so tell the user instead of substituting the default. Do NOT purge without explicit user confirmation. The purge comes before the next step on purpose: decay there queues more rows for purge, and those wait for a later run, so what gets deleted is what the user approved.
|
|
26
|
+
4. Run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain execute` to apply safe automatic changes — with no `--ops` it runs the default set: cleanup, decay, boost, then demote_pinned (left out when `CLAUDE_MEM_SKIP_DEMOTE_PINNED=1`)
|
|
27
|
+
5. If duplicates were found in scan, review them and run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" maintain execute --ops dedup --merge-ids keepId:removeId,...` — keep the more important/recent observation in each pair. Groups are comma-separated and the first id in each is kept (`10:11,20:21:22`). For pairs similar enough to merge without review the scan prints a ready-made list after `--merge-ids`; pass it to the command above, since the command the scan prints uses a bare `claude-mem-lite`, which may not be installed
|
|
28
|
+
6. Run `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" compress --execute` for old low-value observations (without `--execute` it only previews)
|
|
26
29
|
|
|
27
30
|
### Phase 2: Summary
|
|
28
31
|
|
|
29
|
-
Summarize all maintenance actions taken in
|
|
30
|
-
- Memory: observations cleaned, decayed, boosted, deduplicated, compressed
|
|
32
|
+
Summarize all maintenance actions taken in the user's language:
|
|
33
|
+
- Memory: observations cleaned, decayed, boosted, demoted, deduplicated, compressed
|
|
31
34
|
- Overall health assessment
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-mem-lite",
|
|
3
|
-
"version": "6.29.
|
|
3
|
+
"version": "6.29.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "claude-mem-lite",
|
|
9
|
-
"version": "6.29.
|
|
9
|
+
"version": "6.29.2",
|
|
10
10
|
"os": [
|
|
11
11
|
"darwin",
|
|
12
12
|
"linux",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-mem-lite",
|
|
3
|
-
"version": "6.29.
|
|
3
|
+
"version": "6.29.2",
|
|
4
4
|
"description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "npm@10.9.2",
|