open-agents-ai 0.138.52 → 0.138.56
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 +49 -7
- package/dist/index.js +12526 -11916
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<pre align="center">
|
|
3
|
+
██████╗ █████╗
|
|
4
|
+
██╔═══██╗██╔══██╗ ░▒▓█▓▒░ ░▒▓▓▒░ ░▒▓▓▒░
|
|
5
|
+
██║ ██║███████║ ░▒▓█▓▒░▒▓▓▒░▒▓▓▒░▒▓▓▒░
|
|
6
|
+
██║ ██║██╔══██║ ░▒▓█▓▒░▒▓▓▒░░▒▓▓▒░
|
|
7
|
+
╚██████╔╝██║ ██║ ░▒▓▓▒░▒▓▓▒░▒▓▓▒░
|
|
8
|
+
╚═════╝ ╚═╝ ╚═╝ ░▒▓▓▒░░▒▓▓▒░
|
|
9
|
+
/help /voice /cohere /model
|
|
10
|
+
</pre>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
1
13
|
<h1 align="center">Open Agents</h1>
|
|
2
14
|
|
|
3
15
|
<p align="center">
|
|
@@ -51,7 +63,7 @@ The agent uses tools autonomously in a loop — reading errors, fixing code, and
|
|
|
51
63
|
- **Inference capability proof** — benchmark local models with anti-spoofing SHA-256 hashed proofs, generate capability scorecards for peer verification
|
|
52
64
|
- **Ralph Loop** — iterative task execution that keeps retrying until completion criteria are met
|
|
53
65
|
- **Dream Mode** — creative idle exploration modeled after real sleep architecture (NREM→REM cycles)
|
|
54
|
-
- **COHERE Cognitive Stack** — layered cognitive architecture implementing [Recursive Language Models](https://arxiv.org/abs/2512.24601), [SPRINT parallel reasoning](https://arxiv.org/abs/2506.05745), governed memory metabolism, identity kernel with continuity register, immune-system reflection,
|
|
66
|
+
- **COHERE Cognitive Stack** — layered cognitive architecture implementing [Recursive Language Models](https://arxiv.org/abs/2512.24601), [SPRINT parallel reasoning](https://arxiv.org/abs/2506.05745), governed memory metabolism, identity kernel with continuity register, immune-system reflection, [strategy-space exploration](https://arxiv.org/abs/2603.02045), and **distributed inference mesh** — any `/cohere` participant automatically serves AND consumes inference from the network with complexity-based model routing, multi-node claim coordination, IPFS-pinned identity persistence, model exposure control, and Ollama safety hardening. See [COHERE Framework](#cohere-cognitive-framework) below
|
|
55
67
|
- **Persistent Python REPL** — `repl_exec` tool maintains variables, imports, and functions across calls. Write Python code that processes data iteratively, with `llm_query()` available for recursive LLM sub-calls from within code
|
|
56
68
|
- **Recursive LLM calls** — `llm_query(prompt, context)` invokes the model from inside REPL code, enabling loop-based semantic analysis of large inputs ([RLM paper](https://arxiv.org/abs/2512.24601)). `parallel_llm_query()` runs multiple calls concurrently ([SPRINT](https://arxiv.org/abs/2506.05745))
|
|
57
69
|
- **Memory metabolism** — governed memory lifecycle: classify (episodic/semantic/procedural/normative), score (novelty/utility/confidence), consolidate lessons from trajectories. Inspired by [TIMG](https://arxiv.org/abs/2603.10600) and [MemMA](https://arxiv.org/abs/2603.18718)
|
|
@@ -391,13 +403,43 @@ Open Agents implements the **COHERE layered cognitive stack** — a provenance-g
|
|
|
391
403
|
```
|
|
392
404
|
Layer 8: Exploration & Culture (ARCHE) — strategy diversity + variant archiving
|
|
393
405
|
Layer 7: Reflection & Integrity — immune-system audit (diagnostic/epistemic/constitutional)
|
|
394
|
-
Layer 6: Identity Kernel (COHERE) — persistent self-state + homeostasis
|
|
395
|
-
Layer 5: Memory Metabolism — governed write/manage/read lifecycle
|
|
406
|
+
Layer 6: Identity Kernel (COHERE) — persistent self-state + homeostasis + IPFS snapshots
|
|
407
|
+
Layer 5: Memory Metabolism — governed write/manage/read lifecycle + decay + auto-promotion
|
|
396
408
|
Layer 4: Shared Workspace — handle registry + Memex archive
|
|
397
|
-
Layer 3: SPRINT Reasoning — parallel sub-calls
|
|
398
|
-
Layer 2: RLM Context OS — persistent REPL + llm_query +
|
|
399
|
-
Layer 1: Inference Mesh — Nexus P2P + expose gateway
|
|
400
|
-
Layer 0: Voice & Embodiment — Whisper ASR + neural TTS
|
|
409
|
+
Layer 3: SPRINT Reasoning — parallel sub-calls + cross-node task dispatch
|
|
410
|
+
Layer 2: RLM Context OS — persistent REPL + llm_query + session save/restore
|
|
411
|
+
Layer 1: Inference Mesh — Nexus P2P + expose gateway + COHERE distributed inference
|
|
412
|
+
Layer 0: Voice & Embodiment — Whisper ASR + neural TTS + stereo ITD
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### Distributed Inference (`/cohere`)
|
|
416
|
+
|
|
417
|
+
Toggle `/cohere` to participate in the **COHERE cognitive commons** — a distributed inference mesh where every participant automatically load-balances each other:
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
You: /cohere ← toggle on
|
|
421
|
+
Daemon: COHERE enabled — listening on nexus.cohere.query
|
|
422
|
+
Capacity announcement: 3 models, warm=qwen3.5:122b
|
|
423
|
+
|
|
424
|
+
Peer: "Explain TCP vs UDP" → NATS broadcast
|
|
425
|
+
Your OA: claim → route to qwen3:4b (trivial) → respond in 1.2s
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
**How it works:**
|
|
429
|
+
- Queries broadcast on NATS `nexus.cohere.query` — any participant can answer
|
|
430
|
+
- **Complexity routing** classifies queries (trivial/moderate/complex) → matches to model size
|
|
431
|
+
- **Claim protocol** prevents wasted compute — first-claim-wins with deterministic tie-breaking
|
|
432
|
+
- **Capacity announcements** every 60s — peers know your models, warm status, and load
|
|
433
|
+
- **Model allowlist** — `/cohere allow qwen3:4b` controls which models are exposed
|
|
434
|
+
- **Ollama safety** — remote queries can ONLY run inference on existing models; `/api/pull`, `/api/delete`, `/api/create` are never called
|
|
435
|
+
- **Identity pinning** — snapshots published to IPFS (Helia) with SHA-256 content addressing; survives daemon restarts
|
|
436
|
+
- **Background daemon** persists across OA restarts (`detached: true` + PID file reconnection)
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
/cohere stats # Network transparency — queries in/out, model usage, peer activity
|
|
440
|
+
/cohere models # List models with [EXPOSED]/[HIDDEN] status
|
|
441
|
+
/cohere allow X # Allow specific model for remote queries
|
|
442
|
+
/cohere deny X # Hide model from remote queries
|
|
401
443
|
```
|
|
402
444
|
|
|
403
445
|
### How It Works
|