code-session-memory 0.12.0 → 0.12.1
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 +1 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,26 +6,7 @@ Every time the AI agent finishes its turn, `code-session-memory` automatically i
|
|
|
6
6
|
|
|
7
7
|
## How it works
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
OpenCode (session.idle) Claude Code (Stop hook) Cursor (stop hook) VS Code (Stop hook) Codex (notify hook) Gemini CLI (AfterAgent)
|
|
11
|
-
│ │ │ │ │ │
|
|
12
|
-
│ REST API messages │ JSONL transcript │ JSONL transcript │ JSONL transcript │ JSONL session │ JSON session
|
|
13
|
-
▼ ▼ ▼ ▼ ▼ ▼
|
|
14
|
-
session-to-md transcript-to-messages cursor-transcript-to-messages vscode-transcript-to-messages codex-session-to-messages gemini-session-to-messages
|
|
15
|
-
│ │ │ │ │ │
|
|
16
|
-
└──────────────────────────┴───────────────────────┴─────────────────────┴──────────────────────┴──────────────────────┘
|
|
17
|
-
▼
|
|
18
|
-
chunker → heading-aware chunks (≤1000 tokens, 10% overlap)
|
|
19
|
-
│
|
|
20
|
-
▼
|
|
21
|
-
embedder → OpenAI text-embedding-3-large (3072 dims)
|
|
22
|
-
│ (all chunks batched in a single API call per turn)
|
|
23
|
-
▼
|
|
24
|
-
sqlite-vec DB → ~/.local/share/code-session-memory/sessions.db
|
|
25
|
-
│
|
|
26
|
-
▼
|
|
27
|
-
MCP server → query_sessions / get_session_chunks tools
|
|
28
|
-
```
|
|
9
|
+

|
|
29
10
|
|
|
30
11
|
Only **new messages** are indexed on each turn — previously indexed messages are skipped (tracked via `sessions_meta` table). This makes each indexing pass fast, even in long sessions.
|
|
31
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-session-memory",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Automatically index OpenCode, Claude Code, Cursor, VS Code, Codex, and Gemini CLI sessions into a shared sqlite-vec vector database for semantic search across your AI coding history",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/src/indexer.js",
|