/install agent-entropy-meter
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-entropy-meter - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-entropy-meter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。