复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-8b98df52cc64 ,按照其中的说明把「federation」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
$ARGUMENTS Manage federation peers, trust, and audit logs. Parse subcommand from $ARGUMENTS.
Usage: /federation [options]
Subcommands:
init -- Generate keypair and initialize federationjoin <endpoint> -- Connect to a federation peerleave -- Leave the federation gracefullypeers -- List known peers with trust levelssend <node-id> <message-type> <payload> -- Send a message to a peer with optional budget controls (ADR-097)status -- Show federation health, sessions, metricsaudit [--compliance hipaa|soc2|gdpr] [--since DATE] -- Query audit logstrust <node-id> [--review] -- View trust score breakdownconfig [--pii-policy PATH] -- Configure PII policies and compliance modeBudget 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 legsErrors 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