nexo-brain 0.1.1 → 0.2.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 CHANGED
@@ -143,19 +143,26 @@ The installer handles everything:
143
143
  Generating operator instructions...
144
144
 
145
145
  ╔══════════════════════════════════════════════════════════╗
146
- ║ Atlas is ready.
147
- ║ Open Claude Code and start a conversation. ║
146
+ ║ Atlas is ready. Type 'atlas' to start.
148
147
  ╚══════════════════════════════════════════════════════════╝
149
148
  ```
150
149
 
151
- Open Claude Code and start working. Atlas will introduce itself on the first message.
150
+ ### Starting a Session
151
+
152
+ The installer creates a shell alias with your chosen name. Just type it:
153
+
154
+ ```bash
155
+ atlas
156
+ ```
157
+
158
+ That's it. No need to run `claude` manually. Atlas will greet you immediately — adapted to the time of day, resuming from where you left off if there's a previous session. No cold starts, no waiting for your input.
152
159
 
153
160
  ### What Gets Installed
154
161
 
155
162
  | Component | What | Where |
156
163
  |-----------|------|-------|
157
164
  | Cognitive engine | Python: fastembed, numpy, vector search | pip packages |
158
- | MCP server | 50+ tools for memory, learning, guard | ~/.nexo/ |
165
+ | MCP server | 76 tools for memory, learning, guard | ~/.nexo/ |
159
166
  | Plugins | Guard, episodic memory, cognitive memory, entities, preferences | ~/.nexo/plugins/ |
160
167
  | Hooks | Session capture, briefing, stop detection | ~/.nexo/hooks/ |
161
168
  | LaunchAgents | Decay, sleep, audit, postmortem, catch-up | ~/Library/LaunchAgents/ |
@@ -166,27 +173,31 @@ Open Claude Code and start working. Atlas will introduce itself on the first mes
166
173
 
167
174
  - **macOS** (Linux support planned)
168
175
  - **Node.js 18+** (for the installer)
176
+ - **Claude Opus (latest version) strongly recommended.** NEXO provides 76 MCP tools across 16 categories. This cognitive load requires a top-tier model with large context window. Smaller models (Haiku, Sonnet) may struggle with tool selection and produce inconsistent results. Opus handles all 76 tools without hesitation.
169
177
  - Python 3, Homebrew, and Claude Code are installed automatically if missing.
170
178
 
171
179
  ## Architecture
172
180
 
173
- ### 50+ MCP Tools
174
-
175
- | Category | Tools | Purpose |
176
- |----------|-------|---------|
177
- | Cognitive (8) | retrieve, stats, inspect, metrics, dissonance, resolve, sentiment, trust | The brain |
178
- | Guard (3) | check, stats, log_repetition | Error prevention |
179
- | Episodic (10) | changes, decisions, session diary, recall | What happened and why |
180
- | Sessions (3) | startup, heartbeat, status | Session lifecycle |
181
- | Reminders (4) | create, update, complete, delete | User's tasks |
182
- | Followups (4) | create, update, complete, delete | System's tasks |
183
- | Learnings (5) | add, search, update, delete, list | Error patterns |
184
- | Entities (5) | search, create, update, delete, list | People, services, URLs |
185
- | Preferences (4) | get, set, list, delete | Observed preferences |
186
- | Credentials (5) | create, get, update, delete, list | Secure storage |
187
- | Agents (5) | get, create, update, delete, list | Agent delegation |
188
- | Backup (3) | now, list, restore | Data safety |
189
- | Evolution (5) | propose, approve, reject, status, history | Self-improvement |
181
+ ### 76 MCP Tools across 16 Categories
182
+
183
+ | Category | Count | Tools | Purpose |
184
+ |----------|-------|-------|---------|
185
+ | Cognitive | 8 | retrieve, stats, inspect, metrics, dissonance, resolve, sentiment, trust | The brain — memory, RAG, trust, mood |
186
+ | Guard | 3 | check, stats, log_repetition | Metacognitive error prevention |
187
+ | Episodic | 10 | change_log/search/commit, decision_log/outcome/search, review_queue, diary_write/read, recall | What happened and why |
188
+ | Sessions | 3 | startup, heartbeat, status | Session lifecycle + context shift detection |
189
+ | Coordination | 7 | track, untrack, files, send, ask, answer, check_answer | Multi-session file coordination + messaging |
190
+ | Reminders | 5 | list, create, update, complete, delete | User's tasks and deadlines |
191
+ | Followups | 4 | create, update, complete, delete | System's autonomous verification tasks |
192
+ | Learnings | 5 | add, search, update, delete, list | Error patterns and prevention rules |
193
+ | Credentials | 5 | create, get, update, delete, list | Secure local credential storage |
194
+ | Task History | 3 | log, list, frequency | Execution tracking and overdue alerts |
195
+ | Menu | 1 | menu | Operations center with box-drawing UI |
196
+ | Entities | 5 | search, create, update, delete, list | People, services, URLs |
197
+ | Preferences | 4 | get, set, list, delete | Observed user preferences |
198
+ | Agents | 5 | get, create, update, delete, list | Agent delegation registry |
199
+ | Backup | 3 | now, list, restore | SQLite data safety |
200
+ | Evolution | 5 | propose, approve, reject, status, history | Self-improvement proposals |
190
201
 
191
202
  ### Plugin System
192
203
 
@@ -228,6 +239,67 @@ NEXO isn't just engineering — it's applied cognitive psychology:
228
239
  | Synaptic Pruning | Automated cleanup of weak, unused memories |
229
240
  | Associative Memory | Semantic search finds related concepts, not just matching words |
230
241
 
242
+ ## OpenClaw Integration
243
+
244
+ NEXO Brain works as a cognitive memory backend for [OpenClaw](https://github.com/openclaw/openclaw). Three integration paths, from instant to deep:
245
+
246
+ ### Path 1: MCP Bridge (Zero Code — Works Now)
247
+
248
+ Add NEXO Brain to your OpenClaw config at `~/.openclaw/openclaw.json`:
249
+
250
+ ```json
251
+ {
252
+ "mcp": {
253
+ "servers": {
254
+ "nexo-brain": {
255
+ "command": "python3",
256
+ "args": ["~/.nexo/src/server.py"],
257
+ "env": {
258
+ "NEXO_HOME": "~/.nexo"
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+ ```
265
+
266
+ Or via CLI:
267
+
268
+ ```bash
269
+ openclaw mcp set nexo-brain '{"command":"python3","args":["~/.nexo/src/server.py"],"env":{"NEXO_HOME":"~/.nexo"}}'
270
+ openclaw gateway restart
271
+ ```
272
+
273
+ All 76 NEXO tools become available to your OpenClaw agent immediately.
274
+
275
+ > **First time?** Run `npx nexo-brain` first to install the cognitive engine and dependencies.
276
+
277
+ ### Path 2: ClawHub Skill (Install in Seconds)
278
+
279
+ ```bash
280
+ npx clawhub@latest install nexo-brain
281
+ ```
282
+
283
+ ### Path 3: Native Memory Plugin (Replaces Default Memory)
284
+
285
+ ```bash
286
+ npm install @wazionapps/openclaw-memory-nexo-brain
287
+ ```
288
+
289
+ Configure in `~/.openclaw/openclaw.json`:
290
+
291
+ ```json
292
+ {
293
+ "plugins": {
294
+ "slots": {
295
+ "memory": "memory-nexo-brain"
296
+ }
297
+ }
298
+ }
299
+ ```
300
+
301
+ This replaces OpenClaw's default memory system with NEXO's full cognitive architecture — Atkinson-Shiffrin memory, semantic RAG, trust scoring, guard system, and all 76 tools.
302
+
231
303
  ## Contributing
232
304
 
233
305
  See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. Issues and PRs welcome.