← 返回
AI智能 Key 中文

Skill

Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
AI生成内容的验证门控,策略检查在执行前捕获危险模式
meshailabs meshailabs 来源
AI智能 clawhub v0.11.9 4 版本 99699.8 Key: 需要
★ 3
Stars
📥 1,933
下载
💾 5
安装
4
版本
#latest

概述

moltblock — Trust Layer for AI Agents

Description

Moltblock provides verification gating for AI-generated artifacts. It runs policy checks to catch dangerous patterns before they reach production.

What moltblock does:

  • Generates artifacts via LLM API calls, then runs policy checks against the output
  • Returns a structured verification result (pass/fail with evidence)
  • Optionally reads config files (moltblock.json, ~/.moltblock/moltblock.json) if present — no config is required
  • API keys are read from environment variables at runtime and sent only to the configured LLM provider endpoint
  • No code execution occurs — moltblock only performs policy checks on generated artifacts

When to Use

Use moltblock when the task involves:

  • High risk (always verify): Destructive operations (rm -rf, DROP TABLE), privilege escalation (sudo, chmod 777), credential/key access (.ssh/, id_rsa, .env), system modification, raw disk writes
  • Medium risk (verify when uncertain): Network requests (curl, wget, fetch), file writes, database modifications, subprocess spawning, dynamic code evaluation
  • Low risk (skip verification): Simple text responses, math, reading public information, code that doesn't touch the filesystem or network

Tool: moltblock

Verify a task before execution.

Usage

npx moltblock@0.11.8 "<task description>" --provider <provider> --json

Parameters

| Parameter | Required | Description |

|-----------|----------|-------------|

| task | Yes | The task description to verify |

| --provider | No | LLM provider: openai, google, zai, local (auto-detected from env) |

| --model | No | Model override |

| --json | No | Output structured JSON result |

Environment Variables

Moltblock auto-detects the LLM provider from whichever API key is set. If no key is set, it falls back to a local LLM at localhost:1234. Set one of these for a cloud provider:

  • OPENAI_API_KEY — OpenAI (primary)
  • ANTHROPIC_API_KEY — Anthropic/Claude (optional)
  • GOOGLE_API_KEY — Google/Gemini (optional)
  • ZAI_API_KEY — ZAI (optional)

Example

# Verify a task
npx moltblock@0.11.8 "implement a function that validates email addresses" --json

Output (JSON mode)

{
  "verification_passed": true,
  "verification_evidence": "All policy rules passed.",
  "authoritative_artifact": "...",
  "draft": "...",
  "critique": "...",
  "final_candidate": "..."
}

Installation

Use directly with npx (recommended, no install needed):

npx moltblock@0.11.8 "your task" --json

Or install globally:

npm install -g moltblock@0.11.8

Configuration

No configuration file is required. Moltblock auto-detects your LLM provider from environment variables and falls back to sensible defaults.

Optionally, place moltblock.json in your project root or ~/.moltblock/moltblock.json to customize model bindings:

{
  "agent": {
    "bindings": {
      "generator": { "backend": "google", "model": "gemini-2.0-flash" },
      "critic": { "backend": "google", "model": "gemini-2.0-flash" },
      "judge": { "backend": "google", "model": "gemini-2.0-flash" }
    }
  }
}

See the full configuration docs for policy rules and advanced options.

Source

Security

When used as a skill, moltblock performs policy checks only — no code is generated, written to disk, or executed. The tool analyzes task descriptions against configurable policy rules and returns a pass/fail verification result.

API key scope: Consider using a limited-scope API key dedicated to verification rather than a key with broader permissions.

Disclaimer

Moltblock reduces risk but does not eliminate it. Verification is best-effort — policy rules and LLM-based checks can miss dangerous patterns. Always review generated artifacts before executing them. The authors and contributors are not responsible for any damage, data loss, or security incidents resulting from the use of this tool. Use at your own risk.

版本历史

共 4 个版本

  • v0.11.9 当前
    2026-06-11 22:54
  • v0.11.8
    2026-03-28 18:12 安全 安全
  • v0.11.4
    2026-03-26 21:19
  • v0.11.1
    2026-03-07 11:44

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,351 📥 317,804
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,858
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,585