/federation
Manage cross-installation agent federation
> /plugin marketplace add ruvnet/claude-flowHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/federation
Context preview
What this command does when you run it.
Manage cross-installation agent federation
Command definition
federation.mdname: federation
description: Manage cross-installation agent federation
$ARGUMENTS Manage federation peers, trust, and audit logs. Parse subcommand from $ARGUMENTS.
Usage: /federation <subcommand> [options]
Subcommands:
- `init` -- Generate keypair and initialize federation
- `join <endpoint>` -- Connect to a federation peer
- `leave` -- Leave the federation gracefully
- `peers` -- List known peers with trust levels
- `send <node-id> <message-type> <payload>` -- Send a message to a peer with optional budget controls (ADR-097)
- `status` -- Show federation health, sessions, metrics
- `audit [--compliance hipaa|soc2|gdpr] [--since DATE]` -- Query audit logs
- `trust <node-id> [--review]` -- View trust score breakdown
- `config [--pii-policy PATH]` -- Configure PII policies and compliance mode
Budget options for `send` (all optional, ADR-097 Phase 1; defaults preserve legacy unbounded behavior except `maxHops` floors at 8 to defang recursion):
- `--max-hops N` -- max hop chain length (default `8`, `0` disallows remote delegation)
- `--max-tokens N` -- cumulative token cap across the hop chain (default unbounded)
- `--max-usd N` -- cumulative USD cap across the hop chain (default unbounded)
- `--hop-count N` -- starting hop count (default `0`; pass-through when re-forwarding)
- `--spent-tokens N` / `--spent-usd N` -- caller-reported usage from previous legs
Errors return constant strings (`HOP_LIMIT_EXCEEDED`, `BUDGET_EXCEEDED`, `INVALID_BUDGET`) with no remaining-budget echo.
Steps by subcommand:
**init**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation init` **join**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation join ENDPOINT` **leave**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation leave` **peers**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation peers` **send**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation send NODE_ID MSG_TYPE PAYLOAD [--max-hops N] [--max-tokens N] [--max-usd N] [--hop-count N] [--spent-tokens N] [--spent-usd N]` **status**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation status` **audit**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation audit --compliance MODE --since DATE` **trust**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation trust NODE_ID --review` **config**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation config --pii-policy PATH`
Read more
name: federation description: Manage cross-installation agent federation
$ARGUMENTS Manage federation peers, trust, and audit logs. Parse subcommand from $ARGUMENTS.
Usage: /federation <subcommand> [options]
Subcommands:
- `init` -- Generate keypair and initialize federation
- `join <endpoint>` -- Connect to a federation peer
- `leave` -- Leave the federation gracefully
- `peers` -- List known peers with trust levels
- `send <node-id> <message-type> <payload>` -- Send a message to a peer with optional budget controls (ADR-097)
- `status` -- Show federation health, sessions, metrics
- `audit [--compliance hipaa|soc2|gdpr] [--since DATE]` -- Query audit logs
- `trust <node-id> [--review]` -- View trust score breakdown
- `config [--pii-policy PATH]` -- Configure PII policies and compliance mode
Budget options for `send` (all optional, ADR-097 Phase 1; defaults preserve legacy unbounded behavior except `maxHops` floors at 8 to defang recursion):
- `--max-hops N` -- max hop chain length (default `8`, `0` disallows remote delegation)
- `--max-tokens N` -- cumulative token cap across the hop chain (default unbounded)
- `--max-usd N` -- cumulative USD cap across the hop chain (default unbounded)
- `--hop-count N` -- starting hop count (default `0`; pass-through when re-forwarding)
- `--spent-tokens N` / `--spent-usd N` -- caller-reported usage from previous legs
Errors return constant strings (`HOP_LIMIT_EXCEEDED`, `BUDGET_EXCEEDED`, `INVALID_BUDGET`) with no remaining-budget echo.
Steps by subcommand:
**init**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation init` **join**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation join ENDPOINT` **leave**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation leave` **peers**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation peers` **send**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation send NODE_ID MSG_TYPE PAYLOAD [--max-hops N] [--max-tokens N] [--max-usd N] [--hop-count N] [--spent-tokens N] [--spent-usd N]` **status**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation status` **audit**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation audit --compliance MODE --since DATE` **trust**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation trust NODE_ID --review` **config**: `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation config --pii-policy PATH`
An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.
Repo: ruvnet/claude-flow
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

