ruflo
CLAUDE.md74k starsChanged 3 months agoMITView on GitHub
Public release train: @claude-flow/cli, claude-flow, and ruflo. Use package manifests and the registry as version truth; do not copy stale version or capability counts into agent guidance. Ruflo is the coordination ledger and policy decision point. Claude Code executes code, tests, commands, and file changes. A Ruflo coordination call records work; it does not perform the implementation. When registered, call guidance_brain({ mode: "recommend", task: "..." }) before complex Ruflo work. Use its live registry rather than guessing tool names. Treat…
- Reads credentials
- Deletes or force-pushes
- Sends data out
- Commits and pushes
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about ruvnet/ruflo
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 76,913 (+564) 🗒 TypeScript 🌊 The original agent …”Bluesky · Oct 19, 2026 · 4 likes
- A Hacker News story“Ruflo: An agent meta-harness for Claude Code and Codex”Hacker News · Jul 25, 2026 · 3 points
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ruvnet / ruflo ⭐ 62,550 (+233) 🗒 TypeScript 🌊 The leading agent …”Bluesky · Jul 2, 2026 · 3 likes
- @alexiskirke.bsky.social“Here's a GitHub repo I found impressive: Ruflo makes it easy to orchestrate 100+ AI agents with security, …”Bluesky · May 10, 2026 · 3 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド ruvnet/ruflo RufloはClaude Code向けのマルチエージェントAIオーケストレーションツールです。 …”Bluesky · May 4, 2026 · 3 likes
The biggest 5 of 99 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 99
Talked about on GitHub, Bluesky and Hacker News (99 times).
On GitHub · 50
- Nov 29, 2026Ruflo upstream update 2d4180f662b44ccd9617fa7756e97e52afcc82bb — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 29, 2026claude-code-plugins.github.ruvnet.ruflo: 3.80.11 → 3.80.12 — sudosubin/agents.nix0 reactions
- Nov 29, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.11 → 3.80.12 — sudosubin/agents.nix0 reactions
- Nov 29, 2026agent-skills.github.ruvnet.ruflo: 3.80.11 → 3.80.12 — sudosubin/agents.nix0 reactions
- Nov 28, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.10 → 3.80.11 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 27, 2026agent-skills.github.ruvnet.ruflo: 3.80.9 → 3.80.11 — sudosubin/agents.nix0 reactions
- Nov 27, 2026Ruflo upstream update df1204f53829568e59da0f69f637bd97905f4b24 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 27, 2026claude-code-plugins.github.ruvnet.ruflo: 3.80.9 → 3.80.11 — sudosubin/agents.nix0 reactions
- Nov 27, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.9 → 3.80.10 — sudosubin/agents.nix0 reactions
- Nov 27, 2026feat(aimds): add Russian instruction-override pattern and corpus cases — ruvnet/midstream0 reactions
- Nov 27, 2026claude-code-plugins.github.ruvnet.ruflo: 3.80.8 → 3.80.9 — sudosubin/agents.nix0 reactions
- Nov 26, 2026Ruflo upstream update 3f2a40a2f06db9138f97ad8d582329189395e8ab — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 26, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.8 → 3.80.9 — sudosubin/agents.nix0 reactions
- Nov 26, 2026agent-skills.github.ruvnet.ruflo: 3.80.8 → 3.80.9 — sudosubin/agents.nix0 reactions
- Nov 26, 2026deps(v3.1.x): update dependency npm:ruflo to v3.16.3 [security] (v3.1.x) — pacphi/sindri0 reactions
- Nov 26, 2026deps(v3): update dependency npm:ruflo to v3.16.3 [security] (v3) — pacphi/sindri0 reactions
- Nov 26, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.7 → 3.80.8 — sudosubin/agents.nix0 reactions
- Nov 25, 2026Ruflo upstream update 48b04dce286a1df4af0411923821cf63399d7c8b — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 25, 2026agent-skills.github.ruvnet.ruflo: 3.80.7 → 3.80.8 — sudosubin/agents.nix0 reactions
- Nov 25, 2026claude-code-plugins.github.ruvnet.ruflo: 3.80.6 → 3.80.8 — sudosubin/agents.nix0 reactions
- Nov 25, 2026Publish Agentic Wh per USD as a small CC BY table? — sustainableaigroup/CLEER0 reactions
- Nov 25, 2026agent-skills.github.ruvnet.ruflo: 3.80.6 → 3.80.7 — sudosubin/agents.nix0 reactions
- Nov 25, 2026Ruflo upstream update f8a62a5f0ea4fa83b9fa7f5dc10acfe9ce0e8876 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 25, 2026claude-code-marketplaces.github.ruvnet.ruflo: 3.80.6 → 3.80.7 — sudosubin/agents.nix0 reactions
- Nov 25, 2026agent-skills.github.ruvnet.ruflo: 3.80.5 → 3.80.6 — sudosubin/agents.nix0 reactions
- Nov 25, 2026claude-code-plugins.github.ruvnet.ruflo: 3.80.5 → 3.80.6 — sudosubin/agents.nix0 reactions
- Nov 24, 2026Ruflo upstream update 99aeeac722ccdec103c9647a5463c6332b8d16f3 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 24, 2026fix: add a Codex hook shim for claude-terminal-mod — stuinfla/ruvnet-brain0 reactions · 1 comment
- Nov 24, 2026Ruflo upstream update e2e036c0dbeba3deba99249f2df42f049159b931 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 23, 2026Ruflo upstream update 65eb9fdcb21a5a23defb7ca4f7243e0e6de469a2 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 23, 2026Ruflo upstream update 326687da9b6a442303818249bbd80444a1414cca — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 22, 2026Ruflo upstream update f203a8d2e7799af8034ab8b0963a3867b70e20d9 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 22, 2026Bump minimatch and claude-flow — krimsonkla/srne_ble_modbus0 reactions
- Nov 21, 2026Ruflo upstream update 87f612cef121b50c2e31e2d3f88e46d88963a377 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 20, 2026Ruflo upstream update 3c2ae9117091675878a1b52998c382570902ae39 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 20, 2026Ruflo upstream update 6c6293dab6eea3b6f623411a25c146ce9e2db058 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 19, 2026Ruflo upstream update d9213d356cc232eb2dc958d5cb84149abbbcbd5a — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 19, 2026Ruflo upstream update 337c8981e6196f74ea72abc990f0b76a686764d0 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 18, 2026Ruflo upstream update edf7ddb3fefa15bca87986225b5a5ef7d4d059e5 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 17, 2026Ruflo upstream update 9e98e96fa74f8cdae6c7d8f84dfa6ed72b166cd6 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 16, 2026Ruflo upstream update 8cb2fbc7a1e9e08f20fc5fc6a45e1046ad0369b9 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 14, 2026Ruflo upstream update 3a1479883b55b7f786ef0bf3141478e4dfb9444f — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 13, 2026Ruflo upstream update 002d8c1ac031871fc14220e964f4dbb35b60428f — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 12, 2026Ruflo upstream update 18cf97a2088483a0dbdcd15d7c5c7d952f462250 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 11, 2026Ruflo upstream update dc25dd9b522bf1f3761f0d061a0bd0deb1900ba1 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
- Nov 11, 2026Publisher — évaluer Ruflo (swarm, mémoire, apprentissage) sans installer — benoitlub/poulpe-fiction0 reactions
- Nov 11, 2026chore(deps): bump toml and @claude-flow/codex in /v3/@claude-flow/browser — Druspect/ruflo0 reactions
- Nov 11, 2026chore(deps): bump toml and @claude-flow/codex — djimit/claude-code-flow0 reactions
- Nov 11, 2026Bump toml and claude-flow — krimsonkla/srne_ble_modbus0 reactions
- Nov 11, 2026Ruflo upstream update 6b8095490e0cdb3389481b41d3a4c91d5dcbc991 — mukundacity-glitch/FPL-VORTEX-AGENT0 reactions
On Bluesky · 47
- Oct 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 76,913 (+564) 🗒 TypeScript 🌊 The original agent harness. Deploy intelligent… — @github-trending.bsky.social4 likes and reposts · 1 reply
- Jul 2, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ruvnet / ruflo ⭐ 62,550 (+233) 🗒 TypeScript 🌊 The leading agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- May 10, 2026Here's a GitHub repo I found impressive: Ruflo makes it easy to orchestrate 100+ AI agents with security, coordination, and seamless Claude… — @alexiskirke.bsky.social3 likes and reposts
- May 4, 2026今日のGitHubトレンド ruvnet/ruflo RufloはClaude Code向けのマルチエージェントAIオーケストレーションツールです。 100以上の専門AIエージェントを連携させ、異なるマシンやチーム間での協調的な動作を実現します。… — @dailygithubtrends.bsky.social3 likes and reposts
- May 2, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 35,779 (+1,258) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending.bsky.social3 likes and reposts · 1 reply
42 more on Bluesky
- Mar 2, 2026Enterprise-grade AI agent orchestration platform that turns Claude into coordinated multi-agent swarms with 60+ specialized agents,… — @arifsolmaz.bsky.social3 likes and reposts
- Oct 3, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 73,707 (+101) 🗒 TypeScript 🌊 The original agent harness. Deploy intelligent… — @github-trending-js.bsky.social2 likes and reposts
- Jul 27, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 66,205 (+174) 🗒 TypeScript 🌊 The leading agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social2 likes and reposts
- Jul 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 65,114 (+160) 🗒 TypeScript 🌊 The leading agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social2 likes and reposts
- Jul 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 64,108 (+156) 🗒 TypeScript 🌊 The leading agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social2 likes and reposts
- Jul 1, 2026As much as I pan the idea of software dark factories, I can't help but be curious. Today's exploration is building a CMS on top of our… — @andrewhao.com2 likes and reposts · 1 reply
- Jun 21, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 60,647 (+182) 🗒 TypeScript 🌊 The leading agent meta-harness for Claude. Deploy… — @github-trending-js.bsky.social2 likes and reposts
- May 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 44,684 (+2,432) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 4, 2026ruvnet/ruflo 🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous… — @wasm.activitypub.awakari.com.ap.brid.gy2 likes and reposts
- Apr 25, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 33,217 (+160) 🗒 TypeScript 🌊 The leading agent orchestration platform for Claude.… — @github-trending-js.bsky.social2 likes and reposts
- Mar 29, 2026Ruflo (github.com/ruvnet/ruflo) reduces token usage by atleast 40% without impacting quality Will try to share a detailed report… — @adityamitra.bsky.socialsays it tested it2 likes and reposts
- Mar 24, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 24,437 (+1,397) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Mar 5, 2026Ruflo : plateforme d'orchestration pour déployer des essaims d'agents Claude autonomes, avec workflows distribués, RAG et intégration… — @camilleroux.com2 likes and reposts · 1 reply
- Mar 2, 2026今日のGitHubトレンド ruvnet/ruflo Ruflo v3は、企業向けのAIオーケストレーションプラットフォームです。 大規模言語モデル(LLM)を活用し、AIエージェントの構築・運用を支援します。 Claude Code… — @dailygithubtrends.bsky.social2 likes and reposts
- Mar 1, 2026ClaudeなどのLLMを扱うためのマルチエージェント調整プラットフォームらしい 自律的なワークフロー調整やAIチーム構築に期待 yug1224 starred ruvnet/ruflo https://github.com/ruvnet/ruflo — @yug1224.com2 likes and reposts
- Feb 28, 2026今日のGitHubトレンド ruvnet/ruflo Ruflo v3は、企業向けのAIオーケストレーションプラットフォームです。 大規模言語モデル(LLM)を活用し、AIエージェントの構築・運用を支援します。 Claude Code… — @dailygithubtrends.bsky.social2 likes and reposts
- Feb 28, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 15,591 (+531) 🗒 TypeScript 🌊 The leading agent orchestration platform for Claude.… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Oct 20, 2026今日のGitHubトレンド ruvnet/ruflo Claude CodeやCodexなどのAIエージェント向けに、コアツールや管理コンソール、ランタイムモッドを提供するメタハーネスです。… — @dailygithubtrends.bsky.social1 likes and repost
- Oct 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 76,328 (+502) 🗒 TypeScript 🌊 The original agent harness. Deploy intelligent… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 6, 2026📦 ruvnet / ruflo ⭐ 73,984 (+87) 🗒 TypeScript 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous… — @github-trending-js.bsky.social1 likes and repost
- Aug 23, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 68,977 (+134) 🗒 TypeScript 🌊 The original agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social1 likes and repost
- Aug 22, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 68,621 (+140) 🗒 TypeScript 🌊 The original agent meta-harness. Deploy intelligent… — @github-trending.bsky.social1 likes and repost
- Aug 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 68,298 (+143) 🗒 TypeScript 🌊 The original agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social1 likes and repost
- Aug 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ruvnet / ruflo ⭐ 67,541 (+114) 🗒 TypeScript 🌊 The original agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social1 likes and repost
- Jun 17, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ruvnet / ruflo ⭐ 59,913 (+200) 🗒 TypeScript 🌊 The leading agent meta-harness for Claude. Deploy… — @github-trending-js.bsky.social1 likes and repost
- Jun 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ruvnet / ruflo ⭐ 57,130 (+354) 🗒 TypeScript 🌊 The leading agent meta-harness for Claude. Deploy… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- May 5, 2026ruvnet/ruflo 🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous… — @wasm.activitypub.awakari.com.ap.brid.gy1 likes and repost
- May 4, 2026New GitHub trending project: ruflo - agent orchestration platform for Claude. 40k+ stars! https://github.com/ruvnet/ruflo #AI #OpenSource… — @samwise-goose.bsky.social1 likes and repost
- May 3, 2026ruvnet/ruflo 🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous… — @wasm.activitypub.awakari.com.ap.brid.gy1 likes and repost
- May 2, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 35,779 (+1,258) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- May 2, 2026今日のGitHubトレンド ruvnet/ruflo RufloはClaude CodeのためのマルチエージェントAIオーケストレーションツールです。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 25, 2026今日のGitHubトレンド ruvnet/ruflo RuFlo v3.5は、企業向けのAIオーケストレーションプラットフォームです。 大規模言語モデル(LLM)を活用し、AIエージェントの構築・運用を支援します。 Claude Code… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 24, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 24,437 (+1,397) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 4, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 18,540 (+666) 🗒 TypeScript 🌊 The leading agent orchestration platform for Claude.… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Mar 2, 2026github.com/ruvnet/ruflo GitHub - ruvnet/ruflo: 🌊 The leading agent orchestration platform for Claude. Deploy intelligent... — @technews4869.bsky.social1 likes and repost
- Feb 28, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 ruvnet / ruflo ⭐ 15,591 (+531) 🗒 TypeScript 🌊 The leading agent orchestration platform for Claude.… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Sep 11, 2026Coordinate multiple agents, tools, memory and workflows. https://github.com/ruvnet/ruflo 7. OpenCode Agents Ready-to-use specialized agents… — @garrytan-mir-rt.selfhosted.social0 likes and reposts · 1 reply
- Sep 10, 2026This builds a minimal agent harness from scratch. https://github.com/shareAI-lab/learn-claude-code 6. Ruflo A multi-agent orchestration… — @garrytan-mir-rt.selfhosted.social0 likes and reposts · 1 reply
- Sep 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ruvnet / ruflo ⭐ 70,842 (+276) 🗒 TypeScript 🌊 The original agent meta-harness. Deploy intelligent… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jul 23, 2026一次情報を見ると、rufloはちゃんと本格的ですぅ。フル導入では98エージェント、MCP、フック、常駐プロセスまで入るオーケストレーターです。… — @lutie-echosphere.bsky.social0 likes and reposts · 1 reply
- Jul 18, 2026公式GitHubを確認。Rufloは100超の専門エージェント、ベクトルメモリ、学習用パターンを実装対象にしている。単なるプロンプト集ではない。 ただ、公式Quick Startの最初のswarm例は最大8… — @nemu-echosphere.bsky.social0 likes and reposts · 1 reply
- May 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 ruvnet / ruflo ⭐ 44,684 (+2,432) 🗒 TypeScript 🌊 The leading agent orchestration platform for… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Jul 25, 2026Ruflo: An agent meta-harness for Claude Code and Codex3 points
- Apr 29, 2026Is any one using ruflo?1 point · 1 comment
In this repository177 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- v3/CLAUDE.mdCLAUDE.md
- agent-adaptive-coordinatorSkill
- agent-agentic-paymentsSkill
- agent-agentSkill
- agent-analyze-code-qualitySkill
- agent-app-storeSkill
- agent-architectureSkill
- agent-arch-system-designSkill
- agent-authenticationSkill
- agent-automation-smart-agentSkill
- agent-base-template-generatorSkill
- agent-benchmark-suiteSkill
- agent-byzantine-coordinatorSkill
- agent-challengesSkill
- agent-code-analyzerSkill
- agent-code-goal-plannerSkill
- agent-code-review-swarmSkill
- agent-coderSkill
- agent-collective-intelligence-coordinatorSkill
- agent-consensus-coordinatorSkill
- agent-coordinationSkill
- agent-coordinator-swarm-initSkill
- agent-crdt-synchronizerSkill
- agent-data-ml-modelSkill
- AgentDB Advanced FeaturesSkill
- AgentDB Learning PluginsSkill
- AgentDB Memory PatternsSkill
- AgentDB Performance OptimizationSkill
- AgentDB Vector SearchSkill
- agent-dev-backend-apiSkill
- agent-docs-api-openapiSkill
- agent-github-modesSkill
- agent-github-pr-managerSkill
- agent-goal-plannerSkill
- agent-gossip-coordinatorSkill
- agent-hierarchical-coordinatorSkill
- agentic-jujutsuSkill
- agent-implementer-sparc-coderSkill
- agent-issue-trackerSkill
- agent-load-balancerSkill
- agent-matrix-optimizerSkill
- agent-memory-coordinatorSkill
- agent-mesh-coordinatorSkill
- agent-migration-planSkill
- agent-multi-repo-swarmSkill
- agent-neural-networkSkill
- agent-ops-cicd-githubSkill
- agent-orchestrator-taskSkill
- agent-pagerank-analyzerSkill
- agent-paymentsSkill
- agent-performance-analyzerSkill
- agent-performance-benchmarkerSkill
- agent-performance-monitorSkill
- agent-performance-optimizerSkill
- agent-plannerSkill
- agent-pr-managerSkill
- agent-production-validatorSkill
- agent-project-board-syncSkill
- The first 60 shown.
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
72 rules. About 0 are common, 40 are distinctive, and 32 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈40
Distinctive · estimate
This author's own choices. Worth a look.
32
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 9
Do what has been asked; nothing more, nothing less
- Distinctive: line 10
NEVER create files unless they're absolutely necessary for achieving your goal
- Distinctive: line 11
ALWAYS prefer editing an existing file to creating a new one
- Distinctive: line 12
NEVER proactively create documentation files (*.md) or README files unless explicitly requested
- Distinctive: line 13
NEVER save working files, text/mds, or tests to the root folder
- Distinctive: line 14
Never continuously check status after spawning a swarm — wait for results
- Distinctive: line 15
ALWAYS read a file before editing it
- Distinctive: line 16
NEVER commit secrets, credentials, or .env files
- Distinctive: line 31
Use this loop: recall → inspect → route → plan → execute → test → validate → benchmark → optimize → receipt → handoff → separately …
- Distinctive: line 36
NEVER save to root folder — use the directories below
- Very specific: line 37
Use /src for source code files
- Very specific: line 38
Use /tests for test files
- Very specific: line 39
Use /docs for documentation and markdown files
- Very specific: line 40
Use /config for configuration files
- Very specific: line 41
Use /scripts for utility scripts
- Very specific: line 42
Use /examples for example code
- Distinctive: line 46
Follow Domain-Driven Design with bounded contexts
- Distinctive: line 47
Keep files under 500 lines
- Distinctive: line 48
Use typed interfaces for all public APIs
- Distinctive: line 49
Prefer TDD London School (mock-first) for new code
- Distinctive: line 50
Use event sourcing for state changes
- Distinctive: line 51
Ensure input validation at system boundaries
- Distinctive: line 68
Never allow two writers in one worktree.
- Distinctive: line 70
Read-only agents may share a checkout.
- Distinctive: line 71
Only the integration owner edits shared manifests and lockfiles or reconciles overlapping changes.
- Distinctive: line 86
MUST initialize the swarm using MCP tools when starting complex tasks
- Distinctive: line 87
MUST spawn concurrent agents using Claude Code's Task tool
- Distinctive: line 88
Never use MCP tools alone for execution — Task tool agents do the actual work
- Distinctive: line 92
MUST call MCP tools AND Task tool in ONE message for complex work
- Distinctive: line 93
Always call MCP first, then IMMEDIATELY call Task tool to spawn agents
- Very specific: line 103
Always check for [CODEMOD_AVAILABLE] or [TASK_MODEL_RECOMMENDATION] before spawning agents
- Very specific: line 104
When you see [CODEMOD_AVAILABLE], call the hooks_codemod MCP tool (intent + file) — it applies the transform deterministically via the …
- Distinctive: line 112
ALWAYS use hierarchical topology for coding swarms
- Distinctive: line 113
Keep maxAgents at 6-8 for tight coordination
- Distinctive: line 114
Use specialized strategy for clear role boundaries
- Very specific: line 115
Use raft consensus for hive-mind (leader maintains authoritative state)
- Very specific: line 116
Run frequent checkpoints via post-task hooks
- Distinctive: line 117
Keep shared memory namespace for all agents
- Distinctive: line 118
Keep task cycles short with verification gates
- Very specific: line 202
All workers share state via the collaboration namespace:
- Distinctive: line 278
When the user requests a complex task (multi-file changes, feature implementation, refactoring), immediately execute this pattern in a …
- Very specific: line 438
Use claude -p (print/pipe mode) to spawn headless Claude instances for parallel background work.
- Very specific: line 585
Every agent MUST have a name so it's addressable.
- Distinctive: line 658
When spawning agents that need to coordinate, include comms instructions:
- Very specific: line 863
Run npx claude-flow@v3alpha doctor to check:
- Distinctive: line 908
Keep MCP for coordination strategy only — use Claude Code's Task tool for real execution
- Distinctive: line 936
Search across both Claude Code memories and AgentDB entries:
- Very specific: line 963
Default tag is latest (no --tag alpha).
- Very specific: line 964
Never publish a pre-release (-alpha.N, -beta.N, -rc.N) unless the user explicitly asks for a pre-release flow.
- Very specific: line 985
Every publishable leaf needs a files allowlist and must NOT set publishConfig.tag.
- Distinctive: line 1017
Before tagging, check every non-bundled leaf for drift between what the CLI pins and what the workspace source says — a mismatch means an …
- Distinctive: line 1029
MUST update ALL dist-tags for ALL THREE packages after publishing (latest + alpha + v3alpha all point to the same version)
- Distinctive: line 1031
MUST run verification for ALL THREE before telling user publishing is complete
- Very specific: line 1032
Run node scripts/audit-umbrella-version-lockstep.mjs before packing or publishing.
- Very specific: line 1041
Use the existing authenticated ruvnet npm session.
- Very specific: line 1044
npm publishauth — FIXED (2026-07-30): use the NPM_TOKEN secret directly, via a throwaway .npmrc with NPM_CONFIG_USERCONFIG — same … - Very specific: line 1090
After every dist-tag call (or if unsure), verify with npm view <pkg> dist-tags --json — don't trust the CLI's own stdout alone, since a …
- Very specific: line 1119
NEVER invoke gcloud secrets versions access in a way that lets the payload reach tool output.
- Very specific: line 1126
If a rotation IS needed, keep the private half in ~/.ruflo/helpers-signing.key only, print ONLY the public half (via Ed25519 pub export …
- Very specific: line 1136
Run the prep steps manually in Git Bash, then npm publish --ignore-scripts.
- Very specific: line 1209
Never forget the ruflo package — it's the thin wrapper users actually run via npx ruflo
- Very specific: line 1216
Every stable bump SHOULD have a matching gh release create v<version> with consolidated release notes pointing at the gist if one exists.
- Very specific: line 1235
Add to .env (NEVER commit actual values):
- Very specific: line 1281
Add to official array
- Very specific: line 1282
Add to featured/newest if applicable
- Distinctive: line 1305
NEVER hardcode API keys in scripts or source files
- Distinctive: line 1306
NEVER commit .env (already in .gitignore)
- Distinctive: line 1307
Always source credentials from environment at runtime
- Distinctive: line 1308
Always delete temporary scripts after one-time uploads
- Very specific: line 1325
Graceful degradation: every code path that touches MetaHarness catches MODULE_NOT_FOUND and falls back
- Very specific: line 1415
When CLAUDE_FLOW_ROUTER_PARALLEL_LOG=1 is set, every route() call writes a paired-decision row (bandit pick + neural-augmented pick + …
- Very specific: line 1523
Use metallm_delegate for agentic sub-tasks needing tools/files in a working dir (its cwd is sandboxed).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Configuration - Ruflo V3
Public release train:
@claude-flow/cli,claude-flow, andruflo. Use package manifests and the registry as version truth; do not copy stale version or capability counts into agent guidance.
Behavioral Rules (Always Enforced)
- Do what has been asked; nothing more, nothing less
- NEVER create files unless they're absolutely necessary for achieving your goal
- ALWAYS prefer editing an existing file to creating a new one
- NEVER proactively create documentation files (*.md) or README files unless explicitly requested
- NEVER save working files, text/mds, or tests to the root folder
- Never continuously check status after spawning a swarm — wait for results
- ALWAYS read a file before editing it
- NEVER commit secrets, credentials, or .env files
Capability Brain and Governed Implementation
Ruflo is the coordination ledger and policy decision point. Claude Code executes code, tests, commands, and file changes. A Ruflo coordination call records work; it does not perform the implementation.
When registered, call
guidance_brain({ mode: "recommend", task: "..." }) before complex Ruflo
work. Use its live registry rather than guessing tool names. Treat
registered, configured, reachable, healthy, and authorized as
separate facts. If unavailable, continue with compatible guidance tools, CLI
discovery, and these repository instructions.
Use this loop: recall → inspect → route → plan → execute → test → validate → benchmark → optimize → receipt → handoff → separately authorized publish.
File Organization
- NEVER save to root folder — use the directories below
- Use
/srcfor source code files - Use
/testsfor test files - Use
/docsfor documentation and markdown files - Use
/configfor configuration files - Use
/scriptsfor utility scripts - Use
/examplesfor example code
Project Architecture
- Follow Domain-Driven Design with bounded contexts
- Keep files under 500 lines
- Use typed interfaces for all public APIs
- Prefer TDD London School (mock-first) for new code
- Use event sourcing for state changes
- Ensure input validation at system boundaries
Key Packages
| Package | Path | Purpose |
@claude-flow/cli | v3/@claude-flow/cli/ | CLI entry point (26 commands) |
@claude-flow/codex | v3/@claude-flow/codex/ | Dual-mode Claude + Codex collaboration |
@claude-flow/guidance | v3/@claude-flow/guidance/ | Governance control plane |
@claude-flow/hooks | v3/@claude-flow/hooks/ | 17 hooks + 12 workers |
@claude-flow/memory | v3/@claude-flow/memory/ | AgentDB + HNSW search |
@claude-flow/security | v3/@claude-flow/security/ | Input validation, CVE remediation |
Concurrent Automated Development
- Parallelize independent research, tests, reviews, and non-overlapping implementation.
- Never allow two writers in one worktree. Give every writing agent an isolated worktree and explicit file ownership.
- Read-only agents may share a checkout; writing agents may not.
- Only the integration owner edits shared manifests and lockfiles or reconciles overlapping changes.
- Continue independent local work after spawning agents; wait only when a real dependency blocks progress. Do not repeatedly poll.
- A lease or work claim coordinates ownership; it never grants authority.
- Bind tests, benchmarks, policy decisions, and handoffs to an exact clean commit or immutable dirty-worktree snapshot.
- Darwin, Flywheel, MetaHarness, memory, and neural systems may propose and evaluate candidates, but cannot self-promote or expand tools, network, secrets, spend, concurrency, or release authority.
Swarm Orchestration
- MUST initialize the swarm using MCP tools when starting complex tasks
- MUST spawn concurrent agents using Claude Code's Task tool
- Never use MCP tools alone for execution — Task tool agents do the actual work
MCP + Task Tool in SAME Message
- MUST call MCP tools AND Task tool in ONE message for complex work
- Always call MCP first, then IMMEDIATELY call Task tool to spawn agents
3-Tier Model Routing (ADR-026, ADR-143)
| Tier | Handler | Latency | Cost | Use Cases |
| 1 | Deterministic codemod | ~1ms | $0 | Structural transforms with no LLM: var-to-const, remove-console, add-logging |
| 2 | Haiku | ~500ms | $0.0002 | Simple tasks, low complexity (<30%) |
| 3 | Sonnet/Opus | 2-5s | $0.003-0.015 | Complex reasoning, architecture, security (>30%) |
- Always check for
[CODEMOD_AVAILABLE]or[TASK_MODEL_RECOMMENDATION]before spawning agents - When you see
[CODEMOD_AVAILABLE], call thehooks_codemodMCP tool (intent + file) — it applies the transform deterministically via the TypeScript compiler at $0, no LLM. Deterministic intents only:var-to-const,remove-console,add-logging add-types,add-error-handling,async-awaitneed judgement and route to a model (Tier 2/3) — they are not $0 codemods (see ADR-143)- Agent Booster (
agent-booster) is a fast-apply merge engine for arbitrary LLM-produced edit snippets, not an intent-transform engine — it is not the Tier-1 path
Swarm Configuration & Anti-Drift
Anti-Drift Coding Swarm (PREFERRED DEFAULT)
- ALWAYS use hierarchical topology for coding swarms
- Keep maxAgents at 6-8 for tight coordination
- Use specialized strategy for clear role boundaries
- Use
raftconsensus for hive-mind (leader maintains authoritative state) - Run frequent checkpoints via
post-taskhooks - Keep shared memory namespace for all agents
- Keep task cycles short with verification gates
mcp__ruv-swarm__swarm_init({
topology: "hierarchical",
maxAgents: 8,
strategy: "specialized"
})Dual-Mode Collaboration (Claude Code + Codex)
This repository uses dual-mode orchestration to run Claude Code (🔵) and OpenAI Codex (🟢) workers in parallel with shared memory coordination. Both platforms collaborate on development tasks with cross-learning.
Why Dual-Mode?
| Single Platform | Dual-Mode Collaboration |
| One model's perspective | Two AI platforms cross-validating |
| Limited reasoning styles | Complementary strengths |
| No external verification | Built-in code review |
| Sequential workflows | Parallel execution |
Dual-Mode Swarm Protocol
For complex tasks, spawn both Claude and Codex workers in parallel:
// STEP 1: Initialize dual-mode swarm
mcp__ruv-swarm__swarm_init({
topology: "hierarchical",
maxAgents: 8,
strategy: "specialized"
})
// STEP 2: Spawn BOTH platforms in parallel via Task tool
// 🔵 Claude Code workers (architecture, security, testing)
Task("Architect", "Design the implementation. Store design in memory namespace 'collaboration'.", "system-architect")
Task("Tester", "Write tests based on architect's design. Read from 'collaboration' namespace.", "tester")
Task("Reviewer", "Review code quality and security. Store findings in 'collaboration'.", "reviewer")
// 🟢 Codex workers (implementation, optimization)
// Spawn via CLI for Codex platform
Bash("npx claude-flow-codex dual run --worker 'codex:coder:Implement the solution based on architect design' --namespace collaboration")
Bash("npx claude-flow-codex dual run --worker 'codex:optimizer:Optimize performance based on implementation' --namespace collaboration")
// STEP 3: Coordinate via shared memory
Bash("npx claude-flow@v3alpha memory store --namespace collaboration --key 'task-context' --value '[task description]'")Collaboration Templates (Pre-Built Pipelines)
| Template | Workers | Pipeline |
feature | 🔵 Architect → 🟢 Coder → 🔵 Tester → 🟢 Reviewer | Full feature development |
security | 🔵 Analyst → 🟢 Scanner → 🔵 Reporter | Security audit workflow |
refactor | 🔵 Architect → 🟢 Refactorer → 🔵 Tester | Code modernization |
bugfix | 🔵 Researcher → 🟢 Coder → 🔵 Tester | Bug investigation & fix |
Dual-Mode CLI Commands
# Run a collaboration template
npx claude-flow-codex dual run feature --task "Add user authentication with OAuth"
npx claude-flow-codex dual run security --target "./src"
npx claude-flow-codex dual run refactor --target "./src/legacy"
# Custom multi-platform swarm
npx claude-flow-codex dual run \
--worker "claude:architect:Design the API structure" \
--worker "codex:coder:Implement REST endpoints" \
--worker "claude:tester:Write integration tests" \
--worker "codex:reviewer:Review code quality" \
--namespace "api-feature"
# Check collaboration status
npx claude-flow-codex dual status
# List available templates
npx claude-flow-codex dual templatesShared Memory Coordination
All workers share state via the collaboration namespace:
# Store context for cross-platform sharing
npx claude-flow@v3alpha memory store --namespace collaboration --key "design-decisions" --value "..."
# Search for patterns across all workers
npx claude-flow@v3alpha memory search --namespace collaboration --query "authentication patterns"
# Retrieve specific findings
npx claude-flow@v3alpha memory retrieve --namespace collaboration --key "security-findings"Cross-Platform Learning
Both platforms learn from each other's outputs:
# After successful collaboration, train patterns
npx claude-flow@v3alpha hooks post-task --task-id "dual-[id]" --success true --train-neural true
# Store successful collaboration patterns
npx claude-flow@v3alpha memory store --namespace patterns --key "dual-mode-[pattern]" --value "[what worked]"
# Transfer learnings to both platforms
npx claude-flow@v3alpha hooks transfer store --pattern "dual-collab-success"Worker Dependency Levels
Workers execute in dependency order:
Level 0: [🔵 Architect] # No dependencies - runs first
Level 1: [🟢 Coder, 🔵 Tester] # Depends on Architect
Level 2: [🔵 Reviewer] # Depends on Coder + Tester
Level 3: [🟢 Optimizer] # Depends on Reviewer approvalPlatform Strengths
| Task Type | Preferred Platform | Reason |
| Architecture & Design | 🔵 Claude | Strong reasoning, system thinking |
| Implementation | 🟢 Codex | Fast code generation |
| Security Review | 🔵 Claude | Careful analysis, threat modeling |
| Performance Optimization | 🟢 Codex | Code-level optimizations |
| Testing Strategy | 🔵 Claude | Coverage analysis, edge cases |
| Refactoring | 🟢 Codex | Bulk code transformations |
Programmatic API
import { DualModeOrchestrator, CollaborationTemplates } from '@claude-flow/codex';
const orchestrator = new DualModeOrchestrator({
namespace: 'my-feature',
memoryBackend: 'hybrid'
});
// Use pre-built template
const workers = CollaborationTemplates.featureDevelopment('Add OAuth login');
// Run collaboration
const results = await orchestrator.runCollaboration(workers, 'Implement OAuth feature');
// Access shared memory
const designDocs = await orchestrator.getMemory('design-decisions');Swarm Protocols & Routing
Auto-Start Swarm Protocol
When the user requests a complex task (multi-file changes, feature implementation, refactoring), immediately execute this pattern in a SINGLE message:
// STEP 1: Initialize swarm coordination via MCP
mcp__ruv-swarm__swarm_init({
topology: "hierarchical",
maxAgents: 8,
strategy: "specialized"
})
// STEP 2: Spawn NAMED agents concurrently — all in ONE message
// Each agent knows WHO to message next in the pipeline
Task({
prompt: "Research requirements and codebase. SendMessage findings to 'architect' when done.",
subagent_type: "researcher", name: "researcher", run_in_background: true
})
Task({
prompt: "Wait for research from 'researcher'. Design implementation. SendMessage design to 'coder'.",
subagent_type: "system-architect", name: "architect", run_in_background: true
})
Task({
prompt: "Wait for design from 'architect'. Implement the solution. SendMessage code paths to 'tester'.",
subagent_type: "coder", name: "coder", run_in_background: true
})
Task({
prompt: "Wait for implementation from 'coder'. Write tests. SendMessage results to 'reviewer'.",
subagent_type: "tester", name: "tester", run_in_background: true
})
Task({
prompt: "Wait for test results from 'tester'. Review code quality and security. Report findings.",
subagent_type: "reviewer", name: "reviewer", run_in_background: true
})
// STEP 3: Kick off the pipeline
SendMessage({ to: "researcher", summary: "Start research", message: "[task description and context]" })
// STEP 4: Batch todos
TodoWrite({ todos: [
{content: "Research and analyze requirements", status: "in_progress", activeForm: "Researching"},
{content: "Design architecture", status: "pending", activeForm: "Designing"},
{content: "Implement solution", status: "pending", activeForm: "Implementing"},
{content: "Write tests", status: "pending", activeForm: "Testing"},
{content: "Review and finalize", status: "pending", activeForm: "Reviewing"}
]})
// Pipeline flow via SendMessage:
// researcher ──→ architect ──→ coder ──→ tester ──→ reviewerAgent Routing (Anti-Drift)
| Code | Task | Agents |
| 1 | Bug Fix | coordinator, researcher, coder, tester |
| 3 | Feature | coordinator, architect, coder, tester, reviewer |
| 5 | Refactor | coordinator, architect, coder, reviewer |
| 7 | Performance | coordinator, perf-engineer, coder |
| 9 | Security | coordinator, security-architect, auditor |
| 11 | Memory | coordinator, memory-specialist, perf-engineer |
| 13 | Docs | researcher, api-docs |
Codes 1-11: hierarchical/specialized (anti-drift). Code 13: mesh/balanced
Task Complexity Detection
AUTO-INVOKE SWARM when task involves:
- Multiple files (3+)
- New feature implementation
- Refactoring across modules
- API changes with tests
- Security-related changes
- Performance optimization
- Database schema changes
SKIP SWARM for:
- Single file edits
- Simple bug fixes (1-2 lines)
- Documentation updates
- Configuration changes
- Quick questions/exploration
Project Configuration
This project is configured with Claude Flow V3 (Anti-Drift Defaults):
- Topology: hierarchical (prevents drift via central coordination)
- Max Agents: 8 (smaller team = less drift)
- Strategy: specialized (clear roles, no overlap)
- Consensus: raft (leader maintains authoritative state)
- Memory Backend: hybrid (SQLite + AgentDB)
- HNSW Indexing: Enabled (measured ~1.9x at N=20k, ~3.2x–4.7x at N=5k vs brute force; ANN wins above the crossover)
- Neural Learning: Enabled (SONA)
V3 CLI Commands (26 Commands, 140+ Subcommands)
Core Commands
| Command | Subcommands | Description |
init | 4 | Project initialization with wizard, presets, skills, hooks |
agent | 8 | Agent lifecycle (spawn, list, status, stop, metrics, pool, health, logs) |
swarm | 6 | Multi-agent swarm coordination and orchestration |
memory | 11 | AgentDB memory with HNSW vector search (measured ~1.9x–4.7x vs brute force above crossover) |
mcp | 9 | MCP server management and tool execution |
task | 6 | Task creation, assignment, and lifecycle |
session | 7 | Session state management and persistence |
config | 7 | Configuration management and provider setup |
status | 3 | System status monitoring with watch mode |
start | 3 | Service startup and quick launch |
workflow | 6 | Workflow execution and template management |
hooks | 17 | Self-learning hooks + 12 background workers |
hive-mind | 6 | Queen-led Byzantine fault-tolerant consensus |
Advanced Commands
| Command | Subcommands | Description |
daemon | 5 | Background worker daemon (start, stop, status, trigger, enable) |
neural | 5 | Neural pattern training (train, status, patterns, predict, optimize) |
security | 6 | Security scanning (scan, audit, cve, threats, validate, report) |
performance | 5 | Performance profiling (benchmark, profile, metrics, optimize, report) |
providers | 5 | AI providers (list, add, remove, test, configure) |
plugins | 5 | Plugin management (list, install, uninstall, enable, disable) |
deployment | 5 | Deployment management (deploy, rollback, status, environments, release) |
embeddings | 4 | Vector embeddings (embed, batch, search, init) — agentic-flow ONNX backend (speedup unverified, no benchmark) |
claims | 4 | Claims-based authorization (check, grant, revoke, list) |
migrate | 5 | V2 to V3 migration with rollback support |
process | 4 | Background process management |
doctor | 1 | System diagnostics with health checks |
completions | 4 | Shell completions (bash, zsh, fish, powershell) |
Quick CLI Examples
# Initialize project
npx claude-flow@v3alpha init --wizard
# Start daemon with background workers
npx claude-flow@v3alpha daemon start
# Spawn an agent
npx claude-flow@v3alpha agent spawn -t coder --name my-coder
# Initialize swarm
npx claude-flow@v3alpha swarm init --v3-mode
# Search memory (HNSW-indexed)
npx claude-flow@v3alpha memory search -q "authentication patterns"
# System diagnostics
npx claude-flow@v3alpha doctor --fix
# Security scan
npx claude-flow@v3alpha security scan --depth full
# Performance benchmark
npx claude-flow@v3alpha performance benchmark --suite allHeadless Background Instances (claude -p)
Use claude -p (print/pipe mode) to spawn headless Claude instances for parallel background work. These run non-interactively and return results to stdout.
Basic Usage
# Single headless task
claude -p "Analyze the authentication module for security issues"
# With model selection
claude -p --model haiku "Format this config file"
claude -p --model opus "Design the database schema for user management"
# With output format
claude -p --output-format json "List all TODO comments in src/"
claude -p --output-format stream-json "Refactor the error handling in api.ts"
# With budget limits
claude -p --max-budget-usd 0.50 "Run comprehensive security audit"
# With specific tools allowed
claude -p --allowedTools "Read,Grep,Glob" "Find all files that import the auth module"
# Skip permissions (sandboxed environments only)
claude -p --dangerously-skip-permissions "Fix all lint errors in src/"Parallel Background Execution
# Spawn multiple headless instances in parallel
claude -p "Analyze src/auth/ for vulnerabilities" &
claude -p "Write tests for src/api/endpoints.ts" &
claude -p "Review src/models/ for performance issues" &
wait # Wait for all to complete
# With results captured
SECURITY=$(claude -p "Security audit of auth module" &)
TESTS=$(claude -p "Generate test coverage report" &)
PERF=$(claude -p "Profile memory usage in workers" &)
wait
echo "$SECURITY" "$TESTS" "$PERF"Session Continuation
# Start a task, resume later
claude -p --session-id "abc-123" "Start analyzing the codebase"
claude -p --resume "abc-123" "Continue with the test files"
# Fork a session for parallel exploration
claude -p --resume "abc-123" --fork-session "Try approach A: event sourcing"
claude -p --resume "abc-123" --fork-session "Try approach B: CQRS pattern"Key Flags
| Flag | Purpose |
-p, --print | Non-interactive mode, print and exit |
--model <model> | Select model (haiku, sonnet, opus) |
--output-format <fmt> | Output: text, json, stream-json |
--max-budget-usd <amt> | Spending cap per invocation |
--allowedTools <tools> | Restrict available tools |
--append-system-prompt | Add custom instructions |
--resume <id> | Continue a previous session |
--fork-session | Branch from resumed session |
--fallback-model <model> | Auto-fallback if primary overloaded |
--permission-mode <mode> | acceptEdits, bypassPermissions, plan, etc. |
--mcp-config <json> | Load MCP servers from JSON |
Available Agents (60+ Types)
Core Development
coder, reviewer, tester, planner, researcher
V3 Specialized Agents
security-architect, security-auditor, memory-specialist, performance-engineer
@claude-flow/security Module
CVE remediation, input validation, path security:
InputValidator— Zod-based validation at boundariesPathValidator— Path traversal preventionSafeExecutor— Command injection protectionPasswordHasher— bcrypt hashingTokenGenerator— Secure token generation
Token Optimizer (Agent Booster)
Integrates agentic-flow optimizations for 30-50% token reduction:
import { getTokenOptimizer } from '@claude-flow/integration';
const optimizer = await getTokenOptimizer();
// Compact context (32% fewer tokens)
const ctx = await optimizer.getCompactContext("auth patterns");
// 352x faster edits = fewer retries
await optimizer.optimizedEdit(file, old, new, "typescript");
// Optimal config (100% success rate)
const config = optimizer.getOptimalConfig(agentCount);| Feature | Token Savings |
| ReasoningBank retrieval | -32% |
| Agent Booster edits | -15% |
| Cache (95% hit rate) | -10% |
| Optimal batch size | -20% |
Swarm Coordination
hierarchical-coordinator, mesh-coordinator, adaptive-coordinator, collective-intelligence-coordinator, swarm-memory-manager
Consensus & Distributed
byzantine-coordinator, raft-manager, gossip-coordinator, consensus-builder, crdt-synchronizer, quorum-manager, security-manager
Performance & Optimization
perf-analyzer, performance-benchmarker, task-orchestrator, memory-coordinator, smart-agent
GitHub & Repository
github-modes, pr-manager, code-review-swarm, issue-tracker, release-manager, workflow-automation, project-board-sync, repo-architect, multi-repo-swarm
SPARC Methodology
sparc-coord, sparc-coder, specification, pseudocode, architecture, refinement
Specialized Development
backend-dev, mobile-dev, ml-developer, cicd-engineer, api-docs, system-architect, code-analyzer, base-template-generator
Testing & Validation
tdd-london-swarm, production-validator
Agent Teams & Comms System
Agent Teams turns Claude Code into a multi-agent system where named agents communicate in real-time via SendMessage. The comms system is the primary coordination mechanism — agents talk to each other, not just to the lead.
Architecture
Team Lead (you)
├── SendMessage ←→ architect (named agent)
├── SendMessage ←→ developer (named agent)
├── SendMessage ←→ tester (named agent)
└── SendMessage ←→ reviewer (named agent)
↕ agents can message each other by nameCore Principle: Named Agents + SendMessage
Every agent MUST have a name so it's addressable. Communication happens via SendMessage, not polling or shared memory.
// STEP 1: Spawn named agents (all in ONE message, background)
Task({
prompt: "Design the API. When done, send your design to 'developer' via SendMessage.",
subagent_type: "system-architect",
name: "architect",
run_in_background: true
})
Task({
prompt: "Wait for architect's design via SendMessage. Then implement it. Send code to 'tester'.",
subagent_type: "coder",
name: "developer",
run_in_background: true
})
Task({
prompt: "Wait for developer's code via SendMessage. Write tests. Send results to 'reviewer'.",
subagent_type: "tester",
name: "tester",
run_in_background: true
})
// STEP 2: Kick off the pipeline by messaging the first agent
SendMessage({
to: "architect",
summary: "Start API design",
message: "Design a REST API for user management with CRUD endpoints. Send the design to 'developer' when done."
})SendMessage Protocol
// Lead → Teammate: assign work
SendMessage({ to: "developer", summary: "Implement auth", message: "Build OAuth2 flow..." })
// Lead → Teammate: redirect priorities
SendMessage({ to: "developer", summary: "Prioritize auth", message: "Auth endpoint is blocking tester, do it first." })
// Lead → Teammate: provide context from another agent's results
SendMessage({ to: "tester", summary: "Architect output", message: "The architect designed these endpoints: [details]. Write tests for them." })
// Lead → Teammate: graceful shutdown
SendMessage({ to: "developer", message: { type: "shutdown_request" } })Coordination Patterns
Pipeline (A → B → C) — each agent messages the next when done:
architect ──SendMessage──→ developer ──SendMessage──→ tester ──SendMessage──→ reviewerTell each agent WHO to message next in their prompt.
Fan-out / Fan-in — lead spawns parallel agents, collects results:
┌→ researcher-1 ──→┐
lead ────┼→ researcher-2 ──→├──→ lead synthesizes
└→ researcher-3 ──→┘Spawn with run_in_background: true. Results arrive as task completions.
Supervisor / Worker — lead assigns, workers report back:
lead ←──SendMessage──→ worker-1
lead ←──SendMessage──→ worker-2
lead ←──SendMessage──→ worker-3Lead sends tasks via SendMessage, workers respond with results.
Agent Prompt Template (Comms-Aware)
When spawning agents that need to coordinate, include comms instructions:
Task({
prompt: `You are the architect for this feature team.
YOUR TASK: Design the database schema for user management.
COMMS PROTOCOL:
- When your design is ready, send it to "developer" via SendMessage
- If you need clarification, message the team lead (just output text)
- Include file paths and key decisions in your message
DELIVERABLE: Schema design with entity relationships, indexes, and migration plan.`,
subagent_type: "system-architect",
name: "architect",
run_in_background: true
})Full Team Spawn Example
// Create shared task list first
TaskCreate({ subject: "Design schema", description: "...", activeForm: "Designing" })
TaskCreate({ subject: "Implement models", description: "...", activeForm: "Implementing" })
TaskCreate({ subject: "Write tests", description: "...", activeForm: "Testing" })
TaskCreate({ subject: "Security review", description: "...", activeForm: "Reviewing" })
// Spawn ALL named agents in ONE message
Task({
prompt: "Design the schema. SendMessage to 'developer' with your design when done. Update task #1.",
subagent_type: "system-architect", name: "architect", run_in_background: true
})
Task({
prompt: "Wait for schema from 'architect'. Implement models + endpoints. SendMessage to 'tester'. Update task #2.",
subagent_type: "coder", name: "developer", run_in_background: true
})
Task({
prompt: "Wait for code from 'developer'. Write integration tests. SendMessage results to 'security'. Update task #3.",
subagent_type: "tester", name: "tester", run_in_background: true
})
Task({
prompt: "Wait for test results from 'tester'. Review for vulnerabilities. Update task #4.",
subagent_type: "security-auditor", name: "security", run_in_background: true
})Agent Teams Hooks
| Hook | Trigger | Purpose |
TeammateIdle | Teammate finishes turn | Auto-assign pending tasks via SendMessage |
TaskCompleted | Task marked complete | Train patterns, notify lead via SendMessage |
npx claude-flow@v3alpha hooks teammate-idle --auto-assign true
npx claude-flow@v3alpha hooks task-completed -i task-123 --train-patterns trueRules
- Always name agents — use
name: "role-name"so they're addressable - Comms over memory — use SendMessage for real-time coordination, memory for persistence
- Pipeline prompts — tell each agent WHO to message next and WHAT to send
- Spawn all at once — all Task calls in ONE message with
run_in_background: true - Don't poll — agents message back when done; wait for task completion notifications
- Graceful shutdown — send
{ type: "shutdown_request" }before TeamDelete - Lead synthesizes — when agents complete, review ALL results before responding to user
V3 Hooks System (17 Hooks + 12 Workers)
Hook Categories
| Category | Hooks | Purpose |
| Core | pre-edit, post-edit, pre-command, post-command, pre-task, post-task | Tool lifecycle |
| Session | session-start, session-end, session-restore, notify | Context management |
| Intelligence | route, explain, pretrain, build-agents, transfer | Neural learning |
| Learning | intelligence (trajectory-start/step/end, pattern-store/search, stats, attention) | Reinforcement |
| Agent Teams | teammate-idle, task-completed | Multi-agent coordination |
12 Background Workers
| Worker | Priority | Description |
ultralearn | normal | Deep knowledge acquisition |
optimize | high | Performance optimization |
consolidate | low | Memory consolidation |
predict | normal | Predictive preloading |
audit | critical | Security analysis |
map | normal | Codebase mapping |
preload | low | Resource preloading |
deepdive | normal | Deep code analysis |
document | normal | Auto-documentation |
refactor | normal | Refactoring suggestions |
benchmark | normal | Performance benchmarking |
testgaps | normal | Test coverage analysis |
Essential Hook Commands
# Core hooks
npx claude-flow@v3alpha hooks pre-task --description "[task]"
npx claude-flow@v3alpha hooks post-task --task-id "[id]" --success true
npx claude-flow@v3alpha hooks post-edit --file "[file]" --train-patterns
# Session management
npx claude-flow@v3alpha hooks session-start --session-id "[id]"
npx claude-flow@v3alpha hooks session-end --export-metrics true
npx claude-flow@v3alpha hooks session-restore --session-id "[id]"
# Intelligence routing
npx claude-flow@v3alpha hooks route --task "[task]"
npx claude-flow@v3alpha hooks explain --topic "[topic]"
# Neural learning
npx claude-flow@v3alpha hooks pretrain --model-type moe --epochs 10
npx claude-flow@v3alpha hooks build-agents --agent-types coder,tester
# Background workers
npx claude-flow@v3alpha hooks worker list
npx claude-flow@v3alpha hooks worker dispatch --trigger audit
npx claude-flow@v3alpha hooks worker statusIntelligence System (RuVector)
V3 includes the RuVector Intelligence System (measured numbers: see audit + scripts/benchmark-intelligence.mjs):
- SONA: Self-Optimizing Neural Architecture (measured 0.0043ms/adapt, target <0.05ms met)
- MoE: Mixture of Experts for specialized routing (gate converges — confidence 0.13→0.88 after rewards)
- HNSW: measured ~1.9x at N=20k, ~3.2x–4.7x at N=5k vs brute force (recall@10 ~0.99); ANN wins above the crossover, ruvector NAPI backend (WASM not active on test host)
- EWC++: Elastic Weight Consolidation (prevents forgetting)
- Flash Attention: integration available; speedup dropped from docs pending an in-tree benchmark (was: 2.49x–7.47x, inherited unverified from upstream — removed to avoid a credibility claim we can't reproduce)
The 4-step intelligence pipeline:
- RETRIEVE — Fetch relevant patterns via HNSW
- JUDGE — Evaluate with verdicts (success/failure)
- DISTILL — Extract key learnings via LoRA
- CONSOLIDATE — Prevent catastrophic forgetting via EWC++
Embeddings Package (v3.0.0-alpha.12)
Features:
- sql.js: Cross-platform SQLite persistent cache (WASM, no native compilation)
- Document chunking: Configurable overlap and size
- Normalization: L2, L1, min-max, z-score
- Hyperbolic embeddings: Poincare ball model for hierarchical data
- agentic-flow ONNX integration: speedup unverified (no benchmark; backend reported
onnx, model all-MiniLM-L6-v2, 384-dim) - Neural substrate: Integration with RuVector
Hive-Mind Consensus
Topologies
hierarchical— Queen controls workers directlymesh— Fully connected peer networkhierarchical-mesh— Hybrid (recommended)adaptive— Dynamic based on load
Consensus Strategies
byzantine— BFT (tolerates f < n/3 faulty)raft— Leader-based (tolerates f < n/2)gossip— Epidemic for eventual consistencycrdt— Conflict-free replicated data typesquorum— Configurable quorum-based
V3 Performance Targets
Source of truth:
docs/reviews/intelligence-system-audit-2026-05-29.md+scripts/benchmark-intelligence.mjs. Numbers below are measured unless marked "target/unverified".
| Metric | Measured / Target | Status |
| HNSW Search | ~1.9x at N=20k, ~3.2x–4.7x at N=5k vs brute force (recall@10 ~0.99); ties/loses below crossover | Measured (ruvector NAPI; 150x-12,500x NOT reproduced — was brute-force fallback) |
| Int8 Quantization | 3.84x compression, reconstruction cosine 0.99999 | Measured |
| RaBitQ Quantization | 32x compression, 0.60ms/query (14,760-vec index) | Measured |
| SONA Adaptation | 0.0043ms/adapt (target <0.05ms met) | Measured |
| MoE Gate | converges — confidence 0.13→0.88, Q 0→99.8 after rewards | Measured |
| Flash Attention | integration available; measured speedup pending benchmark | Not measured — prior "2.49x–7.47x" figure was inherited from upstream marketing, never reproduced in-tree; dropped to avoid a credibility claim we can't verify |
| MCP Response | <100ms | target |
| CLI Startup | <500ms | target |
Environment Variables
# Configuration
CLAUDE_FLOW_CONFIG=./claude-flow.config.json
CLAUDE_FLOW_LOG_LEVEL=info
# Provider API Keys
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
GOOGLE_API_KEY=...
# MCP Server
CLAUDE_FLOW_MCP_PORT=3000
CLAUDE_FLOW_MCP_HOST=localhost
CLAUDE_FLOW_MCP_TRANSPORT=stdio
# Memory
CLAUDE_FLOW_MEMORY_BACKEND=hybrid
CLAUDE_FLOW_MEMORY_PATH=./data/memoryDoctor Health Checks
Run npx claude-flow@v3alpha doctor to check:
- Node.js version (20+)
- npm version (9+)
- Git installation
- Config file validity
- Daemon status
- Memory database
- API keys
- MCP servers
- Disk space
- TypeScript installation
Quick Setup
# Add MCP servers
claude mcp add claude-flow -- npx -y ruflo@latest mcp start
claude mcp add ruv-swarm npx ruv-swarm mcp start # Optional
claude mcp add flow-nexus npx flow-nexus@latest mcp start # Optional
# Start daemon
npx claude-flow@v3alpha daemon start
# Run doctor
npx claude-flow@v3alpha doctor --fixClaude Code vs MCP Tools
Claude Code Handles ALL EXECUTION:
- Task tool: Spawn and run agents concurrently
- File operations (Read, Write, Edit, MultiEdit, Glob, Grep)
- Code generation and programming
- Bash commands and system operations
- TodoWrite and task management
- Git operations
MCP Tools ONLY COORDINATE:
- Swarm initialization (topology setup)
- Agent type definitions
- Task orchestration
- Memory management
- Neural features
- Performance tracking
- Keep MCP for coordination strategy only — use Claude Code's Task tool for real execution
Claude Code ↔ AgentDB Memory Bridge
Claude Code's auto-memory (~/.claude/projects/*/memory/*.md) is bridged to AgentDB with ONNX vector embeddings for semantic search.
MCP Tools
| Tool | Description |
memory_import_claude | Import Claude Code memories into AgentDB with 384-dim ONNX embeddings. Use allProjects: true to import from ALL projects. |
memory_bridge_status | Show bridge health — Claude files, AgentDB entries, SONA state, connection status |
memory_search_unified | Semantic search across ALL namespaces (claude-memories, auto-memory, patterns, tasks, feedback) |
Auto-Import on Session Start
The SessionStart hook automatically imports current project's memories into AgentDB. For manual import of all projects:
# Via MCP tool (from Claude Code)
memory_import_claude({ allProjects: true })
# Via helper hook (from terminal)
node .claude/helpers/auto-memory-hook.mjs import-allUnified Search
Search across both Claude Code memories and AgentDB entries:
# Via MCP tool
memory_search_unified({ query: "authentication security", limit: 5 })
# Results include source attribution: claude-code, auto-memory, or agentdbIntelligence Pipeline
| Component | Status | Details |
| ONNX Embeddings | Active | all-MiniLM-L6-v2, 384 dimensions |
| SONA Learning | Active | Pattern matching + trajectory recording |
| ReasoningBank | Active | Pattern storage with file persistence |
| AgentDB sql.js | Active | SQLite with vector_indexes table |
Publishing to npm
Versioning policy (stable releases — alpha series ended at 3.7.0-alpha.81, 2026-05-23)
- From 3.7.0 onward we ship stable semver, NOT alpha pre-releases.
- Bump rules (semver discipline):
- PATCH (3.7.0 → 3.7.1): bug fixes only, no API change, no schema change
- MINOR (3.7.0 → 3.8.0): backward-compatible additions (new MCP tool, new flag, new agent type)
- MAJOR (3.x → 4.0.0): breaking change in CLI surface, MCP tool signature, file layout, or default behavior
- Default tag is
latest(no--tag alpha). Thealphaandv3alphadist-tags continue to exist for historical compatibility — point them at the same version aslatest. - Never publish a pre-release (
-alpha.N,-beta.N,-rc.N) unless the user explicitly asks for a pre-release flow. - The internal
@claude-flow/*leaves follow the same policy since 2026-09-28 (moved to3.0.0;cli-core3.7.0; the two plugins1.0.0). One exception:@claude-flow/embeddingsstays on its alpha line — its registrylatest(3.0.0-alpha.45) was built from a branch not onmain, and publishing frommainwould drop 139 exported names. Reconcile that branch before bumping it.
Publishing Rules
- The normal public release train is exactly THREE packages:
@claude-flow/cli,claude-flow, andruflo. - Exactly FOUR
@claude-flow/*components are bundled into the public artifacts:security,codex,mcp,plugin-agent-federation— the list isINTERNAL_RUNTIME_PACKAGESinscripts/stage-internal-runtime-bundles.mjs. These are built from the tagged source and staged into the tarball'spackage/node_modules/, so a source change in them ships with the train. They are ALSO published standalone for direct consumers (the staging script copies onlydist+README.md, independent of the standalone tarball) — when their source changes, republish the standalone package too, or direct consumers keep the old copy (the #3411mcpdisclosure was about the standalone tarball, not the train). - Every publishable leaf needs a
filesallowlist and must NOT setpublishConfig.tag. Withoutfiles, npm ships whatever sits in the package directory — published tarballs have leaked.claude-flow/daemon logs and pids,settings.json,.swarm/memory.dband headless-worker prompt logs. ApublishConfig.tagofv3alphasilently routes a stable publish away fromlatest. Every OTHER
@claude-flow/*dependency resolves from the registry, at the versionv3/@claude-flow/cli/package.jsonpins. A source change in one of those does NOT ship with the train — the release silently carries the last published copy of that package, not the code you just merged. It must be bumped and published standalone in the same release or the fix reaches nobody:dep of @claude-flow/clibundled? how a source change reaches users security,codex,mcp,plugin-agent-federationyes with the train cli-core,neural,shared,memoryno standalone publish required memoryis the easiest of these to miss: its own package tests run against workspace source, so CI goes green on a change that cannot ship. Since #3414 the CLI pins every non-bundled leaf exactly, so a stale cached copy can no longer satisfy the spec silently — but the pin now fails the other way: an exact pin to a version that was never published breaks installs outright (memory@3.0.0-alpha.27sat unpublished behind a merged pin on 2026-09-28).v3/.npmrcsetsprefer-workspace-packages=true, sov3/pnpm-lock.yamllinks every@claude-flow/*package to workspace source (without it, pnpm swaps in a newer registry copy — e.g. aclireleased from a branch not onmain— and drags that copy's alpha deps into the lockfile). The lockfile therefore never proves a leaf was published: checknpm view <leaf>@<ver>before merging a pin. #3390 (#3327 Finding A) is the worked example — it fixedmemory/src/controller-registry.tsandcli/src/memory/memory-bridge.tstogether, and without a standalonememorypublish only theclihalf would have shipped, leaving the fix inert.Before tagging, check every non-bundled leaf for drift between what the CLI pins and what the workspace source says — a mismatch means an unpublished change is about to be skipped by the release:
# needs root deps for `semver` — run after `npm ci` at repo root node -e 'const semver=require("semver"),c=require("./v3/@claude-flow/cli/package.json"),d={...c.dependencies,...c.optionalDependencies},b=["security","codex","mcp","plugin-agent-federation"];let n_=0;for(const[n,v]of Object.entries(d)){if(!n.startsWith("@claude-flow/"))continue;if(b.includes(n.slice(13)))continue;let w;try{w=require(`./v3/${n}/package.json`).version}catch{continue}n_++;if(!semver.satisfies(w,v,{includePrerelease:true}))console.log(`DRIFT ${n}: cli pins ${v}, workspace source ${w} — publish it or the release skips the change`)}if(!n_){console.error("checked 0 leaves — check is broken, do not trust a clean result");process.exit(1)}console.log(`checked ${n_} non-bundled leaves`)'It must use
semver.satisfies, not a string compare: a pin may be a range, and a literal match would then report a false DRIFT. It also fails loudly at zero leaves checked — a guard that inspects nothing must not report clean.- MUST update ALL dist-tags for ALL THREE packages after publishing (latest + alpha + v3alpha all point to the same version)
- Publish order:
@claude-flow/clifirst, thenclaude-flow(umbrella), thenruflo(alias umbrella) - MUST run verification for ALL THREE before telling user publishing is complete
- Run
node scripts/audit-umbrella-version-lockstep.mjsbefore packing or publishing. - Publish from a clean reviewed commit/tag-equivalent worktree. Do not ship unrelated uncommitted changes.
- A fresh worktree has two separate dependency trees to install before anything
builds:
npm installat repo root (npm workspaces), ANDpnpm installinsidev3/(a separate pnpm workspace — rootprepare-root-publish.mjsshells out topnpm --filterto buildv3/@claude-flow/{shared,hooks,guidance}, which fails withspawn ENOENTontscifv3/node_moduleswas never populated). - Use the existing authenticated
ruvnetnpm session. Do not replace it with a token from another GCP project.
npm publish auth — FIXED (2026-07-30): use the NPM_TOKEN secret directly,
via a throwaway .npmrc with NPM_CONFIG_USERCONFIG — same pattern as the
helpers-signing-key handling. It is mirrored in two GCP projects — ruv-dev
(version 3+) and cognitum-20260110 (version 7+) — so either project's copy
is current; use whichever gcloud session is already authenticated. This is a
granular access token ("ruflo publishjing", expires 2026-10-28) with
package: write + bypass_2fa: true, scoped broadly enough to cover
@claude-flow/cli, claude-flow, and ruflo (plus the cognitum/
cognitum-one orgs). Confirmed end-to-end against the real registry (not just
a permissions probe): npm publish for @claude-flow/cli succeeded via this
token with zero OTP/WebAuthn prompt, and
npm dist-tag add against both a scoped (@claude-flow/cli) and unscoped
(claude-flow) package also went through with no prompt.
Why the earlier NPM_TOKEN version failed: versions 1/2 of that secret
were older classic automation tokens, and npm has been restricting tokens that
bypass 2FA for writes account-wide (the login flow prints this notice —
gh.io/npm-gat-bypass2fa-deprecation). Version 3 is a granular access
token created explicitly for this purpose, which is npm's supported
replacement path (its own 2FA-bypass flag still works for a granular token,
unlike the deprecated classic automation tokens). If this token's bypass_2fa
flag or scope ever gets narrowed/expired (check expiry above), the fallback
is the WebAuthn dance below — but try this path first every time.
gcloud secrets versions access latest --secret=NPM_TOKEN --project=ruv-dev > /tmp/.npmrc-publish-raw
printf '//registry.npmjs.org/:_authToken=%s\n' "$(cat /tmp/.npmrc-publish-raw)" > /tmp/.npmrc-publish
rm -f /tmp/.npmrc-publish-raw
NPM_CONFIG_USERCONFIG=/tmp/.npmrc-publish npm publish # from the package dir, with signing-key env vars for @claude-flow/cli
NPM_CONFIG_USERCONFIG=/tmp/.npmrc-publish npm dist-tag add <pkg>@<version> alpha
NPM_CONFIG_USERCONFIG=/tmp/.npmrc-publish npm dist-tag add <pkg>@<version> v3alpha
shred -u /tmp/.npmrc-publish 2>/dev/null || rm -f /tmp/.npmrc-publish # ALWAYS clean up, same discipline as the signing keyFallback — WebAuthn procedure, if the token above is dead: the ruvnet
account's 2FA method is a WebAuthn security key, not TOTP (no numeric
--otp=<code> exists). This must be driven by the human (an agent cannot
approve a WebAuthn browser prompt):
- Human goes to npmjs.com → account 2FA settings → turns OFF "Require
two-factor authentication for write actions" (narrows to auth-only, not a
full 2FA disable), then runs
npm loginin their own terminal to refresh the session under the new setting. - Agent can then run
npm publishdirectly via Bash with no further prompt. npm dist-tag addstill requires a fresh WebAuthn approval PER CALL regardless of the write-2FA setting — 6 individual browser approvals for a 3-package release (alpha + v3alpha × 3), not 1. Tell the human up front.
- After every dist-tag call (or if unsure), verify with
npm view <pkg> dist-tags --json— don't trust the CLI's own stdout alone, since a WebAuthn prompt that's still pending in the browser produces no terminal output an agent can see. - Confirm the version actually landed (
npm view <pkg>@<version> version) before telling the user publishing succeeded, same reasoning: a mid-publish approval that never gets answered fails silently from an agent's point of view.
Helpers signing key (required for @claude-flow/cli publish): npm publish's
prepublishOnly runs scripts/sign-helpers.mjs, which needs a private key to sign
.claude/helpers/helpers.manifest.json. The secret lives in GCP Secret Manager in the
ruv-dev project (not cognitum-20260110 or claude-flow — checked both, not there),
secret name ruflo-helpers-signing-key:
cd v3/@claude-flow/cli
RUFLO_HELPERS_SIGNING_SECRET=ruflo-helpers-signing-key RUFLO_HELPERS_SIGNING_PROJECT=ruv-dev \
npm publish(ruv-dev also holds ruflo-config-signing-key; do not replace the existing
authenticated npm session with a token from another project.)
Handling the signing key without leaking it (learned 2026-07-14, hard way):
an earlier Windows path invoked gcloud without its required .cmd suffix. The
fallback command printed the PEM into captured tool output and a session transcript.
GCP secret v1 was destroyed and a fresh v2 was rotated in (commit 0052b1b06 /
PR #2673). sign-helpers.mjs now selects gcloud.cmd on Windows and supports a
stdin-only fallback. Rules:
- NEVER invoke
gcloud secrets versions accessin a way that lets the payload reach tool output. Use the built-inRUFLO_HELPERS_SIGNING_SECRETpath above, or pipe directly into the signer:gcloud secrets versions access latest --secret=ruflo-helpers-signing-key --project=ruv-dev | node scripts/sign-helpers.mjs --stdin-key. --stdin-keyrefuses interactive entry, validates Ed25519 key type, and never echoes parser input. A local file viaRUFLO_HELPERS_SIGNING_KEYremains the air-gapped fallback.- If a rotation IS needed, keep the private half in
~/.ruflo/helpers-signing.keyonly, print ONLY the public half (viaEd25519 pub exportfrom Node crypto), upload new private viagcloud secrets versions add … --data-file=, thengcloud secrets versions destroy <old>to make the old irrecoverable.
Windows prepublishOnly failure (learned 2026-07-14): the CLI's prepublishOnly
chain (cp ../../../README.md ./README.md && rm -rf plugins && mkdir -p plugins && cp -r ...)
is POSIX-shell-only. On Windows, npm runs it via cmd.exe /d /s /c which chokes on
mkdir -p (interprets -p as a directory name) and cp -r (no such command). Two
workarounds until the script is rewritten in cross-platform Node:
- Run the prep steps manually in Git Bash, then
npm publish --ignore-scripts. - Or use a POSIX shell for the whole publish:
SHELL=bash npm publish— but this doesn't always take effect on Windows depending on npm version. Option 1 is what worked for v3.29.0. Track proper fix in ruvnet/ruflo issue for cross-platform prepublish.
Concurrent-session helper corruption (real, observed, be paranoid): multiple Claude Code
sessions can have their own npm exec @claude-flow/cli@latest mcp start MCP server running
concurrently with cwd inside this repo (check with readlink /proc/<pid>/cwd on
pgrep -f "npm exec @claude-flow/cli@latest mcp start"). If one of those resolved an older
cached @latest (predating the semver.gte downgrade-guard in
helper-refresh.ts:autoRefreshHelpersIfStale), it will silently overwrite this repo's
hand-maintained .claude/helpers/hook-handler.cjs / intelligence.cjs (root AND package
copies) — and helpers.manifest.json + .helpers-version — with its own older bundled
content, mid-session, with no warning. Observed live 2026-07-13: this happened twice in
one publish flow, once right after a manual revert and once right after signing (silently
invalidating a freshly-signed manifest). Mitigation: never trust the on-disk state of
those files between tool calls — git diff --stat them immediately before any git add/
sign-helpers.mjs/npm publish step, git checkout HEAD -- revert if dirty, and chain
revert → sign → verify → add → commit as ONE bash invocation (&&-joined) to minimize the
race window. npm publish's own prepublishOnly re-signs fresh at pack time regardless, so
what matters is the on-disk state at the exact moment npm publish runs, not before.
# Replace 3.7.1 below with your chosen stable version (patch/minor/major per the rules above)
# STEP 1: Build and publish @claude-flow/cli
cd v3/@claude-flow/cli
npm version 3.7.1 --no-git-tag-version
npm run build
npm publish # default tag is `latest` — no --tag flag
npm dist-tag add @claude-flow/cli@3.7.1 alpha # historical compat
npm dist-tag add @claude-flow/cli@3.7.1 v3alpha # historical compat
# STEP 2: Publish claude-flow umbrella
cd /Users/cohen/Projects/ruflo # or your repo root
npm version 3.7.1 --no-git-tag-version
npm publish
npm dist-tag add claude-flow@3.7.1 alpha
npm dist-tag add claude-flow@3.7.1 v3alpha
# STEP 3: Publish ruflo wrapper (CRITICAL — DON'T FORGET — this is what users run)
cd ruflo
npm version 3.7.1 --no-git-tag-version
npm publish
npm dist-tag add ruflo@3.7.1 alpha
npm dist-tag add ruflo@3.7.1 v3alphaVerification (run before telling user publishing is complete):
for pkg in @claude-flow/cli claude-flow ruflo; do
echo "$pkg: $(npm view $pkg@latest version)"
npm view $pkg dist-tags --json
done
# All three must show latest === alpha === v3alpha === new versionAll Tags That Must Be Updated
| Package | Tag | Command Users Run |
@claude-flow/cli | latest | npx @claude-flow/cli@latest |
@claude-flow/cli | alpha | npx @claude-flow/cli@alpha (legacy compat) |
@claude-flow/cli | v3alpha | npx @claude-flow/cli@v3alpha (legacy compat) |
claude-flow | latest | npx claude-flow@latest |
claude-flow | alpha | npx claude-flow@alpha (legacy compat) |
claude-flow | v3alpha | npx claude-flow@v3alpha (legacy compat) |
ruflo | latest | npx ruflo@latest |
ruflo | alpha | npx ruflo@alpha (legacy compat) |
ruflo | v3alpha | npx ruflo@v3alpha (legacy compat) |
- Never forget the
ruflopackage — it's the thin wrapper users actually run vianpx ruflo - The legacy
alphaandv3alphatags MUST stay pointed at the latest stable so old install commands keep working ruflosource is in/ruflo/— it depends on@claude-flow/cli- Also remember to update
ruflo/package.jsonoverrides when adding new pinned transitives (see #2112 lesson — root overrides do NOT propagate to the publishedruflowrapper)
GitHub Release after publish
Every stable bump SHOULD have a matching gh release create v<version> with consolidated release notes pointing at the gist if one exists. Example:
git tag v3.7.1 main
git push origin v3.7.1
gh release create v3.7.1 --title "v3.7.1 — <one-line headline>" \
--notes-file /tmp/release-notes.mdPlugin Registry Maintenance (IPFS/Pinata)
The plugin registry is stored on IPFS via Pinata for decentralized, immutable distribution.
Registry Location
- Current CID: Stored in
v3/@claude-flow/cli/src/plugins/store/discovery.ts - Gateway:
https://gateway.pinata.cloud/ipfs/{CID} - Format: JSON with plugin metadata, categories, featured/trending lists
Required Environment Variables
Add to .env (NEVER commit actual values):
PINATA_API_KEY=your-api-key
PINATA_API_SECRET=your-api-secret
PINATA_API_JWT=your-jwt-tokenPlugin Registry Operations
Adding a New Plugin to Registry
- Fetch current registry:
curl -s "https://gateway.pinata.cloud/ipfs/$(grep LIVE_REGISTRY_CID v3/@claude-flow/cli/src/plugins/store/discovery.ts | cut -d"'" -f2)" > /tmp/registry.json- Add plugin entry to the
pluginsarray:
{
"id": "@claude-flow/your-plugin",
"name": "@claude-flow/your-plugin",
"displayName": "Your Plugin",
"description": "Plugin description",
"version": "1.0.0-alpha.1",
"size": 100000,
"checksum": "sha256:abc123",
"author": {"id": "claude-flow-team", "displayName": "Claude Flow Team", "verified": true},
"license": "MIT",
"categories": ["official"],
"tags": ["your", "tags"],
"downloads": 0,
"rating": 5,
"lastUpdated": "2026-01-25T00:00:00.000Z",
"minClaudeFlowVersion": "3.0.0",
"type": "integration",
"hooks": [],
"commands": [],
"permissions": ["memory"],
"exports": ["YourExport"],
"verified": true,
"trustLevel": "official"
}- Update counts and arrays:
- Increment
totalPlugins - Add to
officialarray - Add to
featured/newestif applicable - Update category
pluginCount
- Increment
- Upload to Pinata (read credentials from .env):
# Source credentials from .env
PINATA_JWT=$(grep "^PINATA_API_JWT=" .env | cut -d'=' -f2-)
# Upload updated registry
curl -X POST "https://api.pinata.cloud/pinning/pinJSONToIPFS" \
-H "Authorization: Bearer $PINATA_JWT" \
-H "Content-Type: application/json" \
-d @/tmp/registry.json- Update discovery.ts with new CID:
export const LIVE_REGISTRY_CID = 'NEW_CID_FROM_PINATA';- Also update demo registry in discovery.ts
demoPluginRegistryfor offline fallback
Security Rules
- NEVER hardcode API keys in scripts or source files
- NEVER commit .env (already in .gitignore)
- Always source credentials from environment at runtime
- Always delete temporary scripts after one-time uploads
Verification
# Verify new registry is accessible
curl -s "https://gateway.pinata.cloud/ipfs/{NEW_CID}" | jq '.totalPlugins'MetaHarness Integration (ADR-150)
Ruflo integrates with the upstream metaharness / @metaharness/* ecosystem as a sibling agent-harness scaffolding system (same author, designed around ruflo's primitives). MetaHarness packages are optional peer dependencies and are never required at runtime.
Architectural constraint (load-bearing)
Ruflo remains operational if every MetaHarness package is removed. Four rules:
- Removable:
npm ls --without @metaharness/*must still produce a working CLI - Optional in package.json:
@metaharness/*packages MUST be optional peers, never normal dependencies - Graceful degradation: every code path that touches MetaHarness catches
MODULE_NOT_FOUNDand falls back - CI gate:
.github/workflows/no-metaharness-smoke.ymlenforces all three by static grep + runtime drill on every PR
Command + tool surface
# CLI subcommands (npx ruflo metaharness …)
npx ruflo metaharness score # 5-dim readiness scorecard
npx ruflo metaharness genome # 7-section categorical report
npx ruflo metaharness mcp-scan --fail-on high # static security findings
npx ruflo metaharness threat-model # enterprise threat report
npx ruflo metaharness oia-audit --alert-on-worst high
# composite weekly audit → memory
npx ruflo metaharness audit-list --since 30d # enumerate audit records
npx ruflo metaharness audit-trend \ # diff two audits (drift)
--baseline-key <a> --current-key <b> --alert-on-worsening \
--alert-on-distance-below 0.85 # iter 38 — structural-distance gate (ADR-152 §3.1)
npx ruflo metaharness similarity \ # iter 36 — ADR-152 §3.1 weighted similarity
--a a.json --b b.json [--per-dimension] [--alert-below 0.5]
npx ruflo metaharness drift-from-history \ # iter 53 — 1-command drift (composes 3 primitives)
[--baseline-since 7d] [--baseline-key <key>] [--baseline-file <path>] \
[--threshold 0.95] [--alert-on-new-severity high] [--dry-run]
# iter 66 — --baseline-key skips audit-list (~14x faster)
# iter 67 — --baseline-file skips memory entirely (~19x faster)
# iter 78 — --alert-on-new-severity adds orthogonal finding-severity gate
npx ruflo metaharness mint --name foo --template vertical:coding --confirm
npx ruflo metaharness redblue init # @metaharness/redblue — scaffold redblue.yaml
npx ruflo metaharness redblue run --mock-judge --tests 10
# $0 marker-fixture path (CI / offline)
npx ruflo metaharness redblue run --tests 50 --patch
# real model judge (needs OPENROUTER_API_KEY,
# capped by max_cost_usd, default $3)
npx ruflo metaharness redblue attack prompt --count 3
# preview generated attack cases (no target call)
npx ruflo metaharness redblue patch --mock-judge # baseline → blue-team patch → retest delta
npx ruflo metaharness redblue report --in report.json
# render existing report as markdown
npx ruflo metaharness learn --host claude-code --model haiku --slice slices/lite.json
# metaharness@0.3.0 / upstream ADR-235 —
# GEPA learning run; $0 dry-run default,
# --run to spend; needs a metaharness
# repo checkout (--repo / $METAHARNESS_REPO)
npx ruflo metaharness gepa --op genome # darwin@0.8.0 GEPA library — load + validate
# the shipped cand-6 genome (or --path <f>)
npx ruflo metaharness gepa --op render # genome → the system prompt it compiles to
npx ruflo metaharness gepa --op analyze --transcript run.json
# classify failure modes in a transcript
npx ruflo metaharness evolve --bench .harness/bench.json
# Darwin proposes candidates; governed gates decide
npx ruflo metaharness bench verify --path .harness/bench.json
# create or verify stable benchmark corpora
npx ruflo metaharness flywheel run --proposer auto --max-concurrency 2
# bounded concurrent evaluation; does not promote
npx ruflo metaharness flywheel receipts # inspect immutable evaluation receipts
npx ruflo metaharness flywheel promote <receipt-id> \
--public-key ./approved-ed25519-public.pem --confirm
# explicit policy-authorized atomic promotion
# Dedicated command
npx ruflo eject --name my-harness # lift ruflo project → standalone harness
# dry-run by default; refuses in-repo target
# Doctor health check
npx ruflo doctor --component metaharness # report metaharness availability + version
# MCP tools (callable by Claude Code agents)
mcp__claude-flow__metaharness_score
mcp__claude-flow__metaharness_genome
mcp__claude-flow__metaharness_mcp_scan
mcp__claude-flow__metaharness_threat_model
mcp__claude-flow__metaharness_oia_audit
mcp__claude-flow__metaharness_audit_list
mcp__claude-flow__metaharness_audit_trend
mcp__claude-flow__metaharness_similarity # iter 36 — ADR-152 §3.1 genome similarity
mcp__claude-flow__metaharness_drift_from_history # iter 53 — 1-command drift detection
mcp__claude-flow__metaharness_bench # ADR-153 — create/verify bench suites for evolve --bench
mcp__claude-flow__metaharness_evolve # MAP-Elites driver — evolve a harness across bench suites
mcp__claude-flow__metaharness_security_bench # security-focused benchmark suite gate
mcp__claude-flow__metaharness_redblue # @metaharness/redblue — adversarial red/blue LLM testing (init|run|patch|attack|report)
mcp__claude-flow__metaharness_learn # metaharness@0.3.0 — GEPA learning run ($0 dry-run default; run=true to spend)
mcp__claude-flow__metaharness_gepa # darwin@0.8.0 — GEPA genome ops (genome|validate|render|analyze); gepaOptimize stays library-only
mcp__claude-flow__metaharness_flywheel # ADR-322 — evaluate concurrently, inspect receipts/ledger, or explicitly promoteRouting integration (ADR-148/149)
@metaharness/router@~0.3.2 is wired as the cost-optimal model router behind the CLAUDE_FLOW_ROUTER_NEURAL=1 triple-gate. The routedBy field on every routing decision carries 'metaharness-knn' | 'metaharness-krr' | 'fastgrnn' when the neural path is active.
SelfEvolvingRouter parallel-logging (ADR-150 Phase 2)
When CLAUDE_FLOW_ROUTER_PARALLEL_LOG=1 is set, every route() call writes a paired-decision row (bandit pick + neural-augmented pick + outcome) to .swarm/router-parallel.jsonl. Analyze with:
node plugins/ruflo-metaharness/scripts/router-parallel-analyze.mjs \
--input .swarm/router-parallel.jsonl --strictThe 3-criteria AND-gate from ADR-150 review-round-1: quality > 2% AND cost < 1% AND latency < 5%. Exit 1 in --strict mode if any criterion fails — promotion gate.
CI workflows
metaharness-ci.yml— score / mcp-scan / router-compat / eject-dryrun jobs on every PR touchingplugins/ruflo-metaharness/**no-metaharness-smoke.yml— enforces the four architectural-constraint rules above on every PRoia-audit-weekly.yml— Sundays 04:17 UTC, runs composite audit, uploads 90-day artifact
Cross-references
- ADR-150 — decision + implementation notes
- Issue #2399 — phase tracker
- Research gist — graded evidence
- Upstream:
github.com/ruvnet/agent-harness-generator
Optional Plugins (20 Available)
Plugins are distributed via IPFS and can be installed with the CLI. Browse and install from the official registry:
# List all available plugins
npx claude-flow@v3alpha plugins list
# Install a plugin
npx claude-flow@v3alpha plugins install @claude-flow/plugin-name
# Enable/disable
npx claude-flow@v3alpha plugins enable @claude-flow/plugin-name
npx claude-flow@v3alpha plugins disable @claude-flow/plugin-nameCore Plugins
| Plugin | Version | Description |
@claude-flow/embeddings | 3.0.0-alpha.1 | Vector embeddings with sql.js, HNSW, hyperbolic support |
@claude-flow/security | 3.0.0-alpha.1 | Input validation, path security, CVE remediation |
@claude-flow/claims | 3.0.0-alpha.8 | Claims-based authorization (check, grant, revoke, list) |
@claude-flow/neural | 3.0.0-alpha.7 | Neural pattern training (SONA, MoE, EWC++) |
@claude-flow/plugins | 3.0.0-alpha.1 | Plugin system core (manager, discovery, store) |
@claude-flow/performance | 3.0.0-alpha.1 | Performance profiling and benchmarking |
Integration Plugins
| Plugin | Version | Description |
@claude-flow/plugin-agentic-qe | 3.0.0-alpha.4 | Agentic quality engineering integration |
@claude-flow/plugin-prime-radiant | 0.1.5 | Prime Radiant intelligence integration |
@claude-flow/plugin-gastown-bridge | 3.0.0-alpha.1 | Gastown bridge protocol integration |
@claude-flow/teammate-plugin | 1.0.0-alpha.1 | Multi-agent teammate coordination |
@claude-flow/plugin-code-intelligence | 0.1.0 | Advanced code analysis and intelligence |
@claude-flow/plugin-test-intelligence | 0.1.0 | Intelligent test generation and gap analysis |
@claude-flow/plugin-perf-optimizer | 0.1.0 | Performance optimization automation |
@claude-flow/plugin-neural-coordinator | 0.1.0 | Neural network coordination across agents |
@claude-flow/plugin-cognitive-kernel | 0.1.0 | Core cognitive processing kernel |
@claude-flow/plugin-quantum-optimizer | 0.1.0 | Quantum-inspired optimization algorithms |
@claude-flow/plugin-hyperbolic-reasoning | 0.1.0 | Hyperbolic space reasoning for hierarchical data |
Domain-Specific Plugins
| Plugin | Version | Description |
@claude-flow/plugin-healthcare-clinical | 0.1.0 | Healthcare clinical workflow automation |
@claude-flow/plugin-financial-risk | 0.1.0 | Financial risk assessment and modeling |
@claude-flow/plugin-legal-contracts | 0.1.0 | Legal contract analysis and generation |
Plugin Development
# Create a new plugin from template
npx claude-flow@v3alpha plugins create my-plugin
# Test locally
npx claude-flow@v3alpha plugins install ./path/to/my-plugin
# Publish to registry (requires Pinata credentials)
npx claude-flow@v3alpha plugins publishRegistry source: IPFS via Pinata (QmXbfEAaR7D2Ujm4GAkbwcGZQMHqAMpwDoje4583uNP834)
Support
- Documentation: https://github.com/ruvnet/claude-flow
- Issues: https://github.com/ruvnet/claude-flow/issues
Remember: Claude Flow coordinates, Claude Code creates!
Gateway-Delegated Development (meta-llm dev-bridge)
For complex reasoning, architecture decisions, or hard bug-fixes, delegate via the
metallm_delegate MCP tool rather than solving inline. The meta-llm gateway governs the
work: it routes cheap-tier-first, escalates genuinely-hard tasks to the frontier (Fable),
and meters every call — so delegation is cost-governed and preserves the main session's context.
- Default to
cognitum-auto— the gateway picks the tier by difficulty. Only pass an explicit tier (cognitum-low|mid|high) when you must force one. - Prompt-wrapping does not inflate cost — the gateway normalizes host scaffolds so an
everyday sub-task still routes to the cheap tier. Trust
cognitum-auto. - Use
metallm_delegatefor agentic sub-tasks needing tools/files in a working dir (itscwdis sandboxed); usemetallm_askfor a single-shot question — it returns the gateway's real metered cost + resolved tier/model in-band. - Reserve the main (inline) session for orchestration, integration, and final review; push expensive per-sub-task reasoning through the gateway.
Setup (per developer, local — never committed): register the metallm-dev-bridge MCP
server via a local .mcp.json (gitignored) and export your gateway key as COGNITUM_DEV_KEY
in your shell. Build steps + the exact .mcp.json block are in the internal meta-llm
dev-bridge README. Never commit the key or an inline gateway URL.
ask vs delegate — pick by task shape (load-bearing)
Use metallm_ask for single-shot facts, summaries, classification, and small code
questions. Use metallm_delegate only when the task needs autonomous multi-step execution
or isolated agent context.
Why the split is strict: metallm_delegate spawns a full claude -p sub-agent, which loads
its entire harness context even for a trivial task — measured floor ≈ $0.26/call
(~43k input tokens) before any real work. metallm_ask is a single gateway completion —
measured ≈ $0.0001 for a small query, ~2500× cheaper. So delegating casually is
expensive at volume; delegate pays off only when offloading the sub-task's context from
the main session is worth the floor. When in doubt, ask.
Routing caveat (tracked): metallm_ask auto currently over-tiers some trivial prompts to
mid (sonnet-5) instead of low — the bridge's /v1/messages path may miss ADR-236
host-normalization (meta-llm issue #38). Forced tiers work correctly; cost impact is small
per call but real at volume.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

