Skip to content

Releases: jorinyang/ClawShell

ClawShell v3.0.0 - Pluggable Exoskeleton Enhancement Layer

Choose a tag to compare

@jorinyang jorinyang released this 28 Jun 17:04

ClawShell v3.0.0 — One-Command Install

Pluggable Exoskeleton Enhancement Layer for AI Agent Frameworks


One-Command Install

Linux / macOS / WSL:

curl -fsSL https://raw.githubusercontent.com/jorinyang/ClawShell/main/install.sh | bash
clawshell-local

Windows PowerShell:

iwr https://raw.githubusercontent.com/jorinyang/ClawShell/main/install.ps1 | iex
clawshell-local

After running clawshell-local, a browser opens at http://localhost:3456/login. Register or login — done.

CLI Options

  • clawshell-local — Full: API (8000) + Web UI (3456) + browser
  • clawshell-local --api-only — Just the API server
  • clawshell-local --web-only — Just the Web UI
  • clawshell-local --no-browser — Start services silently
  • clawshell-local --port 9000 — Custom API port

What's New in v3.0

Architecture Simplification:

  • Cloud Hub 19 engines → 6 (EventBus, TaskBoard, CapabilityRegistry, AgentMesh, InsightEngine, HermesLoop)
  • Edge → ClawShell Local (renamed, backward-compat shim included)
  • Per-user GitHub repos for skills & knowledge (version-controlled)

Agent-Level Intelligence:

  • Individual agent instance discovery (not just framework detection)
  • 5-way injection: MCP + Hook + Config + Loop Skill + Skill
  • AgentMesh: cross-device agent capability matching & task dispatch

User Management:

  • Register → Pending → Admin Approve → GitHub repos auto-created
  • Pinyin prefix auto-generation from display name
  • JWT auth + role-based access control (core_admin / admin / user)

3-Channel Sync:

  • GitHub (git pull/push for skills & knowledge)
  • MemOS Cloud (REST API for memory sync)
  • Cloud Hub (REST + WebSocket, 5s heartbeat)

16-Page GUI (Next.js):
Login, Register, Dashboard, Agents, Skills, Knowledge, Tasks, Nodes, Credentials, Endpoints, System, Audit, Users, Admin Pending, User Settings, Change Password

Electron Desktop Shell:

  • web/electron/main.js + preload.js for Electron wrapper
  • electron-builder config: NSIS (Win), DMG (Mac), AppImage+deb (Linux)
  • IPC handler for local Python agent scanner

Full Changelog: v2.1.1...v3.0.0

v2.4.0 — Universal MemOS Cloud Adapter for 10+ Agents

Choose a tag to compare

@jorinyang jorinyang released this 04 Jun 16:38

🧠 v2.4.0 — Universal MemOS Cloud Adapter

借鉴 MemTensor/MemOS-Cloud-OpenClaw-Plugin 设计,为 ClawShell 实现通用的 Cloud MemOS 记忆接入工具。

核心设计

任意 Agent (Hermes/Wukong/Codex/Claude/OpenClaw...)
        ↓ MCP STDIO 协议
  clawshell-memos-cloud MCP Server
        ↓ HTTP Bearer Auth
  MemOS Cloud API (memos.memtensor.cn)

支持 12 个 Agent

Agent 配置格式 注入方式
Hermes YAML ~/.hermes/config.yaml
Wukong JSON mcpServerConfig.json (Windows)
Codex TOML ~/.codex/config.toml
OpenClaw YAML ~/.openclaw/config.yaml
Claude Code JSON claude_desktop_config.json
WorkBuddy · HiClaw · CoPaw · QClaw · OpenHuman · Cline · Cursor YAML 各自 ~/.<agent>/config.yaml

MCP Tools (3)

工具 功能
memos_cloud_search 搜索/回忆相关记忆
memos_cloud_add 存储消息为记忆
memos_cloud_status 检查 MemOS Cloud 连接

安装器集成

安装时自动检测所有 Agent → 为每个 Agent 注入 MCP 配置。仅需提供 MEMOS_API_KEY。

📊

  • 620/621 tests passed
  • Forked from MemTensor/MemOS-Cloud-OpenClaw-Plugin

Full Changelog

v2.3.1 — P0: 消费超时 + 背压 + 信号处理 + 离线降级

Choose a tag to compare

@jorinyang jorinyang released this 04 Jun 13:13

Performance Release v2.3.1

Highlights

  • 2636fd4 — CronEngine ThreadPool + Audit Batched Async + LLM Cache/Concurrent

P0-3: CronEngine ThreadPool

  • ThreadPoolExecutor(8 workers) + run_jobs_parallel() concurrent execution
  • 2x speedup for parallel cron jobs (2 jobs: 0.2s → 0.1s)
  • Per-job _running flag prevents duplicate concurrent execution
  • Auto-register handler in register_job()

P1-4: Audit Batched Async Writes

  • Module-level _batch_buffer (deque maxlen=1000)
  • Background flush daemon: 50 entries OR 2s interval
  • executemany() batch INSERT (1 DB tx vs N writes)
  • start_batch_daemon() / stop_batch_daemon() lifecycle

P1-5: LLM Cache + Concurrent

  • cloud/brain/llm_cache.py — LRU+TTL cache (200 entries, 3600s TTL)
    • SHA256 key of (system, user, model, temperature)
    • Optional disk persistence to /opt/clawshell/data/llm_cache.json
    • Stats: hits/misses/evictions/hit_rate
  • cloud/brain/llm_concurrent.py — ThreadPoolExecutor(4 workers)
    • chat_batch() parallel queries with Future resolution
    • chat() single with cache lookup
    • Avoids redundant API calls for repeated queries

P2-6: TF-IDF (verified no change needed)

  • Already on-demand compute at search time (not full rebuild on insert)
  • O(n) per query with O(1) term_index lookup

Previous v2.3.1 P0 Fixes

  • 173b29f — P0: claim timeout + backpressure + signal handler + offline mode

Verification (ECS Production)

  • Engines: 20/20 active
  • Tests: 620/621 pass (1 pre-existing task expiry test, unrelated)
  • MemOS Key: validated (HTTP 200 from /search/memory endpoint)

Required API Keys

Total Diff

4 files changed, 360 insertions(+), 8 deletions(-)

v2.2.0 — Agent-First Edge Installer

Choose a tag to compare

@jorinyang jorinyang released this 23 May 18:54

🎯 v2.2.0 — Agent-First Edge Installer

安装 ClawShell 只需对 AI Agent 说一句话。这是 ClawShell 安装方式的根本性变革。

🤖 Agent-First 安装器 (edge/installer/)

核心改造:安装器的主要使用者从人类转为 AI Agent,人类降级为"凭证提供者"。

Agent 安装流程

用户对 Agent 说:"安装 ClawShell"
       ↓
Agent 自动: 检测环境 → 克隆 → 安装依赖
       ↓
Agent 暂停问用户: "请提供 模型名称 + API Key"
       ↓
Agent 自动: 配置注入 → 自检 → 报告能力

新增模块

模块 文件 功能
SystemDetector detector.py 10 AI Agents + 8 Coding IDEs 自动发现
ConfigAutoInjector configurator.py MCP 配置自动注入 (Hermes/Wukong/OpenClaw)
InstallationChecklist checklist.py 最小交互式凭证收集 (仅 2 项)
SelfCheckReporter reporter.py 安装后 Markdown 自检报告
ClawShellEdgeInstaller installer.py 核心安装编排引擎
CLI cli.py 5 种模式: install/check/detect/config/agent-mode
Agent Guide AGENT_MODE.md Agent 可读可执行的 6-Phase 安装指引

一键安装脚本

  • scripts/install.sh — Linux/macOS/WSL 通用脚本 (Agent JSON 静默模式 + 人类降级)
  • scripts/install.ps1 — Windows PowerShell 安装器

Agent 模式特性

  • 🤖 Agent 优先 — 对 AI Agent 说"请帮我完成安装与配置:https://github.com/jorinyang/clawshell"
  • 📋 唯一人类交互 — Phase 1 一次性索要模型名 + API Key (端点自动匹配)
  • 📊 静默 JSON 输出 — bash install.sh --agent 输出机器可解析 JSON
  • 🔄 语义化退出码 — 10=Python缺失, 11=Git缺失, 20=Clone失败, 21=凭据缺失

🚀 安装器 CLI

# 环境检测 (10 agents + 8 IDEs)
python3 -m edge.installer detect

# 配置注入
python3 -m edge.installer config

# 自检报告
python3 -m edge.installer check

# Agent 模式指引
python3 -m edge.installer agent-mode

# 一键安装
python3 -m edge.installer install

📊 测试

test_capability_coverage.py    80/80 PASS
test_comprehensive_v2.py       62/62 PASS
原有全部测试                    444/444 PASS
───────────────────────────────────
总计                           586/586 PASS

🔗 相关更新

  • 官网 clawshell.club 更新: Agent 安装 + CLI 安装双卡片布局
  • README.md 重写为 Agent-First
  • 引擎数量: 19 (新增 CloudCronSupervisor + DispatchRouter)

Full Changelog

v2.1.2 — ECS CronSupervisor Router Fix

Choose a tag to compare

@jorinyang jorinyang released this 23 May 18:55

🩹 v2.1.2 — ECS CronSupervisor Router Fix

修复

  • ECS main.py 注释阻断: cron_supervisor_router 注册被意外注释导致所有 /api/v1/cron-supervisor/* 端点返回 404
  • ECS 上已修复并验证: 19 engines 加载正确, API 端点全部恢复正常

包含 (from v2.1.0/v2.1.1)

  • CloudCronSupervisor: 云端 Cron 健康监测引擎 (5 种检测规则)
  • DispatchRouter: 三层分流 + 自动降级 (EventBus → TaskBoard → MCP → Manual)
  • CronReporter: Edge 端 Cron 执行报告器
  • 8 个 REST API 端点 (/api/v1/cron-supervisor/*)
  • 29 个新增单元测试

Full Changelog

ClawShell Edge v2.0.1

Choose a tag to compare

@jorinyang jorinyang released this 21 May 18:04

ClawShell Edge v2.0.1

New Features

  • ClawShell Edge version system: Centralized version tracking via edge/version.py
  • Real client version detection: _get_edge_version() reads from edge.version (not framework CLI)
  • Auto-upgrade mechanism: Every ~30 min, daemon checks GitHub releases API and upgrades

Auto-Upgrade Flow

  1. _check_and_upgrade() polls GitHub releases API
  2. Semver comparison: latest > current → triggers upgrade
  3. _apply_upgrade(): git pull + pip install -e .
  4. Writes pending_upgrade.json flag → daemon exits gracefully
  5. External supervisor restarts daemon with new version

Bug Fixes

  • health_report: fix empty-string falsy bug (val != '' instead of if val)
  • health_report: add 'version' to system_info_fields
  • _sync_node_to_sqlite: properly upsert version column

ClawShell v2.1.1 — MemPalace 混合搜索集成

Choose a tag to compare

@jorinyang jorinyang released this 17 May 16:22

ClawShell v2.1.1 — MemPalace 混合搜索集成

📅 2026-05-17 | 🏷️ PATCH | 🔖 基于 v2.1.0

改进

端脑 MemPalace 桥接模块 (新增)

edge/mcp/mempalace_bridge.py — 将 MemPalace BM25+Vector 混合搜索集成到端脑记忆系统。

ClawShell Edge → memory_server.py → mempalace_bridge.py → mempalace (BM25+Vector)

搜索引擎升级

查询类型 v2.1.0 (LIKE) v2.1.1 (Hybrid)
英文精确 ❌ ✅ BM25
中文关键词 ❌ ✅ CJK bigram
语义相似 ⚠️ ✅ Vector
混合查询 ❌ ✅ BM25+Vector

CJK 分词

"系统架构" → ["系统架构", "系统", "统架", "架构"]
"Python系统架构" → ["python", "系统架构", "系统", "统架", "架构"]

可配置权重

export MEMPALACE_SEARCH_VECTOR_WEIGHT=0.7
export MEMPALACE_SEARCH_BM25_WEIGHT=0.3

变更

  • 新增: edge/mcp/mempalace_bridge.py
  • 修改: edge/mcp/memory_server.py — 集成桥接
  • 修改: CLAWSHELL_VERSION — v2.1.1

向后兼容

MemPalace 未安装时自动回退到 SQLite LIKE 搜索。无破坏性修改。

v2.1.0 — Neural Genesis: Module Wiring & Hybrid Search

Choose a tag to compare

@jorinyang jorinyang released this 23 May 18:56

🧬 v2.1.0 — Neural Genesis

v2.1.0 是模块集成和记忆系统增强的关键版本。

Neural Genesis — 6 大新模块

模块 功能
MemPalace Hybrid Search BM25 + Vector + Graph 三路 RRF 融合搜索
Self-healing Engine 4 种修复策略 (restart/reboot/redeploy/restart_process)
OSS Credential Storage 阿里云 OSS 凭证安全存储,按用户隔离
Memos Cloud Integration MemOS 云端记忆同步
Framework/IDE Reporting 端脑框架检测 + IDE 桥接器上报
Edge Ecosystem 生态位匹配 + 集群协作

集成修复

  • 修复 v2.1.0 初始实现: 6 个模块中有 4 个完全断链,已全部接入调用链
  • Router app.state 优先: 5 个 Router 统一切换到 app.state 查找引擎
  • AuthClient 接口修正: me() 返回扁平 dict
  • 测试: 398 → 398 全部通过

记忆系统

  • 三层记忆: MemPalace (本地) → MemOS Local → MemOS Cloud
  • 双 Agent 同步: Hermes + Wukong 同时配置 MCP 自动激活
  • CJK 分词: 中日韩文本支持 bigram 分词

Full Changelog

ClawShell v2.0.0

Choose a tag to compare

@jorinyang jorinyang released this 17 May 05:09

ClawShell v2.0.0 — 多账户云边协同管理平台

核心特性

  • 多账户体系 (core_admin/admin/user 三级权限)
  • 云端管理后台 (Next.js 16, 9页面, 中英文切换)
  • 凭证管理 (AES-256-GCM加密, 自动同步, WebSocket实时推送)
  • 一键安装 (curl|bash + 交互式配置)
  • SSL/HTTPS (clawshell.club)
  • 审计日志

API: 76端点 (48现有 + 28新增)

E2E验证: 20/20 全部通过

  1. Health v2.0.0 ✅
  2. 核心管理员登录 ✅
  3. 用户信息 ✅
  4. 修改密码 ✅
  5. 重新登录 ✅
  6. 注册用户 ✅
  7. 用户登录 ✅
  8. 创建凭证 ✅
  9. 查询凭证(脱敏) ✅
  10. 凭证同步(用户+共享) ✅
  11. Dashboard ✅
  12. 用户列表 ✅
  13. 系统状态 ✅
  14. 审计日志 ✅
  15. 共享凭证 ✅
  16. 事件API ✅
  17. 任务API ✅
  18. 技能API ✅
  19. Edge客户端登录 ✅
  20. Edge凭证同步 ✅

部署

默认管理员

  • Account: jorinyang
  • Password: clawshell2026 (首次登录强制修改)

ClawShell v1.12.1 — 测试基础设施与质量修复

Choose a tag to compare

@jorinyang jorinyang released this 16 May 15:55

ClawShell v1.12.1 — 测试基础设施与质量修复

📅 2026-05-16 | 🏷️ 类型: PATCH | 🔖 基于 v1.12.0

本版本聚焦于测试基础设施修复和代码质量改进,不涉及新功能。修复了导致测试套件完全无法运行的关键问题,统一了版本号,并改进了搜索能力。


🔧 修复清单

1. 版本号三方统一

文件 修复前 修复后
CLAWSHELL_VERSION v1.12.0 v1.12.1
pyproject.toml 1.11.0 1.12.1
MANIFEST.json 1.9.0 1.12.1

2. 测试套件修复 (Critical)

问题: test_comprehensive.py (2095行, 592断言) 和 test_phase1.py (297行, 50断言) 完全无法被 pytest 收集运行。

根因: 文件中的 test_handler() 回调函数名以 test_ 开头,pytest 将其参数误解为 fixture,导致 collection error。全部 642 个断言被跳过。

修复:

  • 将模块级测试代码包裹在 def test_all() 函数内
  • 重命名 test_handler() 避免 pytest 误解
  • 添加最终 assert 确保失败时 pytest 正确报告

效果: 0/592 → 592/592 断言全部通过 ✅

3. 测试断言修复

CloudConfig.safe masks secrets — 处理测试环境中无 secret 的情况。

4. 清理重复文件

删除 6 个与 cloud/ 完全相同的顶层文件: brain.py, analyst.py, tasks.py, skills.py, task_board.py, insights_broadcasts_reviews.py

5. 依赖声明补全

pyproject.toml 新增: pyyaml>=6.0, pydantic>=2.5.0, requests>=2.28.0

6. EventBus API 改进

CloudEventBus.get_stats() 新增 deduplicated 键。

7. KnowledgeGraph 搜索改进

_tokenize() 现在生成 2-7 字符前缀,支持子串匹配。搜索 "Cloud" 可匹配 "CloudHub"。


📊 测试结果

5 passed, 3 warnings in 17.90s
642 assertions, 100% pass rate, 27 module categories

📁 变更统计

+2246 行, -3018 行 (净减少 772 行) | 12 files changed


⬆️ 升级指南

git pull origin main
pip install -e ".[cloud,edge]"

无配置变更,无破坏性修改。