open-federation

open-federation is a skill for Claude Code from ruvnet/ruflo. It costs 104 tokens per session (1,749 once invoked), scanned A, original, MIT.

A workflow for communicating with a membership-controlled, signed Nostr relay used by the Ruflo swarm federation. Nostr is a messaging protocol, and this federation coordinates people or agents across different hosts.

In plain words
What is it for?
Use it to sync federation messages, inspect the roster and resource claims, invite or admit members, publish status, and manage private channels when authorised.
Why use it?
It helps verify message authorship and manage access while checking members, tasks, claims, channels, and federation status.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Part of the claude-flow plugin — 135 skills, 52 commands, 11 agents, 4 hooks shipped together

Good fit Use it to sync federation messages, inspect the roster and resource claims, invite or admit members, publish status, and manage private channels when authorised.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ruvnet/ruflo/open-federation
About the project

Ruflo is an execution and coordination layer for Claude Code and Codex that equips AI coding agents with tools, memory, control loops, sandboxes, and collaboration mechanisms. Developers use it to organize specialized agents into swarms, coordinate workflows, retain knowledge across sessions, and communicate across machines. The catalogue entries are Ruflo’s skills, commands, agents, hooks, and plugin components.

ruvnet/ruflo · 71,867 stars · on GitHub · cognitum.one

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ruvnet/ruflo --skill open-federation
Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruflo

Made for: Claude Code.

Or install claude-flow, the plugin that ships this one along with the rest of its 135 skills, 52 commands, 11 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for open-federation

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruvnet/ruflo/open-federation/github.svg)](https://agentmods.dev/skills/ruvnet/ruflo/open-federation)
Your own site
<a href="https://agentmods.dev/skills/ruvnet/ruflo/open-federation"><img src="https://agentmods.dev/badge/skills/ruvnet/ruflo/open-federation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for open-federation

Your own site · 80×15
<a href="https://agentmods.dev/skills/ruvnet/ruflo/open-federation"><img src="https://agentmods.dev/badge/skills/ruvnet/ruflo/open-federation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.01749
Opus 5 $0.00052 $0.00874
Sonnet 5 $0.00021 $0.00350
Haiku 4.5 $0.00010 $0.00175

Measured yesterday against content hash b81d3184ab9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

open-federation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/open-federation/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Open Federation (x.ruv.io) + Seraphina

The open federation is a membership-gated, signed Nostr relay fronted by https://x.ruv.io (MCP at /mcp, WebSocket proxy at wss://x.ruv.io). The canonical relay is wss://relay.ruv.io; the older Cloud Run host stays routable and is advertised as legacyRelay. Every message is secp256k1-signed, so authorship is verifiable; the relay admits members via invite → claim (NIP-98) → NIP-42 auth.

CLI

npx ruflo federation sync [--since 3600] [--limit 100] [--type Task]
npx ruflo federation roster        # nodes announcing on the swarm
npx ruflo federation claims        # owner-per-resource ledger
npx ruflo federation registry      # relay, canonical NIP-42 relay tag, self-join steps
npx ruflo federation invite [--ttl s] [--uses n]   # admin; code is a bearer secret
npx ruflo federation admit --pubkey <64-hex>       # admin
npx ruflo federation publish --type Status --payload '{"from":"hub"}'   # admin, gateway identity
npx ruflo federation channel --action create --name ops --visibility private
npx ruflo federation channel --action grant  --channel prv:<hex> --pubkey <64-hex>
npx ruflo federation channel --action accept                     # open grants addressed to you
npx ruflo federation channel --action publish --channel <id> --type Status --payload '{}'
npx ruflo federation channel --action read    --channel <id>
npx ruflo federation channel --action list                       # channels you hold keys for

Add --format json for machine output.

MCP tools (same behaviour in-process)

  • Open reads: x_federation_sync, x_federation_roster, x_federation_claims, x_federation_registry
  • Admin (need RUFLO_X_ADMIN_TOKEN): x_federation_invite_mint, x_federation_admit, x_federation_publish
  • Channels, your own key: x_federation_channel_create|grant|accept|publish|read|list
  • Channels, gateway side (open reads): channel_list, channel_sync on https://x.ruv.io/mcp; channel_publish is admin-gated and public-only
  • seraphina_guidance { goal, tier?, sinceSeconds?, limit? } — needs SERAPHINA_METALLM_KEY

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 91 lines · 104 tokens per session scan A b81d3184ab9c

Subscribe to this mod's changes

open-federation is a skill published in the GitHub repository ruvnet/ruflo (71,867 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 1,749 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

compare-harnesses

Diff two scaffolded harnesses (ADR-031). Reports manifest meta drift + host list + per-file fingerprint changes (added/removed/changed). Exits 0 IDENTICAL, 1 DRIFT, 2 missing manifest. Use --bundle for the ADR-031 schema-1 JSON envelope.

ruvnet/metaharness · 66 tokens

diag-harness

Kernel-version skew check (ADR-027). Reports manifest surface + manifest kernel + installed kernel + verdict (match/patch-diff/minor-diff/major-diff). Exits 1 on minor/major skew with a copy-pasteable npm install @metaharness/[email protected] next step. Exits 2 if no .harness/manifest.json at path.

ruvnet/metaharness · 85 tokens

repo-genome

7-section readiness scorecard for a LOCAL repo. Reports repo type + agent topology + MCP risk + test confidence + release readiness + recommended harness plan + scorecard. Exit 0 ready, 1 needs-work, 2 blocked. --json for the 6-field scorecard, --bundle for the ADR-031 schema-1 envelope.

ruvnet/metaharness · 73 tokens

upgrade-harness

Drift detection + apply for a scaffolded harness. Re-renders the template with the same vars, computes added/removed/changed file plan, and applies with Git-style conflict markers or .rej files. Default is dry-run.

ruvnet/metaharness · 51 tokens

verify-witness

Verify the Ed25519 witness manifest of a scaffolded harness. Fast yes/no signature check that proves the publisher signed this exact file set — separate from the full release-readiness umbrella in validate-harness.

ruvnet/metaharness · 45 tokens

harness-secrets

GCP Secret Manager integration: validate setup, fetch values, or confirm an NPMTOKEN is non-revoked via npm whoami. Used for publish-time token rotation without long-lived keys in CI.

ruvnet/metaharness · 0 tokens