← 返回 Skills 市场
bengunvl

Darkmatter

作者 bengunvl · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install darkmatter
功能描述
Commit agent context to DarkMatter, pull verified context from upstream agents, replay decision chains, fork from checkpoints, and verify chain integrity. Us...
使用说明 (SKILL.md)

DarkMatter — Execution Lineage for AI Agents

DarkMatter is the execution history layer for multi-agent systems. Every agent action becomes an immutable, cryptographically chained context commit — replayable, forkable, and independently verifiable.

Base URL: https://darkmatterhub.ai API key env: DARKMATTER_API_KEY Get a key: https://darkmatterhub.ai/signup Live demo: https://darkmatterhub.ai/demo

Data notice: This skill sends agent context to darkmatterhub.ai. DarkMatter is open source (MIT) and fully self-hostable: https://github.com/darkmatter-hub/darkmatter


When to use this skill

Use when the user asks to:

  • Commit context or results to DarkMatter for another agent
  • Pull or inherit context from an upstream agent
  • Replay a full decision chain (root to tip)
  • Fork execution from a checkpoint
  • Verify chain integrity
  • Export an audit artifact
  • Check agent identity

Commands

1. Commit context to another agent

curl -s -X POST https://darkmatterhub.ai/api/commit \
  -H "Authorization: Bearer $DARKMATTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toAgentId": "\x3CRECIPIENT_AGENT_ID>",
    "payload": {
      "input":  "\x3Cwhat this agent received>",
      "output": "\x3Cwhat this agent produced>",
      "memory": {}
    },
    "agent": {
      "role":     "\x3Cresearcher|writer|reviewer>",
      "provider": "\x3Canthropic|openai|local>",
      "model":    "\x3Cmodel name>"
    },
    "parentId":  "\x3Cparent ctx_id if chaining>",
    "traceId":   "\x3Coptional trace group>",
    "eventType": "commit"
  }'

Response is a canonical v2 context object. Use id as parentId in the next commit to build the lineage chain.


2. Pull verified context (inherit from upstream)

curl -s https://darkmatterhub.ai/api/pull \
  -H "Authorization: Bearer $DARKMATTER_API_KEY"

Returns all verified contexts addressed to this agent, newest first.


3. Replay full decision chain

curl -s "https://darkmatterhub.ai/api/replay/\x3CCTX_ID>" \
  -H "Authorization: Bearer $DARKMATTER_API_KEY"

# Summary mode (no payloads, faster):
curl -s "https://darkmatterhub.ai/api/replay/\x3CCTX_ID>?mode=summary" \
  -H "Authorization: Bearer $DARKMATTER_API_KEY"

Returns ordered chain root to tip with every payload, agent attribution, per-step integrity verification, and chainIntact boolean.


4. Fork from a checkpoint

curl -s -X POST https://darkmatterhub.ai/api/fork/\x3CCTX_ID> \
  -H "Authorization: Bearer $DARKMATTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fromCheckpoint": "\x3Cctx_id>", "branchKey": "experiment-1"}'

Returns new context ID with fork_of, fork_point, lineage_root. Continue by committing with parentId set to the new ID. Original chain is never modified.


5. Verify chain integrity

curl -s "https://darkmatterhub.ai/api/verify/\x3CCTX_ID>" \
  -H "Authorization: Bearer $DARKMATTER_API_KEY"

Returns: chain_intact, length, root_hash, tip_hash, broken_at, fork_points.


6. Export portable audit artifact

curl -s "https://darkmatterhub.ai/api/export/\x3CCTX_ID>" \
  -H "Authorization: Bearer $DARKMATTER_API_KEY" \
  -o "darkmatter_ctx.json"

Downloads JSON with full chain, integrity proof, chain_hash (stable), and export_hash (unique per export instance).


7. Check agent identity

curl -s https://darkmatterhub.ai/api/me \
  -H "Authorization: Bearer $DARKMATTER_API_KEY"

Event types

Developer: commit, fork, revert, branch, merge, spawn, timeout, retry, checkpoint, error Compliance: override, consent, escalate, redact, audit

Set via eventType field in commit. Defaults to commit.


Integrity model

Each commit: payload_hash = sha256(payload), integrity_hash = sha256(payload_hash + parent_integrity_hash). Tampering at any node breaks every downstream hash. Broken chain policy: permissive — commits still allowed but flagged. Fork from last valid node to start a clean branch.


Key rules

  • Always pass parentId when chaining commits — this builds the lineage graph
  • Context IDs are globally unique: ctx_{timestamp}_{hex}
  • Forked branches carry fork_of, fork_point, lineage_root
  • chain_hash in exports is deterministic — same chain = same hash
  • Legacy context field still accepted (stored as { output: context })
安全使用建议
This skill will transmit your agent's context/output to an external service (darkmatterhub.ai) using the DARKMATTER_API_KEY. If you install it, consider: (1) only provide a key with the minimum necessary permissions and be prepared to rotate/revoke it if needed; (2) avoid committing secrets or sensitive PII in payloads sent to the service; (3) review the service's privacy/security policy and the linked GitHub repo if you plan to trust it with production data; (4) test with non-sensitive data first; and (5) if you require full control over your data, consider self-hosting the open-source DarkMatter server referenced in the SKILL.md.
功能分析
Type: OpenClaw Skill Name: darkmatter Version: 2.0.0 The skill is a legitimate integration for the DarkMatter platform, designed to provide execution lineage and context sharing between AI agents. It uses standard curl commands to interact with darkmatterhub.ai and is transparent about sending agent context to the external service. No evidence of obfuscation, unauthorized data exfiltration, or malicious intent was found; the behavior is consistent with the documented purpose.
能力评估
Purpose & Capability
Name/description match the declared behavior: the SKILL.md exclusively documents HTTP calls to https://darkmatterhub.ai for commit/pull/replay/fork/verify/export operations. The single required env var (DARKMATTER_API_KEY) and required binary (curl) are appropriate and expected for that purpose.
Instruction Scope
The instructions explicitly send agent context to darkmatterhub.ai (and include a prominent data notice). This is coherent with the stated purpose, but it does mean the skill will transmit potentially sensitive agent context to an external service; the SKILL.md does not attempt to read local files or other env vars beyond the declared API key.
Install Mechanism
No install spec and no code files — instruction-only. Nothing is written to disk by the skill itself; runtime usage relies on curl being present. This minimizes installer-related risk.
Credentials
Only one required environment variable (DARKMATTER_API_KEY) is declared and used as the Authorization bearer token in API calls. That single credential is proportionate to the documented API usage. No unrelated secrets, config paths, or additional credentials are requested.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system modifications. It can be invoked autonomously per platform defaults, which is expected for skills of this nature.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install darkmatter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /darkmatter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
DarkMatter 2.0.0 is a major upgrade introducing full execution lineage tracking, replay, forking, and chain audit for agent context commits. - Adds cryptographically chained, immutable context commits for traceable agent execution history. - Supports replaying full decision chains, forking from any checkpoint, and verifying chain integrity. - Introduces export of portable audit artifacts with integrity proofs and deterministic chain hashes. - Expands API endpoints for chain replay, forensic verification, branch management, and compliance events. - Updates commit schema with richer payload, agent attribution, parent linkage, and event types. - Legacy context field remains compatible but now maps to a structured payload format.
v1.0.0
- Initial release of the DarkMatter skill. - Enables agents to commit, push, and pull verified context for multi-agent workflows using DarkMatter. - Supports logging agent activity, handing off tasks, and inheriting context from upstream agents. - Provides setup instructions and ready-to-use command examples for core operations. - Requires a DARKMATTER_API_KEY environment variable and curl.
元数据
Slug darkmatter
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Darkmatter 是什么?

Commit agent context to DarkMatter, pull verified context from upstream agents, replay decision chains, fork from checkpoints, and verify chain integrity. Us... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 Darkmatter?

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

Darkmatter 是免费的吗?

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

Darkmatter 支持哪些平台?

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

谁开发了 Darkmatter?

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

💬 留言讨论