claude-memory-agent 2.0.0 → 2.1.0
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/README.md +206 -200
- package/agent_card.py +186 -0
- package/bin/cli.js +317 -181
- package/bin/postinstall.js +270 -216
- package/dashboard.html +4232 -2689
- package/hooks/__pycache__/grounding-hook.cpython-312.pyc +0 -0
- package/hooks/__pycache__/session_end.cpython-312.pyc +0 -0
- package/hooks/grounding-hook.py +422 -348
- package/hooks/session_end.py +293 -192
- package/hooks/session_start.py +227 -227
- package/install.py +919 -887
- package/main.py +4496 -2859
- package/package.json +47 -55
- package/services/__init__.py +50 -50
- package/services/__pycache__/__init__.cpython-312.pyc +0 -0
- package/services/__pycache__/curator.cpython-312.pyc +0 -0
- package/services/__pycache__/database.cpython-312.pyc +0 -0
- package/services/curator.py +1606 -0
- package/services/database.py +3637 -2485
- package/skills/__init__.py +21 -1
- package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/__pycache__/confidence_tracker.cpython-312.pyc +0 -0
- package/skills/__pycache__/context.cpython-312.pyc +0 -0
- package/skills/__pycache__/curator.cpython-312.pyc +0 -0
- package/skills/__pycache__/search.cpython-312.pyc +0 -0
- package/skills/__pycache__/session_review.cpython-312.pyc +0 -0
- package/skills/__pycache__/store.cpython-312.pyc +0 -0
- package/skills/confidence_tracker.py +441 -0
- package/skills/context.py +675 -0
- package/skills/curator.py +348 -0
- package/skills/search.py +369 -213
- package/skills/session_review.py +418 -0
- package/skills/store.py +377 -179
- package/update_system.py +829 -817
package/package.json
CHANGED
|
@@ -1,55 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "claude-memory-agent",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"claude",
|
|
7
|
-
"claude-code",
|
|
8
|
-
"memory",
|
|
9
|
-
"ai",
|
|
10
|
-
"mcp",
|
|
11
|
-
"semantic-search",
|
|
12
|
-
"embeddings",
|
|
13
|
-
"ollama"
|
|
14
|
-
],
|
|
15
|
-
"author": "
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
"os": [
|
|
50
|
-
"win32",
|
|
51
|
-
"darwin",
|
|
52
|
-
"linux"
|
|
53
|
-
],
|
|
54
|
-
"preferGlobal": true
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-memory-agent",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"memory",
|
|
9
|
+
"ai",
|
|
10
|
+
"mcp",
|
|
11
|
+
"semantic-search",
|
|
12
|
+
"embeddings",
|
|
13
|
+
"ollama"
|
|
14
|
+
],
|
|
15
|
+
"author": "Claude Memory Agent Contributors",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"bin": {
|
|
18
|
+
"claude-memory-agent": "./bin/cli.js",
|
|
19
|
+
"claude-memory": "./bin/cli.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin/",
|
|
23
|
+
"services/",
|
|
24
|
+
"skills/",
|
|
25
|
+
"hooks/",
|
|
26
|
+
"*.py",
|
|
27
|
+
"*.md",
|
|
28
|
+
"*.txt",
|
|
29
|
+
"*.html",
|
|
30
|
+
".env.example"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"postinstall": "node bin/postinstall.js",
|
|
34
|
+
"start": "python main.py",
|
|
35
|
+
"install-agent": "python install.py --auto",
|
|
36
|
+
"test": "python -m pytest"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=16.0.0"
|
|
40
|
+
},
|
|
41
|
+
"os": [
|
|
42
|
+
"win32",
|
|
43
|
+
"darwin",
|
|
44
|
+
"linux"
|
|
45
|
+
],
|
|
46
|
+
"preferGlobal": true
|
|
47
|
+
}
|
package/services/__init__.py
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
from .database import DatabaseService
|
|
2
|
-
from .embeddings import EmbeddingService
|
|
3
|
-
|
|
4
|
-
# Moltbot-inspired transparency services
|
|
5
|
-
from .daily_log import (
|
|
6
|
-
append_entry as daily_log_append,
|
|
7
|
-
append_session_summary as daily_log_append_session,
|
|
8
|
-
load_recent_logs as daily_log_read,
|
|
9
|
-
get_today_highlights as daily_log_highlights,
|
|
10
|
-
list_logs as daily_log_list,
|
|
11
|
-
get_log_path
|
|
12
|
-
)
|
|
13
|
-
from .memory_md_sync import (
|
|
14
|
-
sync_to_memory_md,
|
|
15
|
-
read_memory_md,
|
|
16
|
-
add_fact as add_memory_md_fact,
|
|
17
|
-
get_memory_md_summary,
|
|
18
|
-
get_memory_md_path
|
|
19
|
-
)
|
|
20
|
-
from .compaction_flush import (
|
|
21
|
-
check_flush_needed,
|
|
22
|
-
execute_flush as pre_compaction_flush,
|
|
23
|
-
list_flushes,
|
|
24
|
-
read_flush,
|
|
25
|
-
get_flush_path
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
__all__ = [
|
|
29
|
-
"DatabaseService",
|
|
30
|
-
"EmbeddingService",
|
|
31
|
-
# Daily log
|
|
32
|
-
"daily_log_append",
|
|
33
|
-
"daily_log_append_session",
|
|
34
|
-
"daily_log_read",
|
|
35
|
-
"daily_log_highlights",
|
|
36
|
-
"daily_log_list",
|
|
37
|
-
"get_log_path",
|
|
38
|
-
# MEMORY.md
|
|
39
|
-
"sync_to_memory_md",
|
|
40
|
-
"read_memory_md",
|
|
41
|
-
"add_memory_md_fact",
|
|
42
|
-
"get_memory_md_summary",
|
|
43
|
-
"get_memory_md_path",
|
|
44
|
-
# Compaction flush
|
|
45
|
-
"check_flush_needed",
|
|
46
|
-
"pre_compaction_flush",
|
|
47
|
-
"list_flushes",
|
|
48
|
-
"read_flush",
|
|
49
|
-
"get_flush_path",
|
|
50
|
-
]
|
|
1
|
+
from .database import DatabaseService
|
|
2
|
+
from .embeddings import EmbeddingService
|
|
3
|
+
|
|
4
|
+
# Moltbot-inspired transparency services
|
|
5
|
+
from .daily_log import (
|
|
6
|
+
append_entry as daily_log_append,
|
|
7
|
+
append_session_summary as daily_log_append_session,
|
|
8
|
+
load_recent_logs as daily_log_read,
|
|
9
|
+
get_today_highlights as daily_log_highlights,
|
|
10
|
+
list_logs as daily_log_list,
|
|
11
|
+
get_log_path
|
|
12
|
+
)
|
|
13
|
+
from .memory_md_sync import (
|
|
14
|
+
sync_to_memory_md,
|
|
15
|
+
read_memory_md,
|
|
16
|
+
add_fact as add_memory_md_fact,
|
|
17
|
+
get_memory_md_summary,
|
|
18
|
+
get_memory_md_path
|
|
19
|
+
)
|
|
20
|
+
from .compaction_flush import (
|
|
21
|
+
check_flush_needed,
|
|
22
|
+
execute_flush as pre_compaction_flush,
|
|
23
|
+
list_flushes,
|
|
24
|
+
read_flush,
|
|
25
|
+
get_flush_path
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"DatabaseService",
|
|
30
|
+
"EmbeddingService",
|
|
31
|
+
# Daily log
|
|
32
|
+
"daily_log_append",
|
|
33
|
+
"daily_log_append_session",
|
|
34
|
+
"daily_log_read",
|
|
35
|
+
"daily_log_highlights",
|
|
36
|
+
"daily_log_list",
|
|
37
|
+
"get_log_path",
|
|
38
|
+
# MEMORY.md
|
|
39
|
+
"sync_to_memory_md",
|
|
40
|
+
"read_memory_md",
|
|
41
|
+
"add_memory_md_fact",
|
|
42
|
+
"get_memory_md_summary",
|
|
43
|
+
"get_memory_md_path",
|
|
44
|
+
# Compaction flush
|
|
45
|
+
"check_flush_needed",
|
|
46
|
+
"pre_compaction_flush",
|
|
47
|
+
"list_flushes",
|
|
48
|
+
"read_flush",
|
|
49
|
+
"get_flush_path",
|
|
50
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|