← Back to Skills Marketplace
roamer-remote

Agent Entropy Meter

by Roamer 徐 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
71
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install agent-entropy-meter
Description
Measure information entropy and redundancy in agent group communications. Use when user asks about agent communication efficiency, information redundancy, en...
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-entropy-meter
  3. After installation, invoke the skill by name or use /agent-entropy-meter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug agent-entropy-meter
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Agent Entropy Meter?

Measure information entropy and redundancy in agent group communications. Use when user asks about agent communication efficiency, information redundancy, en... It is an AI Agent Skill for Claude Code / OpenClaw, with 71 downloads so far.

How do I install Agent Entropy Meter?

Run "/install agent-entropy-meter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Entropy Meter free?

Yes, Agent Entropy Meter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent Entropy Meter support?

Agent Entropy Meter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Entropy Meter?

It is built and maintained by Roamer 徐 (@roamer-remote); the current version is v1.0.0.

💬 Comments