Xpersona
A

Agent Hive

CLAWHUB · Unverified

Create and manage multi-agent teams in OpenClaw with shared workspace, budget governance, and mesh networking. Use when: (1) adding a new agent to an existin... Skill: Agent Hive Owner: nissan Summary: Create and manage multi-agent teams in OpenClaw with shared workspace, budget governance, and mesh networking. Use when: (1) adding a new agent to an existin... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-28T04:25:07.009Z | user Fixed: moved version to top-level frontmatter for scanner compliance v1.0.1 | 2026-03-15T22:19:27.791Z | auto - SKILL.md metadata section upd

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17f2fw07zktjmcgagf5c29tbd83rt7v:agent-hive
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nissan-agent-hive/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

48,947 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-hive
version: 1.0.2
description: "Create and manage multi-agent teams in OpenClaw with shared workspace, budget governance, and mesh networking. Use when: (1) adding a new agent to an existing team, (2) setting up a multi-agent workspace from scratch, (3) configuring agent-to-agent spawn permissions (mesh/hub-spoke), (4) implementing budget governance for agent teams, (5) auditing agent spend and enforcing demotions. NOT for: single-agent setups or modifying agent personalities (edit SOUL.md directly)."
metadata:
  version: 1.0.0
  openclaw:
    requires:
      bins: []
      env: []
    network:
      outbound: []
    primaryEnv: ""
---
**Last used:** 2026-03-24
**Memory references:** 2
**Status:** Active


# Agent Hive

Create and manage multi-agent teams with shared memory, budget governance, and configurable spawn permissions.

## Architecture

```
Main Workspace (~/.openclaw/workspace/)
├── MEMORY.md, TOOLS.md, USER.md, IDENTITY.md   ← shared brain (real files)
├── agents/<name>/                                ← per-agent outbox, inbox, budget
├── agents/governance/                            ← governance rules + audit log
├── memory/, projects/, scripts/, skills/         ← shared resources
└── content/                                      ← shared content

Agent Workspace (~/.openclaw/workspace-<id>/)
├── SOUL.md              ← unique personality (local file)
├── AGENTS.md            ← unique instructions (local file)
├── HEARTBEAT.md         ← agent-specific heartbeat (local file)
├── .openclaw/           ← agent-specific config dir
└── everything else      ← SYMLINKS to main workspace
```

## Adding a New Agent

### Step 1: Create workspace with symlinks

```bash
AGENT_ID="<id>"
MAIN="$HOME/.openclaw/workspace"
WS="$HOME/.openclaw/workspace-$AGENT_ID"

mkdir -p "$WS/.openclaw"

# Symlink shared brain
for f in .learnings IDENTITY.md MEMORY.md ROADMAP.md TOOLS.md USER.md; do
  ln -sf "../workspace/$f" "$WS/$f"
done
for d in agents content memory projects scripts skills; do
  ln -sf "../workspace/$d" "$WS/$d"
done
```

### Step 2: Create unique files

Create `$WS/SOUL.md` — the agent's personality. This is theirs alone.

Create `$WS/AGENTS.md` — agent-specific instructions. Must include:
- Session startup checklist (read SOUL.md, check BUDGET.json, check INBOX.md)
- Communication rules (INBOX/OUTBOX pattern)
- What the agent does and doesn't do
- Budget rules section (see references/budget-rules.md)

Create `$WS/HEARTBEAT.md` — minimal heartbeat config.

### Step 3: Create agent directory in shared workspace

```bash
mkdir -p "$MAIN/agents/$AGENT_ID"
touch "$MAIN/agents/$AGENT_ID/INBOX.md"
touch "$MAIN/agents/$AGENT_ID/OUTBOX.md"
```

### Step 4: Create budget file

Copy `scripts/create_budget.sh` output or create manually:

```json
{
  "daily_limit_output_tokens": 50000,
  "today": "YYYY-MM-DD",
  "used_output_tokens": 0,
  "spawns": [],
  "status": "active",
  "warnings": [],
  "consecutive_overbudget_days": 0
}
```

Save t

_meta.json

{
  "ownerId": "kn72rbtybr3jzhcj2260qz6p2181x1mr",
  "slug": "agent-hive",
  "version": "1.0.2",
  "publishedAt": 1774671907009
}

references/governance.md

# Agent Budget Governance Framework

## Philosophy

Trust-based autonomy with accountability. Agents start with mesh privileges
(can spawn each other directly), keep them by being responsible with budget,
and lose them through waste.

## Daily Token Budget

Each agent has a daily output token budget. Resets at midnight in the configured timezone.

Default: 50,000 output tokens/day per agent. Orchestrator (main) is unlimited.

## Budget File Schema

Location: `agents/<agent_dir>/BUDGET.json`

```json
{
  "daily_limit_output_tokens": 50000,
  "today": "YYYY-MM-DD",
  "used_output_tokens": 0,
  "spawns": [
    {"target": "agent_id", "task": "brief description", "tokens": 5000, "ts": "ISO8601"}
  ],
  "status": "active|red|demoted",
  "warnings": [],
  "consecutive_overbudget_days": 0
}
```

## Enforcement Levels

| Level | Threshold | Effect |
|-------|-----------|--------|
| Green | < 80% | Normal operation |
| Yellow | 80-100% | Warning logged. Finish current work, avoid new spawns |
| Red | > 100% | Over budget. MUST NOT spawn. Route through orchestrator |
| Emergency | > 200% | Immediate demotion |
| Demoted | 3 consecutive days over | Mesh privileges revoked |

## Demotion Process

1. Set `allowAgents: []` in openclaw.json for the agent
2. Set `status: "demoted"` in BUDGET.json
3. Log event to `agents/governance/log.jsonl`
4. Restart gateway
5. Alert the human operator

## Rehabilitation

1. Agent demonstrates responsible behaviour for 5 days via orchestrator-mediated calls
2. Orchestrator recommends reinstatement
3. Human approves
4. Restore `allowAgents` and set `status: "active"`

## Governance Log

Append-only JSONL at `agents/governance/log.jsonl`:

```json
{"ts": "ISO8601", "agent": "name", "event": "daily_reset|warning|red|demotion|reinstatement", "details": {}}
```

## Agent AGENTS.md Budget Rules Section

Every agent's AGENTS.md must include:

```markdown
## Budget Rules
- Read `agents/<your_dir>/BUDGET.json` at session start to check your status
- If status is "red" or "demoted": do NOT spawn other agents. Write to OUTBOX.md instead.
- After completing spawned tasks, update BUDGET.json: increment `used_output_tokens` and add to `spawns[]`
- If approaching 80% of daily limit, finish current work and avoid new spawns
- Budget resets daily at midnight. Orchestrator audits on heartbeat.
- See `agents/governance/GOVERNANCE.md` for full rules
```

references/heartbeat-snippet.md

# Heartbeat Budget Audit Snippet

Add this as a step in your HEARTBEAT.md:

```markdown
### Agent Budget Audit

Run the budget audit to check all agent spending and enforce governance rules:

\```bash
python3 /path/to/workspace/scripts/budget_audit.py
\```

- Automatically resets daily counters at midnight
- Yellow warning at 80%, Red at 100%, Emergency demotion at 200%
- 3 consecutive overbudget days → automatic demotion (loses mesh spawn privileges)
- If any agent is demoted → alert human: "⛔ Agent {name} demoted: {reason}"
- If any agent is in Red → note in daily log
- If all green → silent
```

skill-card.md

## Description:

Create and manage multi-agent teams in OpenClaw with shared workspace, budget governance, and mesh networking.

This skill is ready for commercial/non-commercial use.

## Publisher:

[nissan](https://clawhub.ai/user/nissan)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw operators use Agent Hive to add and coordinate multi-agent workspaces, configure spawn permissions, and audit budget governance.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill creates persistent shared multi-agent workspaces with broad writable shared state.

Mitigation: Install only when shared OpenClaw workspaces are intended, review filesystem changes before use, and keep shared memory, scripts, and skills under appropriate access control.

Risk: Budget demotion status alone may not revoke spawn permissions.

Mitigation: Pair demotion with OpenClaw authorization updates, gateway restart, and validation before relying on budget status to restrict agent spawning.

Risk: Workspace setup depends on caller-provided agent identifiers and creates files under the OpenClaw workspace.

Mitigation: Use simple trusted agent IDs only and inspect generated workspace paths before running setup scripts.

## Reference(s):

- [Agent Budget Governance Framework](references/governance.md)
- [Heartbeat Budget Audit Snippet](references/heartbeat-snippet.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with inline JSON and shell command snippets, plus bundled Python and shell scripts.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include filesystem setup steps for shared OpenClaw workspaces and budget files.]

## Skill Version(s):

1.0.2 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Agent Hive and adjacent AI workflows.