← 返回 Skills 市场
josephtandle

Local Self-Healing Machine Learning

作者 josephtandle · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ⚠ suspicious
348
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install local-self-healing-machine-learning
功能描述
A fully local machine learning engine that makes your OpenClaw agent smart over time — without ever calling home, revealing your machine ID, or exposing any...
使用说明 (SKILL.md)

Local Self-Healing Machine Learning

"Your agent learns from its own mistakes — without ever calling home, revealing your machine ID, or exposing any security holes."

A fully local machine learning engine that makes your OpenClaw agent smart over time. It watches your agent's runtime history, detects recurring failures, clusters similar errors using semantic embeddings, and autonomously evolves fix strategies — all running 100% on your machine with zero network calls.

The engine uses a feedback loop that tracks whether each fix actually works: after 3 clean cycles a fix is marked "proven", and if the error comes back within 5 cycles it's marked "failed". A k-NN predictor learns from these outcomes and gets better at picking the right fix over time. Lessons compound in a persistent knowledge base that never decays — the longer it runs, the smarter it gets.

Every evolution is auditable through the GEP (Genetic Evolution Protocol), which produces structured, content-hashed assets: genes (reusable fix strategies), capsules (successful evolution records), and an append-only event log. You can inspect exactly what changed, why it changed, and whether it worked.

No telemetry. No fingerprinting. No cloud dependencies. No data leaves your device.

ML Capabilities

  • Feedback Loop: Tracks whether fixes actually work. After 3 clean cycles, a fix is "proven". If the error recurs within 5 cycles, the fix is marked "failed".
  • Embedding-Based Error Clustering: Uses Ollama + llama3.2:3b to generate semantic embeddings for error messages. Similar errors are clustered together instead of matched by regex.
  • Success Predictor: k-NN classifier trained on feedback data. Predicts which gene will fix a given error cluster. Gets better over time.
  • Persistent Knowledge Base: Lessons compound forever. No decay. Confidence scores adjust with each outcome.

Dashboard

View your ML engine's status, training progress, and knowledge base in a local web dashboard:

node index.js --dashboard

Opens at http://localhost:8420. Shows feedback loop stats, predictor training progress, error clusters, knowledge base health, and recent evolution events. No external dependencies — runs entirely in your browser.

Optional: Ollama Integration

For semantic error matching (recommended but not required):

# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Pull the embedding model
ollama pull llama3.2:3b

Without Ollama, the engine falls back to regex-based heuristics. Everything still works — you just get smarter matching with it.

Usage

Standard Run (Automated)

node index.js

Review Mode (Human-in-the-Loop)

node index.js --review

Continuous Loop

node index.js --loop

Configuration

Environment Variable Default Description
EVOLVE_ALLOW_SELF_MODIFY false Allow evolution to modify its own source code. Not recommended.
EVOLVE_LOAD_MAX 2.0 Maximum 1-minute load average before backing off.
EVOLVE_STRATEGY balanced Strategy: balanced, innovate, harden, repair-only, early-stabilize, steady-state, or auto.
OLLAMA_URL http://localhost:11434 Ollama API endpoint for embeddings.
OLLAMA_EMBED_MODEL llama3.2:3b Model to use for embeddings.
LSHML_DASHBOARD_PORT 8420 Port for the standalone dashboard server.

How It Works

  1. Signal Extraction: Scans logs for errors, feature requests, performance issues (19 signal types, 4 languages)
  2. ML Clustering: Groups similar errors using embedding vectors (or regex fallback)
  3. Gene Selection: Picks the best fix strategy using knowledge base + k-NN predictor
  4. Evolution: Applies the fix with blast radius protection, validation, and rollback
  5. Feedback: Monitors subsequent cycles to verify the fix holds
  6. Learning: Records outcomes to knowledge base — proven fixes get higher confidence

Data Files

All data stays local in memory/:

File Purpose
feedback.jsonl Fix outcome tracking (append-only)
embeddings-cache.json Cached embedding vectors
knowledge.json Persistent lessons (no decay)
predictor.json Trained model weights
cluster-registry.json Semantic error cluster map

GEP Protocol (Auditable Evolution)

Every evolution produces structured, auditable assets:

  • assets/gep/genes.json: Reusable fix strategies
  • assets/gep/capsules.json: Successful evolution records
  • assets/gep/events.jsonl: Append-only audit trail

Safety

  • Blast radius limits (max files/lines changed per cycle)
  • Critical path protection (cannot modify itself or core configs)
  • Validation commands run before committing
  • Canary check (index.js must still load)
  • Ethics committee (blocks dangerous patterns)
  • Full rollback on any failure

Author

Built by Joe Che

License

MIT

安全使用建议
What to consider before installing or running this skill: - The SKILL.md promises 'no fingerprinting' and 'no telemetry', but the code includes files named deviceId.js and envFingerprint.js and other modules that likely collect environment/machine features. Ask the author for the contents of those files or inspect them yourself before trusting the claim. - The skill can modify files and has a self-modify toggle (EVOLVE_ALLOW_SELF_MODIFY). Keep that flag set to false unless you have audited the code and are comfortable allowing autonomous edits. Prefer running in single-run (--run) or review mode before enabling continuous loop. - The dashboard and tools read and serve local data (memory/, assets/), and the dashboard API returns some environment settings. Run the dashboard only on localhost and avoid exposing it to untrusted networks. Back up any important repository data before running solidify or evolution cycles. - The SKILL.md recommends installing Ollama via a curl | sh command. That installer and any pulled models are external network actions and should be treated as separate trust decisions — do not blindly run remote install scripts. - The code uses child_process/execSync/spawn, git log, and other shell interactions. Scripts can execute shell commands (and some scripts reference Feishu notification commands), so inspect scripts that call external commands before running them. - Suggested actions: (1) Review src/gep/deviceId.js, src/gep/envFingerprint.js, and src/gep/hubSearch.js to confirm they do not exfiltrate identifiers or call remote endpoints. (2) Run the skill in a tight sandbox or VM disconnected from sensitive networks and with least privilege. (3) Keep EVOLVE_ALLOW_SELF_MODIFY=false and review any proposed changes before applying (use --dry-run solidify). (4) If you need higher assurance, request a reproducible build or an explanation from the author about how 'no telemetry' is implemented and audited. If you want, I can: (a) summarize suspicious files and where they are used, (b) search the repository for network-sending code or hard-coded endpoints, or (c) walk through specific files (deviceId.js, envFingerprint.js, skillDistiller) and explain exactly what they do.
功能分析
Type: OpenClaw Skill Name: local-self-healing-machine-learning Version: 2.0.1 The skill bundle implements a sophisticated local machine learning engine for autonomous code evolution and self-healing. It features a 'Genome Evolution Protocol' (GEP) that manages code mutations with extensive safety guardrails, including blast radius limits, critical path protection (preventing self-modification in `src/gep/solidify.js`), and validation command sanitization. The bundle includes a dedicated sanitization module (`src/gep/sanitize.js`) to redact sensitive tokens and paths from logs. All external network communication and telemetry are explicitly disabled or stubbed out in this build, and the security model is transparently documented in `SECURITY.md`.
能力评估
Purpose & Capability
The stated purpose (local self-healing ML for the agent) matches many files (evolve, gep, ml, feedback, knowledge base). However there are surprising files and capabilities that don't cleanly match the 'no fingerprinting / no telemetry' promise: src/gep/deviceId.js and src/gep/envFingerprint.js exist (suggesting machine/environment identification), src/gep/hubSearch.js and skillDistiller imply external discovery/distillation flows, and scripts reference integrations (Feishu). These items are not justified by the SKILL.md claim that 'no machine ID' or 'no fingerprinting' occurs.
Instruction Scope
SKILL.md asserts 'zero network calls', but it documents optional Ollama integration and shows an example that runs a curl installer (curl https://ollama.com/install.sh | sh) and ollama pull — both are network operations initiated by user instructions. index.js and scripts use child_process/execSync/spawn, read .env and many local files (memory/, assets/), and the dashboard server exposes local data (including some env settings) via an API with CORS '*'. The code also includes an EVOLVE_ALLOW_SELF_MODIFY flag and mechanisms to solidify/evolve code, meaning the runtime can modify repository files when enabled — this deviates from the 'cannot modify itself or core configs' claim in SKILL.md (the doc claims protection but the option exists).
Install Mechanism
The skill has no install spec in the registry (instruction-only), but the package contains full source and scripts to run. The SKILL.md recommends installing Ollama via a one-liner that pipes curl to sh (high-risk practice) if the user wants embedding support. That optional installer is an external network action and a risky pattern even though it's not mandatory for the skill to run.
Credentials
Registry metadata declares no required env vars or credentials, but SKILL.md and code read many environment variables (EVOLVE_ALLOW_SELF_MODIFY, EVOLVE_STRATEGY, OLLAMA_URL/OLLAMA_EMBED_MODEL, LSHML_DASHBOARD_PORT, and several EVOLVER_*/EVOLVE_* runtime flags). The dashboard's gatherData exposes some environment values and the skill reads a .env file at startup (dotenv). More importantly, presence of envFingerprint.js and deviceId.js indicates the code may compute or store identifiers from the environment despite the 'no fingerprinting' claim — that is disproportionate to the claimed privacy guarantees.
Persistence & Privilege
The skill can run persistently as a daemon (--loop), writes a pid file, maintains persistent knowledge under memory/ and assets/gep/, and implements 'solidify' which writes genes, capsules, and events. There's an explicit EVOLVE_ALLOW_SELF_MODIFY toggle (default false) that suggests the engine can change its own source if enabled. While self-modification and persistent state are plausible for a self-healing system, they are high‑privilege actions and the skill's claim that 'cannot modify itself or core configs' is inconsistent with the existence of these mechanisms.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install local-self-healing-machine-learning
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /local-self-healing-machine-learning 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
v2.0.1: Updated descriptions, fixed test runner, rebuilt dist. ML engine with feedback loop, k-NN predictor, embedding-based error clustering, persistent knowledge base, and standalone dashboard. 100% local, zero network calls.
v2.0.0
v2.0.0: ML engine with feedback loop, k-NN predictor, embedding-based error clustering, persistent knowledge base, and standalone dashboard.
元数据
Slug local-self-healing-machine-learning
版本 2.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Local Self-Healing Machine Learning 是什么?

A fully local machine learning engine that makes your OpenClaw agent smart over time — without ever calling home, revealing your machine ID, or exposing any... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 348 次。

如何安装 Local Self-Healing Machine Learning?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install local-self-healing-machine-learning」即可一键安装,无需额外配置。

Local Self-Healing Machine Learning 是免费的吗?

是的,Local Self-Healing Machine Learning 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Local Self-Healing Machine Learning 支持哪些平台?

Local Self-Healing Machine Learning 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Local Self-Healing Machine Learning?

由 josephtandle(@josephtandle)开发并维护,当前版本 v2.0.1。

💬 留言讨论