neuralclaw 0.4.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.
Files changed (79) hide show
  1. neuralclaw-0.4.0/LICENSE +21 -0
  2. neuralclaw-0.4.0/PKG-INFO +405 -0
  3. neuralclaw-0.4.0/README.md +361 -0
  4. neuralclaw-0.4.0/neuralclaw/__init__.py +3 -0
  5. neuralclaw-0.4.0/neuralclaw/benchmark.py +507 -0
  6. neuralclaw-0.4.0/neuralclaw/bus/__init__.py +1 -0
  7. neuralclaw-0.4.0/neuralclaw/bus/neural_bus.py +280 -0
  8. neuralclaw-0.4.0/neuralclaw/bus/telemetry.py +174 -0
  9. neuralclaw-0.4.0/neuralclaw/channels/__init__.py +1 -0
  10. neuralclaw-0.4.0/neuralclaw/channels/discord_adapter.py +98 -0
  11. neuralclaw-0.4.0/neuralclaw/channels/protocol.py +79 -0
  12. neuralclaw-0.4.0/neuralclaw/channels/signal_adapter.py +109 -0
  13. neuralclaw-0.4.0/neuralclaw/channels/slack.py +112 -0
  14. neuralclaw-0.4.0/neuralclaw/channels/telegram.py +153 -0
  15. neuralclaw-0.4.0/neuralclaw/channels/web.py +248 -0
  16. neuralclaw-0.4.0/neuralclaw/channels/whatsapp.py +143 -0
  17. neuralclaw-0.4.0/neuralclaw/cli.py +625 -0
  18. neuralclaw-0.4.0/neuralclaw/config.py +272 -0
  19. neuralclaw-0.4.0/neuralclaw/cortex/__init__.py +1 -0
  20. neuralclaw-0.4.0/neuralclaw/cortex/action/__init__.py +1 -0
  21. neuralclaw-0.4.0/neuralclaw/cortex/action/audit.py +106 -0
  22. neuralclaw-0.4.0/neuralclaw/cortex/action/capabilities.py +155 -0
  23. neuralclaw-0.4.0/neuralclaw/cortex/action/sandbox.py +190 -0
  24. neuralclaw-0.4.0/neuralclaw/cortex/evolution/__init__.py +1 -0
  25. neuralclaw-0.4.0/neuralclaw/cortex/evolution/calibrator.py +266 -0
  26. neuralclaw-0.4.0/neuralclaw/cortex/evolution/distiller.py +244 -0
  27. neuralclaw-0.4.0/neuralclaw/cortex/evolution/synthesizer.py +244 -0
  28. neuralclaw-0.4.0/neuralclaw/cortex/memory/__init__.py +1 -0
  29. neuralclaw-0.4.0/neuralclaw/cortex/memory/episodic.py +284 -0
  30. neuralclaw-0.4.0/neuralclaw/cortex/memory/metabolism.py +274 -0
  31. neuralclaw-0.4.0/neuralclaw/cortex/memory/procedural.py +194 -0
  32. neuralclaw-0.4.0/neuralclaw/cortex/memory/retrieval.py +206 -0
  33. neuralclaw-0.4.0/neuralclaw/cortex/memory/semantic.py +333 -0
  34. neuralclaw-0.4.0/neuralclaw/cortex/perception/__init__.py +1 -0
  35. neuralclaw-0.4.0/neuralclaw/cortex/perception/classifier.py +168 -0
  36. neuralclaw-0.4.0/neuralclaw/cortex/perception/intake.py +121 -0
  37. neuralclaw-0.4.0/neuralclaw/cortex/perception/threat_screen.py +199 -0
  38. neuralclaw-0.4.0/neuralclaw/cortex/reasoning/__init__.py +1 -0
  39. neuralclaw-0.4.0/neuralclaw/cortex/reasoning/deliberate.py +322 -0
  40. neuralclaw-0.4.0/neuralclaw/cortex/reasoning/fast_path.py +168 -0
  41. neuralclaw-0.4.0/neuralclaw/cortex/reasoning/meta.py +259 -0
  42. neuralclaw-0.4.0/neuralclaw/cortex/reasoning/reflective.py +314 -0
  43. neuralclaw-0.4.0/neuralclaw/dashboard.py +305 -0
  44. neuralclaw-0.4.0/neuralclaw/gateway.py +584 -0
  45. neuralclaw-0.4.0/neuralclaw/migrate.py +301 -0
  46. neuralclaw-0.4.0/neuralclaw/providers/__init__.py +1 -0
  47. neuralclaw-0.4.0/neuralclaw/providers/anthropic.py +113 -0
  48. neuralclaw-0.4.0/neuralclaw/providers/local.py +38 -0
  49. neuralclaw-0.4.0/neuralclaw/providers/openai.py +94 -0
  50. neuralclaw-0.4.0/neuralclaw/providers/openrouter.py +23 -0
  51. neuralclaw-0.4.0/neuralclaw/providers/router.py +153 -0
  52. neuralclaw-0.4.0/neuralclaw/py.typed +0 -0
  53. neuralclaw-0.4.0/neuralclaw/skills/__init__.py +1 -0
  54. neuralclaw-0.4.0/neuralclaw/skills/builtins/__init__.py +1 -0
  55. neuralclaw-0.4.0/neuralclaw/skills/builtins/calendar_skill.py +138 -0
  56. neuralclaw-0.4.0/neuralclaw/skills/builtins/code_exec.py +43 -0
  57. neuralclaw-0.4.0/neuralclaw/skills/builtins/file_ops.py +99 -0
  58. neuralclaw-0.4.0/neuralclaw/skills/builtins/web_search.py +73 -0
  59. neuralclaw-0.4.0/neuralclaw/skills/economy.py +368 -0
  60. neuralclaw-0.4.0/neuralclaw/skills/manifest.py +77 -0
  61. neuralclaw-0.4.0/neuralclaw/skills/marketplace.py +269 -0
  62. neuralclaw-0.4.0/neuralclaw/skills/registry.py +84 -0
  63. neuralclaw-0.4.0/neuralclaw/swarm/__init__.py +44 -0
  64. neuralclaw-0.4.0/neuralclaw/swarm/consensus.py +320 -0
  65. neuralclaw-0.4.0/neuralclaw/swarm/delegation.py +317 -0
  66. neuralclaw-0.4.0/neuralclaw/swarm/federation.py +546 -0
  67. neuralclaw-0.4.0/neuralclaw/swarm/mesh.py +347 -0
  68. neuralclaw-0.4.0/neuralclaw.egg-info/PKG-INFO +405 -0
  69. neuralclaw-0.4.0/neuralclaw.egg-info/SOURCES.txt +77 -0
  70. neuralclaw-0.4.0/neuralclaw.egg-info/dependency_links.txt +1 -0
  71. neuralclaw-0.4.0/neuralclaw.egg-info/entry_points.txt +2 -0
  72. neuralclaw-0.4.0/neuralclaw.egg-info/requires.txt +25 -0
  73. neuralclaw-0.4.0/neuralclaw.egg-info/top_level.txt +1 -0
  74. neuralclaw-0.4.0/pyproject.toml +79 -0
  75. neuralclaw-0.4.0/setup.cfg +4 -0
  76. neuralclaw-0.4.0/setup.py +11 -0
  77. neuralclaw-0.4.0/tests/test_evolution_security_swarm.py +270 -0
  78. neuralclaw-0.4.0/tests/test_memory.py +223 -0
  79. neuralclaw-0.4.0/tests/test_perception.py +185 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mirac — Cardify / Claw Club
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.
@@ -0,0 +1,405 @@
1
+ Metadata-Version: 2.4
2
+ Name: neuralclaw
3
+ Version: 0.4.0
4
+ Summary: The Self-Evolving Cognitive Agent Framework
5
+ Author-email: Mirac <mirac@cardify.dev>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/placeparks/neuralclaw
8
+ Project-URL: Repository, https://github.com/placeparks/neuralclaw
9
+ Project-URL: Issues, https://github.com/placeparks/neuralclaw/issues
10
+ Project-URL: Documentation, https://github.com/placeparks/neuralclaw#readme
11
+ Keywords: ai,agent,cognitive,autonomous,llm,self-evolving,multi-channel,framework
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.12
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: click>=8.1
24
+ Requires-Dist: rich>=13.0
25
+ Requires-Dist: toml>=0.10
26
+ Requires-Dist: aiohttp>=3.9
27
+ Requires-Dist: aiosqlite>=0.19
28
+ Requires-Dist: keyring>=25.0
29
+ Provides-Extra: telegram
30
+ Requires-Dist: python-telegram-bot>=21.0; extra == "telegram"
31
+ Provides-Extra: discord
32
+ Requires-Dist: discord.py>=2.3; extra == "discord"
33
+ Provides-Extra: slack
34
+ Requires-Dist: slack-bolt>=1.18; extra == "slack"
35
+ Provides-Extra: all-channels
36
+ Requires-Dist: python-telegram-bot>=21.0; extra == "all-channels"
37
+ Requires-Dist: discord.py>=2.3; extra == "all-channels"
38
+ Requires-Dist: slack-bolt>=1.18; extra == "all-channels"
39
+ Provides-Extra: dev
40
+ Requires-Dist: pytest>=8.0; extra == "dev"
41
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
42
+ Requires-Dist: ruff>=0.3; extra == "dev"
43
+ Dynamic: license-file
44
+
45
+ <p align="center">
46
+ <img src="https://img.shields.io/badge/python-3.12+-blue?style=flat-square&logo=python&logoColor=white" alt="Python 3.12+"/>
47
+ <img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT License"/>
48
+ <img src="https://img.shields.io/badge/phase-4%20Domination-blueviolet?style=flat-square" alt="Phase 4"/>
49
+ <img src="https://img.shields.io/badge/architecture-cognitive%20cortices-blueviolet?style=flat-square" alt="Architecture"/>
50
+ </p>
51
+
52
+ <h1 align="center">🧠 NeuralClaw</h1>
53
+
54
+ <p align="center">
55
+ <strong>The Self-Evolving Cognitive Agent Framework</strong><br/>
56
+ <em>Perceive · Remember · Reason · Evolve · Act</em>
57
+ </p>
58
+
59
+ <p align="center">
60
+ A next-generation autonomous agent that introduces cognitive memory architecture,<br/>
61
+ self-evolving intelligence, and security-first design.
62
+ </p>
63
+
64
+ ---
65
+
66
+ ## ✨ What Makes NeuralClaw Different
67
+
68
+ | Problem in existing agents | NeuralClaw's answer |
69
+ |---|---|
70
+ | Flat markdown memory | **Cognitive Tri-Store** — Episodic + Semantic + Procedural memory with metabolism (consolidation, decay, strengthening) |
71
+ | Dumb reactive loops | **4-Layer Reasoning** — Reflexive fast-path → Deliberative → Reflective self-critique → Meta-cognitive evolution |
72
+ | No self-improvement | **Evolution Cortex** — Behavioral calibration, experience distillation, automatic skill synthesis |
73
+ | Skill supply-chain attacks | **Cryptographic Marketplace** — Ed25519 signing, static analysis, risk scoring |
74
+ | Single-channel bots | **5 Channel Adapters** — Telegram, Discord, Slack, WhatsApp, Signal |
75
+ | No security model | **Zero-Trust by Default** — Pre-LLM threat screening, capability-based permissions, sandboxed execution |
76
+
77
+ ---
78
+
79
+ ## 🏗️ Architecture: The Five Cortices
80
+
81
+ ```
82
+ ┌──────────────────────┐
83
+ │ Neural Bus │
84
+ │ (async pub/sub) │
85
+ └──────────┬───────────┘
86
+
87
+ ┌─────────────┬──────────────┼──────────────┬─────────────┐
88
+ ▼ ▼ ▼ ▼ ▼
89
+ ┌─────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
90
+ │PERCEPTION│ │ MEMORY │ │REASONING │ │ ACTION │ │EVOLUTION │
91
+ │ │ │ │ │ │ │ │ │ │
92
+ │ Intake │ │ Episodic │ │Fast Path │ │ Sandbox │ │Calibrator│
93
+ │Classify │ │ Semantic │ │Deliberate│ │Capability│ │Distiller │
94
+ │ Threat │ │Procedural│ │Reflective│ │ Audit │ │Synthesize│
95
+ │ Screen │ │Metabolism│ │ │ │ │ │ │
96
+ └─────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
97
+ ```
98
+
99
+ Every cortex communicates through the **Neural Bus** — an asynchronous event-driven backbone with full reasoning trace telemetry.
100
+
101
+ ---
102
+
103
+ ## 🚀 Quick Start
104
+
105
+ ### Prerequisites
106
+
107
+ - **Python 3.12+**
108
+ - At least one LLM provider (OpenAI, Anthropic, OpenRouter, or local Ollama)
109
+
110
+ ### Installation
111
+
112
+ ```bash
113
+ # Install from PyPI
114
+ pip install neuralclaw
115
+
116
+ # Or install with all channel adapters
117
+ pip install neuralclaw[all-channels]
118
+
119
+ # Or install from source for development
120
+ git clone https://github.com/placeparks/neuralclaw.git
121
+ cd neuralclaw
122
+ pip install -e ".[dev]"
123
+ ```
124
+
125
+ ### Setup
126
+
127
+ ```bash
128
+ # Run the interactive setup wizard — configures LLM providers & stores keys securely
129
+ neuralclaw init
130
+
131
+ # Configure messaging channels (Telegram, Discord, Slack, WhatsApp, Signal)
132
+ neuralclaw channels setup
133
+ ```
134
+
135
+ ### Usage
136
+
137
+ ```bash
138
+ # Interactive terminal chat
139
+ neuralclaw chat
140
+
141
+ # Start the full gateway with all configured channels
142
+ neuralclaw gateway
143
+
144
+ # Check configuration and status
145
+ neuralclaw status
146
+
147
+ # View configured channels
148
+ neuralclaw channels list
149
+ ```
150
+
151
+ ---
152
+
153
+ ## 🔑 LLM Provider Setup
154
+
155
+ NeuralClaw supports **multiple LLM providers** with automatic fallback routing:
156
+
157
+ | Provider | Model | Setup |
158
+ |----------|-------|-------|
159
+ | **OpenAI** | GPT-4o, GPT-4o-mini | API key from [platform.openai.com](https://platform.openai.com) |
160
+ | **Anthropic** | Claude 3.5 Sonnet | API key from [console.anthropic.com](https://console.anthropic.com) |
161
+ | **OpenRouter** | Multi-model access | API key from [openrouter.ai](https://openrouter.ai) |
162
+ | **Local (Ollama)** | Llama 3, Mistral, etc. | No key needed — runs on `localhost:11434` |
163
+
164
+ All API keys are stored in your **OS keychain** (Windows Credential Store / macOS Keychain / Linux Secret Service) — never in plaintext config files.
165
+
166
+ ---
167
+
168
+ ## 📡 Channel Adapters
169
+
170
+ | Channel | Method | Dependencies |
171
+ |---------|--------|-------------|
172
+ | **Telegram** | Bot API via `python-telegram-bot` | Token from @BotFather |
173
+ | **Discord** | Bot via `discord.py` | Token from Developer Portal |
174
+ | **Slack** | Socket Mode via `slack-bolt` | Bot + App tokens |
175
+ | **WhatsApp** | `whatsapp-web.js` Node.js bridge | Node.js 18+ required |
176
+ | **Signal** | `signal-cli` JSON-RPC bridge | signal-cli installed |
177
+
178
+ ```bash
179
+ # Interactive guided setup for all channels
180
+ neuralclaw channels setup
181
+ ```
182
+
183
+ ---
184
+
185
+ ## 🧬 Intelligence Layer (Phase 2)
186
+
187
+ ### Memory Metabolism
188
+
189
+ Memories have a biological lifecycle — they aren't just appended:
190
+
191
+ ```
192
+ Formation → Consolidation → Strengthening/Decay → Retrieval → Reconsolidation
193
+ ```
194
+
195
+ - **Consolidation** — Repeated episodic events merge into semantic knowledge
196
+ - **Strengthening** — Frequently accessed memories gain importance
197
+ - **Decay** — Stale, unused memories gradually lose relevance
198
+ - **Pruning** — Very low-importance memories are archived
199
+
200
+ ### Reflective Reasoning
201
+
202
+ Complex queries trigger multi-step planning with self-critique:
203
+
204
+ ```
205
+ Decompose → Execute sub-tasks → Self-critique → Revise plan → Synthesize answer
206
+ ```
207
+
208
+ ### Evolution Cortex
209
+
210
+ | Module | Function |
211
+ |--------|----------|
212
+ | **Calibrator** | Learns your style preferences (formality, verbosity, emoji) from corrections and interaction patterns |
213
+ | **Distiller** | Extracts recurring patterns from episodes → semantic facts + procedural workflows |
214
+ | **Synthesizer** | Auto-generates new skills from repeated task failures via LLM code generation + sandbox testing |
215
+
216
+ ### Skill Marketplace
217
+
218
+ ```python
219
+ from neuralclaw.skills.marketplace import SkillMarketplace
220
+
221
+ mp = SkillMarketplace()
222
+ pkg, findings = mp.publish("my_skill", "1.0", "author", "desc", code, private_key)
223
+ # Static analysis scans for: shell exec, network exfil, path traversal, obfuscation
224
+ # Risk score: 0.0 (safe) → 1.0 (dangerous)
225
+ ```
226
+
227
+ ---
228
+
229
+ ## 📁 Project Structure
230
+
231
+ ```
232
+ neuralclaw/
233
+ ├── bus/ # Neural Bus (async event backbone)
234
+ │ ├── neural_bus.py # Event types, pub/sub, correlation
235
+ │ └── telemetry.py # Reasoning trace logging
236
+ ├── channels/ # Channel Adapters
237
+ │ ├── protocol.py # Adapter interface
238
+ │ ├── telegram.py # Telegram bot
239
+ │ ├── discord_adapter.py # Discord bot
240
+ │ ├── slack.py # Slack (Socket Mode)
241
+ │ ├── whatsapp.py # WhatsApp (web.js bridge)
242
+ │ └── signal_adapter.py # Signal (signal-cli bridge)
243
+ ├── cortex/ # Cognitive Cortices
244
+ │ ├── perception/ # Intake, classifier, threat screen
245
+ │ ├── memory/ # Episodic, semantic, procedural, metabolism
246
+ │ ├── reasoning/ # Fast-path, deliberative, reflective
247
+ │ ├── action/ # Sandbox, capabilities, audit
248
+ │ └── evolution/ # Calibrator, distiller, synthesizer
249
+ ├── providers/ # LLM Provider Abstraction
250
+ │ ├── router.py # Multi-provider routing + fallback
251
+ │ ├── openai.py # OpenAI connector
252
+ │ ├── anthropic.py # Anthropic connector
253
+ │ ├── openrouter.py # OpenRouter connector
254
+ │ └── local.py # Ollama / local models
255
+ ├── skills/ # Skill Framework
256
+ │ ├── registry.py # Discovery and loading
257
+ │ ├── manifest.py # Skill declarations
258
+ │ ├── marketplace.py # Signed distribution + static analysis
259
+ │ └── builtins/ # Web search, file ops, code exec, calendar
260
+ ├── cli.py # Rich-powered CLI
261
+ ├── config.py # TOML config + OS keychain secrets
262
+ └── gateway.py # Orchestration engine (the brain)
263
+ ```
264
+
265
+ ---
266
+
267
+ ## 🛡️ Security Model
268
+
269
+ NeuralClaw follows a **zero-trust, security-first** design:
270
+
271
+ - **Pre-LLM Threat Screening** — Prompt injection and social engineering detection happens *before* the LLM sees the message
272
+ - **Capability-Based Permissions** — Skills declare required capabilities; the verifier enforces them
273
+ - **Sandboxed Execution** — Code execution runs in a restricted subprocess with resource limits
274
+ - **Cryptographic Skill Verification** — Marketplace skills are HMAC-signed and statically analyzed
275
+ - **OS Keychain Integration** — API keys stored in Windows Credential Store / macOS Keychain, never in files
276
+ - **Audit Logging** — Every action is logged with full trace for accountability
277
+
278
+ ---
279
+
280
+ ## 🐝 Swarm Intelligence (Phase 3)
281
+
282
+ ### Delegation Chains
283
+ Agents can delegate sub-tasks to specialists with full context preservation and provenance tracking:
284
+
285
+ ```python
286
+ from neuralclaw.swarm.delegation import DelegationChain, DelegationContext
287
+
288
+ chain = DelegationChain()
289
+ ctx = DelegationContext(task_description="Research competitor pricing", max_steps=10)
290
+ delegation_id = await chain.create("researcher", ctx)
291
+ # ... sub-agent works ...
292
+ await chain.complete(delegation_id, result="Found 3 competitors", confidence=0.85)
293
+ ```
294
+
295
+ ### Consensus Protocol
296
+ Multiple agents can vote on high-stakes decisions:
297
+
298
+ ```python
299
+ from neuralclaw.swarm.consensus import ConsensusProtocol, ConsensusMode
300
+
301
+ consensus = ConsensusProtocol(chain)
302
+ # Supports: MAJORITY, UNANIMOUS, WEIGHTED, QUORUM
303
+ ```
304
+
305
+ ### Agent Mesh
306
+ A2A-compatible agent discovery and communication:
307
+
308
+ ```bash
309
+ neuralclaw swarm status # View registered agents
310
+ neuralclaw swarm agents # List capabilities
311
+ ```
312
+
313
+ ### Web Dashboard
314
+
315
+ Live monitoring dashboard with reasoning traces, memory stats, and swarm visualization:
316
+
317
+ ```bash
318
+ neuralclaw dashboard # Open at http://localhost:8099
319
+ ```
320
+
321
+ ---
322
+
323
+ ## 🌐 Federation (Phase 4)
324
+
325
+ Agents can discover and communicate across network boundaries:
326
+
327
+ ```python
328
+ from neuralclaw.swarm.federation import FederationProtocol
329
+
330
+ fed = FederationProtocol(node_name="my-agent", port=8100)
331
+ await fed.start() # Start federation server
332
+ await fed.join_federation("http://peer:8100") # Connect to another agent
333
+ await fed.send_message(node_id, "Analyze this") # Send cross-network task
334
+ ```
335
+
336
+ ### Marketplace Economy
337
+
338
+ Credit-based economy with usage tracking, ratings, and leaderboards:
339
+
340
+ ```python
341
+ from neuralclaw.skills.economy import SkillEconomy
342
+
343
+ econ = SkillEconomy()
344
+ econ.register_author("mirac", "Mirac")
345
+ econ.register_skill("web_search", "mirac")
346
+ econ.record_usage("web_search", user_id="u1", success=True)
347
+ econ.rate_skill("web_search", rater_id="u1", score=4.5, review="Great!")
348
+ print(econ.get_trending())
349
+ ```
350
+
351
+ ### Benchmarks
352
+
353
+ ```bash
354
+ # Run the full benchmark suite
355
+ neuralclaw benchmark
356
+
357
+ # Run a specific category
358
+ neuralclaw benchmark --category security
359
+
360
+ # Export results to JSON
361
+ neuralclaw benchmark --export
362
+ ```
363
+
364
+ ---
365
+
366
+ ## 🧪 Testing
367
+
368
+ ```bash
369
+ # Install dev dependencies
370
+ pip install -e ".[dev]"
371
+
372
+ # Run full test suite
373
+ pytest tests/ -v
374
+
375
+ # Run Phase 2 functional tests
376
+ python test_phase2.py
377
+
378
+ # Run specific test modules
379
+ pytest tests/test_perception.py -v # Perception + threat screening
380
+ pytest tests/test_memory.py -v # Memory cortex
381
+ pytest tests/test_evolution_security_swarm.py -v # Evolution, security, swarm
382
+ ```
383
+
384
+ ---
385
+
386
+ ## 🗺️ Roadmap
387
+
388
+ | Phase | Focus | Status |
389
+ |-------|-------|--------|
390
+ | **Phase 1** | Foundation — Cortices, Bus, CLI, Providers, Skills | ✅ Complete |
391
+ | **Phase 2** | Intelligence — Memory metabolism, reflective reasoning, evolution cortex, marketplace | ✅ Complete |
392
+ | **Phase 3** | Swarm — Multi-agent delegation, consensus protocols, agent mesh, web dashboard | ✅ Complete |
393
+ | **Phase 4** | Domination — Federation, marketplace economy, benchmarks, PyPI publishing | ✅ Complete |
394
+
395
+ ---
396
+
397
+ ## 📄 License
398
+
399
+ MIT License — see [LICENSE](LICENSE) for details.
400
+
401
+ ---
402
+
403
+ <p align="center">
404
+ Built with 🧠 by <strong>Mirac</strong> — <a href="https://cardify.dev">Cardify</a> / Claw Club
405
+ </p>