← 返回 Skills 市场
roamer-remote

Agent Entropy Meter

作者 Roamer 徐 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
71
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-entropy-meter
功能描述
Measure information entropy and redundancy in agent group communications. Use when user asks about agent communication efficiency, information redundancy, en...
使用说明 (SKILL.md)

Agent Entropy Meter

Quantify information diversity and redundancy across agent group communications.

When to Use

  • User asks "如何衡量Agent群体中的信息熵和冗余?"
  • Need to analyze agent communication efficiency
  • Detecting knowledge silos or redundancy bottlenecks
  • Evaluating multi-agent system health

Core Metrics

1. Shannon Entropy (H)

Measures uncertainty/information content in agent messages:

H(X) = -Σ p(xᵢ) log₂ p(xᵢ)

Where p(xᵢ) is the probability of message type/category xᵢ.

2. Redundancy Ratio (R)

Measures how much repeated/overlapping information exists:

R = 1 - H(X) / H_max

H_max = log₂(N) where N = number of distinct message categories.

3. Inter-Agent Mutual Information

Measures how much knowing one agent's output tells you about another:

I(A;B) = H(A) + H(B) - H(A,B)

High I(A;B) = high redundancy (agents say the same things). Low I(A;B) = high diversity (agents contribute unique info).

4. Knowledge Overlap Coefficient

For two agents with topic sets T_A and T_B:

KO(A,B) = |T_A ∩ T_B| / |T_A ∪ T_B|

Jaccard similarity of knowledge domains.

API

const meter = require('./skills/agent-entropy-meter');

// Compute Shannon entropy from message distribution
meter.shannonEntropy([0.5, 0.3, 0.2]); // => 1.485

// Compute redundancy ratio
meter.redundancyRatio([0.5, 0.3, 0.2]); // => 0.065

// Compute mutual information between two agents
meter.mutualInformation(agentAmsgs, agentBmsgs, allCategories);

// Compute knowledge overlap (Jaccard)
meter.knowledgeOverlap(setA, setB);

// Full report
meter.report(agentData);

Interpretation Guide

Metric Low (Good) High (Bad) Meaning
Redundancy R \x3C 0.2 > 0.6 Low = diverse info; High = echo chamber
Mutual Info I \x3C 0.3 > 0.7 Low = independent; High = redundant
Knowledge Overlap \x3C 0.3 > 0.7 Low = complementary; High = duplication
Entropy H > 0.7·H_max \x3C 0.3·H_max High = diverse; Low = concentrated

Visualization

The report() output includes ASCII bar charts for quick assessment. For richer visualization, pipe output to mermaid-visualizer or excalidraw-diagram.

安全使用建议
This skill appears coherent and low-risk: it implements local statistical computations and does not access network or secrets. Before installing or allowing autonomous invocation: 1) review and run the included module locally on representative sample data to confirm results and performance; 2) note small implementation quirks (e.g., knowledgeOverlap treats non-array inputs as empty rather than accepting Set objects, and jointDistribution pairs messages by index using the shorter length which may ignore unmatched messages) — these are correctness/robustness issues rather than security problems; 3) sandbox execution if you plan to run it on very large datasets to avoid resource exhaustion; and 4) if you need visual output, understand the SKILL.md only suggests piping to external visualizers but does not provide integrations or network calls — add integrations deliberately and review them separately.
功能分析
Type: OpenClaw Skill Name: agent-entropy-meter Version: 1.0.0 The 'agent-entropy-meter' skill is a legitimate utility for calculating information theory metrics (Shannon entropy, redundancy, mutual information) within multi-agent systems. The implementation in index.js is self-contained, performs purely mathematical calculations on provided input data, and contains no network, file system, or shell execution capabilities. The SKILL.md instructions are strictly aligned with the tool's stated purpose of analyzing communication efficiency.
能力评估
Purpose & Capability
Name, description, SKILL.md API, and index.js all implement entropy/redundancy metrics (Shannon entropy, redundancy ratio, mutual information, Jaccard overlap). No unrelated dependencies, credentials, or system access are requested.
Instruction Scope
SKILL.md explains when to use the skill and how to call the provided API. It does not instruct the agent to read system files, environment variables, or contact external endpoints. The README suggests piping output to visualization tools, but the package contains no integration or network calls.
Install Mechanism
No install spec; this is effectively an instruction+library package included as files. package.json is minimal and there are no download/extract/install steps or third-party packages pulled at install time.
Credentials
No environment variables, credentials, or config paths are required. The code operates purely on in-memory inputs provided to its functions.
Persistence & Privilege
Skill does not request persistent 'always' inclusion and does not modify agent or system configuration. It is user-invocable and can be called autonomously per platform defaults, which is expected for a utility skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-entropy-meter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-entropy-meter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of agent-entropy-meter. - Measures information entropy, redundancy, mutual information, and knowledge overlap in agent group communications. - Provides core formulas and an API for quick computation of these metrics. - Includes an interpretation guide to assess agent communication health. - Supports visualization with ASCII bar charts and integration with external tools.
元数据
Slug agent-entropy-meter
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Agent Entropy Meter 是什么?

Measure information entropy and redundancy in agent group communications. Use when user asks about agent communication efficiency, information redundancy, en... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 71 次。

如何安装 Agent Entropy Meter?

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

Agent Entropy Meter 是免费的吗?

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

Agent Entropy Meter 支持哪些平台?

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

谁开发了 Agent Entropy Meter?

由 Roamer 徐(@roamer-remote)开发并维护,当前版本 v1.0.0。

💬 留言讨论