Repository navigation
ClawShell 2.0 — DEEP v1.0.0
一云多端分布式神经架构 | One Cloud Multi-Edge Distributed Neural Architecture
Architecture
Octopus-inspired: 1 Cortex (Cloud Brain) + N Ganglions (Edge Brains)
- Cortex: Architecture planning, deep thinking, insight analysis, review & summary, result broadcasting, terminal management. Consensus knowledge deployed to Alibaba Cloud ECS/OSS + GitHub + MemOS Cloud.
- Ganglion: Installed on endpoints, auto-adapts to 8 OpenClaw-like architectures, self-discovers plugins/tools. Runs independently when offline.
Core Principles
- Cybernetics: PID feedback control loop, dynamic strategy switching
- Heterogeneous Equivalence: 8 OpenClaw variant adapters, unified EventBus protocol
- Non-invasive: Bridge script injection, never modifies target core code
- Low Coupling: EventBus pub/sub + standardized Pydantic Schema
- High Robustness: 3-layer repair (self-healing -> auto-repair -> manual)
- High Collaboration: Ecological niche matching (capability 40% + load 30% + trust 30%)
- Portability: pip install -e ., cross-platform
- Idempotency: Repeated install/register has no side effects
- Edge-Cloud Version Decoupling: Independent config, independent evolution
Modules (28 Source Files, 2,238 LOC)
shared — types (17 enums), models (20+ Pydantic v2), config (YAML+ENV)
neural_bus — EventBus (priority heap + wildcard + JSONL), MessageCodec + MessageFactory, WebSocket transport
cortex — CortexCore + PID control loop + StrategySwitcher (5 strategies), InsightEngine, TerminalManager (niche matching), BroadcastEngine, Alibaba OSS/MemOS/GitHub adapters
ganglion — PerceptionEngine (4D + 8 architecture detection), AdaptationEngine (3-layer repair), PluginManager (5 builtin), 8 OpenClaw variant adapters
storage — KnowledgeStore (JSON + LRU) + MemoryStore (decay + importance ranking)
Test Results
38/38 tests passed in 15.02s
Quick Start
python scripts/install.py
clawshell init --mode ganglion
clawshell init --mode cortex
clawshell cortex --host 0.0.0.0 --port 9000
clawshell ganglion --cortex-host server-ip --cortex-port 9000Build Stats
| Metric | Count |
|---|---|
| Source files | 28 |
| Lines of code | 2,238 |
| Enumerations | 17 |
| Pydantic models | 20+ |
| Strategy states | 5 |
| OpenClaw variants | 8 |
| Builtin plugins | 5 |
| Test functions | 38 |
| Repair layers | 3 |
| Perception dimensions | 6 |
ClawShell 2.0 — Cybernetics-driven self-evolving exoskeleton