nexus-agent-memory 0.1.0__py3-none-any.whl
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.
- nexus/__init__.py +1 -0
- nexus/belief.py +1 -0
- nexus/cli.py +1 -0
- nexus/constitution.py +1 -0
- nexus/core.py +1 -0
- nexus/drive.py +1 -0
- nexus/embedder.py +1 -0
- nexus/episodes.py +4 -0
- nexus/evolve.py +1 -0
- nexus/extract.py +1 -0
- nexus/facts.py +8 -0
- nexus/graph.py +1 -0
- nexus/hnsw.py +1 -0
- nexus/local.py +1 -0
- nexus/miner.py +1 -0
- nexus/resolve.py +4 -0
- nexus/search.py +1 -0
- nexus/utils.py +1 -0
- nexus_agent_memory-0.1.0.dist-info/METADATA +353 -0
- nexus_agent_memory-0.1.0.dist-info/RECORD +39 -0
- nexus_agent_memory-0.1.0.dist-info/WHEEL +5 -0
- nexus_agent_memory-0.1.0.dist-info/entry_points.txt +2 -0
- nexus_agent_memory-0.1.0.dist-info/licenses/LICENSE +21 -0
- nexus_agent_memory-0.1.0.dist-info/top_level.txt +2 -0
- src/__init__.py +9 -0
- src/nexus_belief.py +539 -0
- src/nexus_cli.py +423 -0
- src/nexus_constitution.py +357 -0
- src/nexus_core.py +2517 -0
- src/nexus_drive.py +201 -0
- src/nexus_embedder.py +386 -0
- src/nexus_evolve.py +492 -0
- src/nexus_extract.py +245 -0
- src/nexus_graph.py +411 -0
- src/nexus_hnsw.py +251 -0
- src/nexus_local.py +285 -0
- src/nexus_miner.py +421 -0
- src/nexus_search.py +409 -0
- src/nexus_utils.py +139 -0
nexus/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Nexus Memory System - compatibility package"""
|
nexus/belief.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_belief import *
|
nexus/cli.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_cli import *
|
nexus/constitution.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_constitution import *
|
nexus/core.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_core import *
|
nexus/drive.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_drive import *
|
nexus/embedder.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_embedder import *
|
nexus/episodes.py
ADDED
nexus/evolve.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_evolve import *
|
nexus/extract.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_extract import *
|
nexus/facts.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
class FactExtractor:
|
|
3
|
+
def __init__(self, *args, **kwargs):
|
|
4
|
+
raise NotImplementedError("FactExtractor not yet implemented in standalone package")
|
|
5
|
+
|
|
6
|
+
class FactStore:
|
|
7
|
+
def __init__(self, *args, **kwargs):
|
|
8
|
+
raise NotImplementedError("FactStore not yet implemented in standalone package")
|
nexus/graph.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_graph import *
|
nexus/hnsw.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_hnsw import *
|
nexus/local.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_local import *
|
nexus/miner.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_miner import *
|
nexus/resolve.py
ADDED
nexus/search.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_search import *
|
nexus/utils.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from src.nexus_utils import *
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nexus-agent-memory
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Cross-session persistent memory for AI Agents. 4500x faster retrieval, zero LLM dependency.
|
|
5
|
+
Home-page: https://github.com/chuf-China/nexus-memory
|
|
6
|
+
Author: chuf
|
|
7
|
+
Author-email: chuf <64515713+chuf-China@users.noreply.github.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/chuf-China/nexus-memory
|
|
10
|
+
Project-URL: Repository, https://github.com/chuf-China/nexus-memory
|
|
11
|
+
Project-URL: Issues, https://github.com/chuf-China/nexus-memory/issues
|
|
12
|
+
Keywords: ai-agent,memory,persistent-memory,llm,knowledge-graph,sqlite,mcp,vector-search
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Classifier: Topic :: Database
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: numpy>=1.21.0
|
|
27
|
+
Dynamic: author
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
|
|
32
|
+
<div align="center">
|
|
33
|
+
|
|
34
|
+
# 🧠 Nexus Memory
|
|
35
|
+
|
|
36
|
+
### Cross-Session Persistent Memory for AI Agents
|
|
37
|
+
|
|
38
|
+
**Your agent remembers everything. Across sessions. Across restarts. Forever.**
|
|
39
|
+
|
|
40
|
+
[](https://github.com/chuf-China/nexus-memory/actions/workflows/python-package.yml)
|
|
41
|
+
[](https://pypi.org/project/nexus-memory/)
|
|
42
|
+
[](https://opensource.org/licenses/MIT)
|
|
43
|
+
[](https://www.python.org/downloads/)
|
|
44
|
+
|
|
45
|
+
<br/>
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+

|
|
49
|
+

|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
[Install](#install) · [Quick Start](#quick-start) · [vs Competitors](#vs-competitors) · [Architecture](#architecture) · [API](#api) · [中文](README_CN.md)
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## The Problem
|
|
59
|
+
|
|
60
|
+
Every AI coding agent starts from zero. You explain your project, your preferences, your stack — again and again. Context windows fill up. Token costs explode. The agent never learns.
|
|
61
|
+
|
|
62
|
+
## The Solution
|
|
63
|
+
|
|
64
|
+
Nexus Memory gives your agent a persistent brain. It remembers facts, preferences, corrections, and context across sessions — with **zero LLM calls**, **20ms retrieval**, and **automatic knowledge promotion**.
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
from src.nexus_core import NexusCore
|
|
68
|
+
|
|
69
|
+
nexus = NexusCore("nexus.db")
|
|
70
|
+
|
|
71
|
+
# One line to remember
|
|
72
|
+
nexus.write("User prefers Python type hints", source="conversation", confidence=0.9)
|
|
73
|
+
|
|
74
|
+
# One line to recall
|
|
75
|
+
results = nexus.search("What coding style does the user prefer?", limit=5)
|
|
76
|
+
|
|
77
|
+
# One line to inject into any agent
|
|
78
|
+
system_prompt = f"You are helpful.\n{nexus.system_prompt_block()}"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Install
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pip install nexus-memory
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Or from source:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
git clone https://github.com/chuf-China/nexus-memory.git
|
|
91
|
+
cd nexus-memory
|
|
92
|
+
pip install -e .
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Quick Start
|
|
96
|
+
|
|
97
|
+
### Standalone (any agent)
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
from src.nexus_core import NexusCore
|
|
101
|
+
|
|
102
|
+
nexus = NexusCore("agent_memory.db")
|
|
103
|
+
|
|
104
|
+
class YourAgent:
|
|
105
|
+
def __init__(self):
|
|
106
|
+
self.memory = NexusCore("agent_memory.db")
|
|
107
|
+
|
|
108
|
+
def chat(self, user_input):
|
|
109
|
+
# Retrieve relevant memories (20ms)
|
|
110
|
+
context = self.memory.search(user_input, limit=3)
|
|
111
|
+
# Build prompt with memory
|
|
112
|
+
prompt = f"Memories: {context}\nUser: {user_input}"
|
|
113
|
+
response = self.llm.generate(prompt)
|
|
114
|
+
# Auto-save conversation
|
|
115
|
+
self.memory.write(f"Q: {user_input}\nA: {response}", source="conversation")
|
|
116
|
+
return response
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Lifecycle Hooks
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
nexus.register_hook("pre_llm_call", lambda ctx: ctx.update({
|
|
123
|
+
"alerts": nexus.get_alerts(),
|
|
124
|
+
"temporal": nexus.search_temporal(ctx["query"]),
|
|
125
|
+
"history": nexus.get_history(ctx["session_id"])
|
|
126
|
+
}))
|
|
127
|
+
|
|
128
|
+
nexus.register_hook("session_end", lambda ctx: {
|
|
129
|
+
nexus.consolidate(ctx["session_id"]),
|
|
130
|
+
nexus.knowledge_snapshot()
|
|
131
|
+
})
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### CLI
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
nexus-memory status # Show DB stats
|
|
138
|
+
nexus-memory search "query" # Search knowledge
|
|
139
|
+
nexus-memory export # Export to JSON
|
|
140
|
+
nexus-memory benchmark # Run performance test
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## vs Competitors
|
|
146
|
+
|
|
147
|
+
| Feature | Nexus Memory | [agentmemory](https://github.com/rohitg00/agentmemory) | [mem0](https://github.com/mem0ai/mem0) |
|
|
148
|
+
|---------|:---:|:---:|:---:|
|
|
149
|
+
| **Search Latency** | **20ms** | Unknown | ~100ms |
|
|
150
|
+
| **LLM Dependency** | **Zero** | Uses iii engine | Requires LLM |
|
|
151
|
+
| **Knowledge Layers** | **3-tier auto** | Claimed | Flat |
|
|
152
|
+
| **Correction Handling** | **SPO conflict + belief degradation** | Unknown | Basic overwrite |
|
|
153
|
+
| **Threat Detection** | **30+ patterns** | None | None |
|
|
154
|
+
| **Graph Relations** | **Yes (NetworkX)** | Unknown | No |
|
|
155
|
+
| **Vector Search** | **HNSW + fastembed** | Yes | Yes |
|
|
156
|
+
| **Full-Text Search** | **FTS5** | Yes | Yes |
|
|
157
|
+
| **Auto Extraction** | **Dual-channel (regex + LLM)** | Hooks only | LLM only |
|
|
158
|
+
| **Memory Aging** | **48h decay + auto-archive** | Unknown | None |
|
|
159
|
+
| **Scope Control** | **3-tier security** | None | None |
|
|
160
|
+
| **External DB Required** | **No** | No | Yes (Qdrant/Redis) |
|
|
161
|
+
| **Language** | **Python** | JavaScript | Python |
|
|
162
|
+
| **License** | **MIT** | Unknown | Apache 2.0 |
|
|
163
|
+
|
|
164
|
+
### Why Nexus Wins on Memory Quality
|
|
165
|
+
|
|
166
|
+
**Agentmemory** is a great product with broad agent support (20+ integrations). But it treats memory as a black box inside the iii engine. You can't see how knowledge is stored, promoted, or corrected.
|
|
167
|
+
|
|
168
|
+
**Nexus Memory** is transparent and precise:
|
|
169
|
+
|
|
170
|
+
- **SPO Triplets**: Facts stored as Subject-Predicate-Object with confidence scores, not flat text
|
|
171
|
+
- **Belief Network**: Knowledge auto-promotes from Observation → Belief → Fact based on evidence
|
|
172
|
+
- **Correction Intelligence**: When you say "that's wrong", the old fact degrades AND the new fact promotes — a natural淘汰 system, not a permanent correction list that pollutes context
|
|
173
|
+
- **Write-time Merging**: 5 strategies (exact_dup, fuzzy_dup, complement, contradict, new) prevent knowledge bloat
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Architecture
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
┌─────────────────────────────────────────────────────┐
|
|
181
|
+
│ Agent / LLM │
|
|
182
|
+
│ (Claude Code, Cursor, etc.) │
|
|
183
|
+
└──────────────┬──────────────────────┬───────────────┘
|
|
184
|
+
│ search() │ write()
|
|
185
|
+
▼ ▼
|
|
186
|
+
┌─────────────────────────────────────────────────────┐
|
|
187
|
+
│ Nexus Core Engine │
|
|
188
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
189
|
+
│ │ Extract │ │ Search │ │ Belief │ │
|
|
190
|
+
│ │ (dual- │ │ (4-way │ │ (3-tier │ │
|
|
191
|
+
│ │ channel)│ │ fusion) │ │ promo) │ │
|
|
192
|
+
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
|
|
193
|
+
│ │ │ │ │
|
|
194
|
+
│ ┌────▼────────────▼────────────▼────┐ │
|
|
195
|
+
│ │ SQLite + FTS5 + WAL │ │
|
|
196
|
+
│ │ HNSW Vectors │ NetworkX Graph │ │
|
|
197
|
+
│ └───────────────────────────────────┘ │
|
|
198
|
+
│ │
|
|
199
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
200
|
+
│ │Constitu- │ │ Evolve │ │ Miner │ │
|
|
201
|
+
│ │tion (30+ │ │ (auto- │ │ (know- │ │
|
|
202
|
+
│ │ threats) │ │ aging) │ │ ledge) │ │
|
|
203
|
+
│ └──────────┘ └──────────┘ └──────────┘ │
|
|
204
|
+
└─────────────────────────────────────────────────────┘
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 3-Layer Knowledge Architecture
|
|
208
|
+
|
|
209
|
+
| Layer | Confidence | Behavior |
|
|
210
|
+
|-------|-----------|----------|
|
|
211
|
+
| **Observation** | 0.30 - 0.50 | Raw signal, first appearance |
|
|
212
|
+
| **Belief** | 0.70 - 0.85 | Multiple confirmations, emerging pattern |
|
|
213
|
+
| **Fact** | 0.85 + | High confidence, persistent knowledge |
|
|
214
|
+
|
|
215
|
+
- Auto-promote: Same pattern ≥3 times OR user confirmation
|
|
216
|
+
- Auto-degrade: 48h unused → -0.05, corrected → -0.30
|
|
217
|
+
- Auto-archive: confidence < 0.30 → archived
|
|
218
|
+
|
|
219
|
+
### 6-Domain Scoring
|
|
220
|
+
|
|
221
|
+
Every knowledge entry is scored on:
|
|
222
|
+
**Freshness** · **Importance** · **Frequency** · **Relevance** · **Confidence** · **Feedback**
|
|
223
|
+
|
|
224
|
+
### 4-Way Search Fusion
|
|
225
|
+
|
|
226
|
+
1. **FTS5 Full-Text** (20ms) — SQLite native full-text index
|
|
227
|
+
2. **Vector Search** (50ms) — HNSW approximate nearest neighbor with fastembed
|
|
228
|
+
3. **Graph Query** (10ms) — NetworkX adjacency traversal
|
|
229
|
+
4. **Cross-Encoder Reranking** — Final relevance scoring
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Performance Benchmarks
|
|
234
|
+
|
|
235
|
+
| Operation | Latency | Notes |
|
|
236
|
+
|-----------|---------|-------|
|
|
237
|
+
| FTS5 Search | 20ms | SQLite full-text index |
|
|
238
|
+
| Vector Search | 50ms | HNSW approximate nearest neighbor |
|
|
239
|
+
| Graph Query | 10ms | Adjacency list traversal |
|
|
240
|
+
| Write Knowledge | 5ms | WAL mode batch write |
|
|
241
|
+
| Consolidation | 100ms | Merge + dedup + score update |
|
|
242
|
+
|
|
243
|
+
**4500x faster** than LLM-based memory retrieval. Zero external service dependencies.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## Security Defense
|
|
248
|
+
|
|
249
|
+
30+ built-in threat patterns:
|
|
250
|
+
|
|
251
|
+
- **Injection**: Prompt injection, role hijacking, system prompt leakage
|
|
252
|
+
- **Exfiltration**: Encoding bypass, covert channels, C2 communication
|
|
253
|
+
- **Anti-forensics**: Log tampering, timestamp forgery, evidence destruction
|
|
254
|
+
|
|
255
|
+
3-tier scope control:
|
|
256
|
+
- `all` — Scan all knowledge
|
|
257
|
+
- `context` — Scan only context-related knowledge
|
|
258
|
+
- `strict` — Strict mode, highest security level
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Directory Structure
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
nexus-memory/
|
|
266
|
+
├── src/
|
|
267
|
+
│ ├── nexus_core.py # Core engine (2448 lines)
|
|
268
|
+
│ ├── nexus_drive.py # Data persistence layer
|
|
269
|
+
│ ├── nexus_extract.py # Knowledge extractor (dual-channel)
|
|
270
|
+
│ ├── nexus_search.py # Hybrid search engine (4-way fusion)
|
|
271
|
+
│ ├── nexus_embedder.py # Vector embedding (fastembed)
|
|
272
|
+
│ ├── nexus_hnsw.py # HNSW index
|
|
273
|
+
│ ├── nexus_graph.py # Graph relationship (NetworkX)
|
|
274
|
+
│ ├── nexus_belief.py # Belief network (3-tier promotion)
|
|
275
|
+
│ ├── nexus_constitution.py # Security defense (30+ patterns)
|
|
276
|
+
│ ├── nexus_evolve.py # Self-evolution (aging + consolidation)
|
|
277
|
+
│ ├── nexus_miner.py # Knowledge mining
|
|
278
|
+
│ ├── nexus_cli.py # CLI tool
|
|
279
|
+
│ ├── nexus_local.py # Local storage
|
|
280
|
+
│ └── nexus_utils.py # Utility functions
|
|
281
|
+
├── tests/
|
|
282
|
+
│ ├── test_nexus_core.py # Core tests
|
|
283
|
+
│ └── test_nexus_benchmark.py # Performance benchmarks
|
|
284
|
+
├── docs/
|
|
285
|
+
│ └── architecture.md # Architecture documentation
|
|
286
|
+
├── pyproject.toml # PyPI packaging
|
|
287
|
+
├── setup.py # Installation config
|
|
288
|
+
└── README.md # This file
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Dependencies
|
|
292
|
+
|
|
293
|
+
- Python 3.9+
|
|
294
|
+
- SQLite 3.38+ (FTS5 support)
|
|
295
|
+
- numpy (vector computation)
|
|
296
|
+
- **No external service dependencies** — pure local execution
|
|
297
|
+
|
|
298
|
+
## API
|
|
299
|
+
|
|
300
|
+
```python
|
|
301
|
+
from src.nexus_core import NexusCore
|
|
302
|
+
|
|
303
|
+
nexus = NexusCore("nexus.db")
|
|
304
|
+
|
|
305
|
+
# Write
|
|
306
|
+
nexus.write(content, source="conversation", confidence=0.9, domain="workflow")
|
|
307
|
+
|
|
308
|
+
# Search
|
|
309
|
+
results = nexus.search(query, limit=5, domain_filter=None)
|
|
310
|
+
|
|
311
|
+
# System prompt injection
|
|
312
|
+
block = nexus.system_prompt_block()
|
|
313
|
+
|
|
314
|
+
# Consolidate session
|
|
315
|
+
nexus.consolidate(session_id)
|
|
316
|
+
|
|
317
|
+
# Knowledge snapshot
|
|
318
|
+
nexus.knowledge_snapshot()
|
|
319
|
+
|
|
320
|
+
# Register lifecycle hooks
|
|
321
|
+
nexus.register_hook(event_name, callback)
|
|
322
|
+
|
|
323
|
+
# Get alerts
|
|
324
|
+
alerts = nexus.get_alerts()
|
|
325
|
+
|
|
326
|
+
# Temporal search
|
|
327
|
+
results = nexus.search_temporal(query)
|
|
328
|
+
|
|
329
|
+
# Session history
|
|
330
|
+
history = nexus.get_history(session_id)
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
## Run Tests
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
python -m pytest tests/ -v
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
## License
|
|
340
|
+
|
|
341
|
+
MIT License
|
|
342
|
+
|
|
343
|
+
## Acknowledgments
|
|
344
|
+
|
|
345
|
+
Built as the memory backbone of [Hermes Agent](https://github.com/NousResearch/hermes-agent). Inspired by Karpathy's LLM Wiki pattern — extended with confidence scoring, lifecycle management, knowledge graphs, and hybrid search.
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
<div align="center">
|
|
350
|
+
|
|
351
|
+
**If Nexus Memory helps your agent, give it a ⭐**
|
|
352
|
+
|
|
353
|
+
</div>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
nexus/__init__.py,sha256=fHcmm57DptKgi7U2EMJp6zmZ0WoYc4Y-JzgSPrAenwo,50
|
|
2
|
+
nexus/belief.py,sha256=M6YEjW6aSJEzE2IgPHB05aw3ZJlgaSyaWcVH9lWq8c0,31
|
|
3
|
+
nexus/cli.py,sha256=HyikL4p_3mfAwBQbeRJzJZjCNr13Picg0fggl9OvPoQ,28
|
|
4
|
+
nexus/constitution.py,sha256=E7HdW40c1VBmiwD_Zu4I1E4nKgUACh5ZVyXRD5K6efs,37
|
|
5
|
+
nexus/core.py,sha256=NeYc5JL2I5ZT7m-RsZWO5qHrdjRbPerMRoYcHS5XRD4,29
|
|
6
|
+
nexus/drive.py,sha256=XNFm--i1Yf_G0pTzBC8B2SaxzgBFPSCJg2MGPD2zKpY,30
|
|
7
|
+
nexus/embedder.py,sha256=ku2awG26RA7VCvxD35uppO-VcLHyR274LJXqhytDQgA,33
|
|
8
|
+
nexus/episodes.py,sha256=705LE6kIusxERCr_f_yAQ1EWAw4xkblHOVR08ODbAP4,154
|
|
9
|
+
nexus/evolve.py,sha256=lMhvAcUDL3gob5Tq1bY4uJz57Cx92YPaQo2UfdHwzCo,31
|
|
10
|
+
nexus/extract.py,sha256=daeb3gByszZ8HMX5TmCeHFl8W7GrTmzId7125Tcdp3E,32
|
|
11
|
+
nexus/facts.py,sha256=w-u6yZYZG_cCs4Al0PJ1CNSVtaIKaLZAjWeA6Y4zRFE,304
|
|
12
|
+
nexus/graph.py,sha256=YBbqjiYjSYq2G-Xb9eMIK490t9PSIGnBbF5U3Vh2pzs,30
|
|
13
|
+
nexus/hnsw.py,sha256=-OuoWy-r5s5xOYqRLkSxb09MzurRYaR7ZKX4SO8fMjg,29
|
|
14
|
+
nexus/local.py,sha256=tAjPG0Ey9Z2YDEQvtNNrqA_MKgnsH4AJtj-WFsZDUtk,30
|
|
15
|
+
nexus/miner.py,sha256=j6BuVorIVmbJj39VFK_ko7HHf80Z_ET2KJK7xg1MMy0,30
|
|
16
|
+
nexus/resolve.py,sha256=rfLPBy5T0Wh6Vnh3ya2mc6sHrF6nK1KfdWCCZGYlUys,158
|
|
17
|
+
nexus/search.py,sha256=L3oMN-jOjoCb1sa1kogciTiGN6-xD-e59TrFLVh3YMA,31
|
|
18
|
+
nexus/utils.py,sha256=0Yra5F-lTV7lyv0WxjgHToDa5uRK3nyLDVNhJPpApHI,30
|
|
19
|
+
nexus_agent_memory-0.1.0.dist-info/licenses/LICENSE,sha256=mJ5DHmOWK6Lq7OJ1462ZcyESgqDg-YEdGlWXgIk4xuI,1067
|
|
20
|
+
src/__init__.py,sha256=H1MaEKG2F4kHdGEo84pv_ISx7anvYgUe7Ab932D7PCk,285
|
|
21
|
+
src/nexus_belief.py,sha256=EeDpyo_JT_k7nfkUTftBWjSrCjcdXnHrfOhuwQiKBwg,22492
|
|
22
|
+
src/nexus_cli.py,sha256=vAXAzhi1U7ETy-W63dah17XakXvvShCxcLD4wJvWZuM,12475
|
|
23
|
+
src/nexus_constitution.py,sha256=Nj9SeskbzYcrAWShCK_Ltla_e9IF5oFHee002QqypJ0,13834
|
|
24
|
+
src/nexus_core.py,sha256=THw3uQ8L4YB9FMh6hOzdGV_xq3w9GyWySauqZ5_1mwE,106862
|
|
25
|
+
src/nexus_drive.py,sha256=iBsxWZIdx27NYEaIyzhgiVXSYud66-IRbDY6L3GhOKU,7140
|
|
26
|
+
src/nexus_embedder.py,sha256=K_pINcZxgYH1n8WChbfg0mYSG2wnDHIL2q52BwZZ7nY,13793
|
|
27
|
+
src/nexus_evolve.py,sha256=FwCHrSSmpTa5fF6i8d0OKml-SiY9HS1LExGpVVGGFOc,18399
|
|
28
|
+
src/nexus_extract.py,sha256=ocNPGZWh0JGGYLz5cpO5Q0z39FizAEyvMOdhJCLfWww,8951
|
|
29
|
+
src/nexus_graph.py,sha256=fjJ5wPCHufpTEhIEB95Ka63RtfLftSAYrPtVz1pTGQU,16167
|
|
30
|
+
src/nexus_hnsw.py,sha256=WF3HU3wNX16Ba7sKPG3PnoMZS0a4R_-NuaeM5fwDam4,8585
|
|
31
|
+
src/nexus_local.py,sha256=AukmgRCAZ-1hwh_eIwjco6IG_czhcP9A_QLU4PwarG4,10225
|
|
32
|
+
src/nexus_miner.py,sha256=7qRKv4NlNg3SIlNn63TRlEZ99A_KOu5hrLe2lX8xTmM,16186
|
|
33
|
+
src/nexus_search.py,sha256=WW3gEkhkYeKA7XapXTsUSFoLa6F8yBG2g9mN1A_TKKs,15803
|
|
34
|
+
src/nexus_utils.py,sha256=5xHoVavK_h0E5GugCn2y419uGkYBFe2aQ357FDwLjrE,3906
|
|
35
|
+
nexus_agent_memory-0.1.0.dist-info/METADATA,sha256=8FZeY-SlIEQFyzKxKtl6DxKSucOY7c0rmIovEe06Oak,13429
|
|
36
|
+
nexus_agent_memory-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
37
|
+
nexus_agent_memory-0.1.0.dist-info/entry_points.txt,sha256=EAcYDf50G0LjEoszM-2MGZJX-MjSeQ8llBpfNS0SC4E,52
|
|
38
|
+
nexus_agent_memory-0.1.0.dist-info/top_level.txt,sha256=SXyG2-neQN3raYSF5pqXtKJOsbIfln0L2ZTf9ORSl-A,10
|
|
39
|
+
nexus_agent_memory-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 chuf-China
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
src/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Nexus Memory System - Cross-session persistent memory for AI Agents"""
|
|
2
|
+
|
|
3
|
+
from .nexus_core import NexusCore
|
|
4
|
+
from .nexus_drive import NexusDrive
|
|
5
|
+
from .nexus_search import EnhancedSearch
|
|
6
|
+
|
|
7
|
+
__version__ = "1.0.0"
|
|
8
|
+
__author__ = "chuf"
|
|
9
|
+
__all__ = ["NexusCore", "NexusDrive", "EnhancedSearch"]
|