llm-kosh 2.0.0__tar.gz
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.
- llm_kosh-2.0.0/PKG-INFO +92 -0
- llm_kosh-2.0.0/README.md +60 -0
- llm_kosh-2.0.0/llm_kosh/__init__.py +0 -0
- llm_kosh-2.0.0/llm_kosh/cli.py +560 -0
- llm_kosh-2.0.0/llm_kosh/daemon.py +260 -0
- llm_kosh-2.0.0/llm_kosh/mcp_server.py +186 -0
- llm_kosh-2.0.0/llm_kosh/server.py +304 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/PKG-INFO +92 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/SOURCES.txt +29 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/dependency_links.txt +1 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/entry_points.txt +2 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/requires.txt +14 -0
- llm_kosh-2.0.0/llm_kosh.egg-info/top_level.txt +1 -0
- llm_kosh-2.0.0/pyproject.toml +56 -0
- llm_kosh-2.0.0/setup.cfg +4 -0
- llm_kosh-2.0.0/tests/test_brute.py +41 -0
- llm_kosh-2.0.0/tests/test_cli_core.py +41 -0
- llm_kosh-2.0.0/tests/test_cli_healing.py +46 -0
- llm_kosh-2.0.0/tests/test_cli_health.py +31 -0
- llm_kosh-2.0.0/tests/test_cli_intake.py +97 -0
- llm_kosh-2.0.0/tests/test_cli_packs.py +47 -0
- llm_kosh-2.0.0/tests/test_cli_processors.py +76 -0
- llm_kosh-2.0.0/tests/test_cli_semantic.py +18 -0
- llm_kosh-2.0.0/tests/test_conformance.py +52 -0
- llm_kosh-2.0.0/tests/test_daemon.py +59 -0
- llm_kosh-2.0.0/tests/test_engine_direct.py +79 -0
- llm_kosh-2.0.0/tests/test_imports.py +73 -0
- llm_kosh-2.0.0/tests/test_mcp_adapter.py +60 -0
- llm_kosh-2.0.0/tests/test_receipt_trust.py +86 -0
- llm_kosh-2.0.0/tests/test_server.py +114 -0
- llm_kosh-2.0.0/tests/test_workbench.py +70 -0
llm_kosh-2.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llm-kosh
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Local-first AI memory cartridge: persistent, cross-session memory for Claude and any LLM via MCP
|
|
5
|
+
Author-email: Vaibhav Rastogi <rastogivaibhav@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://rastogivaibhav.github.io/llm-kosh
|
|
8
|
+
Project-URL: Repository, https://github.com/rastogivaibhav/llm-kosh
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/rastogivaibhav/llm-kosh/issues
|
|
10
|
+
Keywords: mcp,llm,memory,claude,ai,context,cartridge,sqlite,fts5
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
Provides-Extra: watch
|
|
23
|
+
Requires-Dist: watchdog>=3.0.0; extra == "watch"
|
|
24
|
+
Provides-Extra: semantic
|
|
25
|
+
Requires-Dist: sentence-transformers>=2.2.0; extra == "semantic"
|
|
26
|
+
Provides-Extra: server
|
|
27
|
+
Requires-Dist: fastapi>=0.100.0; extra == "server"
|
|
28
|
+
Requires-Dist: uvicorn>=0.23.0; extra == "server"
|
|
29
|
+
Requires-Dist: mcp>=1.0.0; extra == "server"
|
|
30
|
+
Provides-Extra: all
|
|
31
|
+
Requires-Dist: llm-kosh[semantic,server,watch]; extra == "all"
|
|
32
|
+
|
|
33
|
+
# llm-kosh
|
|
34
|
+
|
|
35
|
+
**Give your local LLMs a permanent, air-gapped memory cartridge.**
|
|
36
|
+
|
|
37
|
+
`llm-kosh` is a lightning-fast, SQLite-backed memory system that gives AI assistants (like Claude and Cursor) permanent recall across sessions. Stop copy-pasting the same 15 architectural decisions and database schemas into every new chat.
|
|
38
|
+
|
|
39
|
+
By running completely locally, it guarantees zero cloud syncing, zero API costs, and absolute privacy for your proprietary codebase.
|
|
40
|
+
|
|
41
|
+
## 🚀 The Killer Feature: Native MCP Server
|
|
42
|
+
`llm-kosh` natively supports the **Model Context Protocol (MCP)**. This means tools like Claude Desktop and Cursor can automatically search and read your memory cartridge *without you doing anything*.
|
|
43
|
+
|
|
44
|
+
### Claude Desktop Setup
|
|
45
|
+
Simply add this to your `claude_desktop_config.json`:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"mcpServers": {
|
|
50
|
+
"llm-kosh": {
|
|
51
|
+
"command": "uvx",
|
|
52
|
+
"args": ["llm-kosh", "mcp", "--root", "C:/path/to/your/cartridge", "--allow-write"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
*Now, when you ask Claude "What database are we using for auth?", it automatically searches your `llm-kosh` cartridge and knows the answer.*
|
|
58
|
+
|
|
59
|
+
## ✨ Features
|
|
60
|
+
|
|
61
|
+
- 🧠 **Lightning Fast Local Memory:** Powered by an embedded SQLite FTS5 database. Sub-50ms search times across thousands of context files.
|
|
62
|
+
- ⚡ **Global Quick Capture:** Press `Ctrl+Shift+Space` anywhere on your OS to instantly dump a thought, decision, or code snippet into your cartridge.
|
|
63
|
+
- 🛡️ **Air-Gapped & Secure:** Built-in safety Airlock prevents destructive writes. No data ever leaves your machine unless you explicitly pack it.
|
|
64
|
+
- 🖥️ **Beautiful Desktop UI:** Comes with a glassmorphism Electron/React desktop app to manage your memory, monitor the MCP daemon, and configure hotkeys.
|
|
65
|
+
|
|
66
|
+
## 📦 Quickstart
|
|
67
|
+
|
|
68
|
+
Get from zero to a running memory cartridge in under 2 minutes.
|
|
69
|
+
|
|
70
|
+
**1. Install the core system**
|
|
71
|
+
```bash
|
|
72
|
+
pip install llm-kosh
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**2. Initialize a new cartridge**
|
|
76
|
+
```bash
|
|
77
|
+
# Creates a new .llm-kosh root in your current directory
|
|
78
|
+
llm-kosh init --owner "Your Name"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**3. Launch the Desktop App & Daemon**
|
|
82
|
+
```bash
|
|
83
|
+
# Starts the UI, the background watcher, and the MCP bridge
|
|
84
|
+
llm-kosh desktop
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### 📚 Deep Dives:
|
|
90
|
+
- [Architecture Overview](docs/ARCHITECTURE.md)
|
|
91
|
+
- [MCP Integration Guide](docs/MCP_GUIDE.md)
|
|
92
|
+
- [Comprehensive CLI Reference](docs/CLI_REFERENCE.md)
|
llm_kosh-2.0.0/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# llm-kosh
|
|
2
|
+
|
|
3
|
+
**Give your local LLMs a permanent, air-gapped memory cartridge.**
|
|
4
|
+
|
|
5
|
+
`llm-kosh` is a lightning-fast, SQLite-backed memory system that gives AI assistants (like Claude and Cursor) permanent recall across sessions. Stop copy-pasting the same 15 architectural decisions and database schemas into every new chat.
|
|
6
|
+
|
|
7
|
+
By running completely locally, it guarantees zero cloud syncing, zero API costs, and absolute privacy for your proprietary codebase.
|
|
8
|
+
|
|
9
|
+
## 🚀 The Killer Feature: Native MCP Server
|
|
10
|
+
`llm-kosh` natively supports the **Model Context Protocol (MCP)**. This means tools like Claude Desktop and Cursor can automatically search and read your memory cartridge *without you doing anything*.
|
|
11
|
+
|
|
12
|
+
### Claude Desktop Setup
|
|
13
|
+
Simply add this to your `claude_desktop_config.json`:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"llm-kosh": {
|
|
19
|
+
"command": "uvx",
|
|
20
|
+
"args": ["llm-kosh", "mcp", "--root", "C:/path/to/your/cartridge", "--allow-write"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
*Now, when you ask Claude "What database are we using for auth?", it automatically searches your `llm-kosh` cartridge and knows the answer.*
|
|
26
|
+
|
|
27
|
+
## ✨ Features
|
|
28
|
+
|
|
29
|
+
- 🧠 **Lightning Fast Local Memory:** Powered by an embedded SQLite FTS5 database. Sub-50ms search times across thousands of context files.
|
|
30
|
+
- ⚡ **Global Quick Capture:** Press `Ctrl+Shift+Space` anywhere on your OS to instantly dump a thought, decision, or code snippet into your cartridge.
|
|
31
|
+
- 🛡️ **Air-Gapped & Secure:** Built-in safety Airlock prevents destructive writes. No data ever leaves your machine unless you explicitly pack it.
|
|
32
|
+
- 🖥️ **Beautiful Desktop UI:** Comes with a glassmorphism Electron/React desktop app to manage your memory, monitor the MCP daemon, and configure hotkeys.
|
|
33
|
+
|
|
34
|
+
## 📦 Quickstart
|
|
35
|
+
|
|
36
|
+
Get from zero to a running memory cartridge in under 2 minutes.
|
|
37
|
+
|
|
38
|
+
**1. Install the core system**
|
|
39
|
+
```bash
|
|
40
|
+
pip install llm-kosh
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**2. Initialize a new cartridge**
|
|
44
|
+
```bash
|
|
45
|
+
# Creates a new .llm-kosh root in your current directory
|
|
46
|
+
llm-kosh init --owner "Your Name"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**3. Launch the Desktop App & Daemon**
|
|
50
|
+
```bash
|
|
51
|
+
# Starts the UI, the background watcher, and the MCP bridge
|
|
52
|
+
llm-kosh desktop
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### 📚 Deep Dives:
|
|
58
|
+
- [Architecture Overview](docs/ARCHITECTURE.md)
|
|
59
|
+
- [MCP Integration Guide](docs/MCP_GUIDE.md)
|
|
60
|
+
- [Comprehensive CLI Reference](docs/CLI_REFERENCE.md)
|
|
File without changes
|