AgentDB Advanced Features
Skill79k starsChanged 24 days agoMITView on GitHub
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid search, and distributed systems integration. Use when building distributed AI systems, multi-agent coordination, or advanced vector search applications.
33 other projects use a version of this, 2 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- poizoncoded/skillsword for word, first seen Nov 1, 2026
- OpenxIntelligence/Coding-Agent-Skillsword for word, first seen Nov 1, 2026
- proffesor-for-testing/agentic-qeword for word, first seen Oct 25, 2026
- I-Onlabs/claude-code-skillsword for word, first seen Oct 25, 2026
- alexandremaciel-ai/openclaw-dashboard-v2word for word, first seen Oct 15, 2026
- Arzeroe/Claude-skillsword for word, first seen Oct 13, 2026
Who's talking about ruvnet/ruflo
- Kaya Rezende“Claude Code with RuFlo v3.5: Enterprise AI Orchestration Platform”YouTube · Mar 31, 2026 · 35k views
- Hungry Labs“ruflo: Turn Claude Code into a Swarm of 100 AI Agents”YouTube · May 3, 2026 · 14k views
- Alex Hitt“Ruflo GitHub Setup Guide: Register Claude Flow MCP and Verify Persistent Memory Recall”YouTube · Aug 24, 2026 · 4.5k views
- @BytesAndBricks“Ruflo Explained: Multi-Agent AI Orchestration for Claude Code & Beyond”YouTube · Jun 15, 2026 · 1.8k views
- Kuro“Ruflo - Multi-Agent AI Harness for Claude Code & Codex”YouTube · Jun 6, 2026 · 1.5k views
The biggest 5 of 88 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 88
Talked about on Bluesky, YouTube, the web and Hacker News (88 times).
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 YouTube · 23
- Mar 31, 2026Claude Code with RuFlo v3.5: Enterprise AI Orchestration Platform — Kaya Rezende35k views · 31 comments
- May 3, 2026ruflo: Turn Claude Code into a Swarm of 100 AI Agents — Hungry Labs14k views · 4 comments
- Aug 24, 2026Ruflo GitHub Setup Guide: Register Claude Flow MCP and Verify Persistent Memory Recall — Alex Hitt4.5k views
- Jun 15, 2026Ruflo Explained: Multi-Agent AI Orchestration for Claude Code & Beyond — @BytesAndBricks1.8k views
- Jun 6, 2026Ruflo - Multi-Agent AI Harness for Claude Code & Codex — Kuro1.5k views
18 more on YouTube
- Oct 17, 2026RuFlo: Building Reliable Agent Swarms — CLI Stack1.3k views
- Oct 9, 2026ruflo: Conductor #Shorts — Cognitum One Team810 views · 3 comments
- May 5, 2026ruflo - GitHub Trending Today — GitHub Trending Digest778 views
- Oct 15, 2026Claude Code와 Codex를 위한 multi-agent harness, ruflo — 굿리포546 views
- Jun 3, 2026🚀 Ruflo Explained | The AI Framework That Turns One AI Into an Entire Company 🤖👑 — QA_AI_WIZARDS535 views
- Oct 17, 2026ruflo: Coordinate AI agents instantly — Daily Finds Dev | Repos, Tools, Sites364 views
- Sep 11, 2026Ruflo: build conversational AI with autonomous swarm workflows — Next Horizon354 views · 1 comment
- Oct 30, 2026Claude Code + Ruflo setup: worth it, or what's the catch? — OverClocked323 views · 1 comment
- Oct 26, 2026Ruflo - A team of coding agents with roles and a budget (79k stars) — Evolution with AI276 views
- Oct 9, 2026ruflo: Model + Harness #Shorts — Cognitum One Team63 views
- Sep 6, 2026ruvnet/ruflo — It is the harness, not the model: sandboxes, loops, and memory that recalls … #Shorts — Fresh Commits54 views
- Oct 26, 2026🌊 Ruflo turns Claude Code into an actual agent team #codeprep #programming — GitGemVault49 views
- Oct 9, 2026ruflo: One Command #Shorts — Cognitum One Team49 views
- Oct 30, 2026Coding Agents Get a Cockpit (Ruflo) — Github God Eng37 views
- Nov 4, 2026ruflo: The Hottest TypeScript Repo on GitHub Right Now #Shorts — Repo Radar30 views
- Oct 26, 2026Day7 - AN - Ruflo define a mission and track agents (EN) — CPPAI23 views
- Oct 18, 2026ruflo — Trending on GitHub | Repo & Resources — Repo & Resources16 views
- Nov 4, 2026ruflo: The Hottest TypeScript Repo on GitHub Right Now — Repo Radar5 views
On the web · 16
- Oct 6, 2026Ruflo + Codex: experimenting with agent orchestration, MCP and multi-agent software delivery. — linkedin.com
- Oct 5, 2026ruflo 입문 가이드 — Claude Code 멀티 에이전트 오케스트레이션 시작 — dev-post.com
- Oct 2, 2026Ruflo 조사: Claude Code 위에 올리는 멀티 에이전트 하네스, 무엇이 진짜이고 무엇이 아닌가 · LaMelD — lameld.github.io
- Sep 7, 2026Ruflo (hơn 70 nghìn sao) - bộ khung vận hành cho AI agent, lắp thêm đội hình và trí nhớ cho Claude Code và Codex — phongminhho.substack.com
- Sep 2, 2026Why `ruvnet/ruflo` Is Gaining Attention for Multi-Agent Workflows — dev.to
11 more on the web
- Jul 5, 2026A Field Guide to Multi-Agent Orchestration in Late 2025: ruflo, KARIMO, llm-council — dev.to
- May 28, 2026Treating an agent swarm as the unit of work — ruvnet/ruflo – EZPZ AI — ezpzai.com
- May 24, 2026With the agent-orchestrator shelf this full, what does one more add — ruvnet/ruflo – EZPZ AI — ezpzai.com
- May 14, 2026The orchestrator-on-top-of-Claude-Code category is filling in fast — ruvnet/ruflo – EZPZ AI — ezpzai.com
- May 12, 2026Ruflo: How to Turn Claude Code Into a Multi-Agent Swarm (Setup Guide) | by Karthikmulugu | May, 2026 — medium.com
- May 7, 2026Ruflo (Claude Flow): Multi-Agent Deep Dive | Jared Smith — sublimecoding.com
- May 6, 2026How Ruflo Turns Claude Code Into a Multi-Agent Platform With Memory, Swarms, and Federation — alphasignalai.substack.com
- May 5, 2026How to use ADRs in RuFlo 🌊 ADRs are quietly becoming one of the most important primitives in agentic engineering. — linkedin.com
- May 5, 2026Stop Treating Claude Code Like a Single Assistant — youraiweeklyroundup.substack.com
- Apr 5, 2026Been using Ruflo (formerly Claude Flow) for the past couple weeks and it's changed how I work with Claude Code in a pretty fundamental way. | Devesh Jaluka — linkedin.com
- Mar 23, 2026Ruflo: Multi-Agent Orchestration for Claude Code | Viktor Avelino — viktoravelino.com
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
Other versions33 projects use a version of this.
Word for word · 31
- ruvnet/wifi-densepose★ 103k100% same
- ruvnet/RuView★ 103k100% same
- ruvnet/claude-flow★ 80k100% same
- ruvnet/ruvector★ 4.7k100% same
- ruvnet/RuVector★ 4.7k100% same
- ruvnet/agentic-flow★ 838100% same
- proffesor-for-testing/agentic-qe★ 524100% same
- ruvnet/ruv-FANN★ 388100% same
- spencermarx/open-code-review★ 382100% same
- chatman-media/timeline-studio★ 224100% same
21 more not listed
Edited · 2
- Zekiog/ruflo★ 299% same
- jpoindexter/theft-kit★ 199% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository177 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 144
When vector magnitude matters
- Distinctive: line 167
When vectors are already unit-length
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
AgentDB Advanced Features
What This Skill Does
Covers advanced AgentDB capabilities for distributed systems, multi-database coordination, custom distance metrics, hybrid search (vector + metadata), QUIC synchronization, and production deployment patterns. Enables building sophisticated AI systems with sub-millisecond cross-node communication and advanced search capabilities.
Performance: <1ms QUIC sync, hybrid search with filters, custom distance metrics.
Prerequisites
- Node.js 18+
- AgentDB v1.0.7+ (via agentic-flow)
- Understanding of distributed systems (for QUIC sync)
- Vector search fundamentals
QUIC Synchronization
What is QUIC Sync?
QUIC (Quick UDP Internet Connections) enables sub-millisecond latency synchronization between AgentDB instances across network boundaries with automatic retry, multiplexing, and encryption.
Benefits:
- <1ms latency between nodes
- Multiplexed streams (multiple operations simultaneously)
- Built-in encryption (TLS 1.3)
- Automatic retry and recovery
- Event-based broadcasting
Enable QUIC Sync
import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';
// Initialize with QUIC synchronization
const adapter = await createAgentDBAdapter({
dbPath: '.agentdb/distributed.db',
enableQUICSync: true,
syncPort: 4433,
syncPeers: [
'192.168.1.10:4433',
'192.168.1.11:4433',
'192.168.1.12:4433',
],
});
// Patterns automatically sync across all peers
await adapter.insertPattern({
// ... pattern data
});
// Available on all peers within ~1msQUIC Configuration
const adapter = await createAgentDBAdapter({
enableQUICSync: true,
syncPort: 4433, // QUIC server port
syncPeers: ['host1:4433'], // Peer addresses
syncInterval: 1000, // Sync interval (ms)
syncBatchSize: 100, // Patterns per batch
maxRetries: 3, // Retry failed syncs
compression: true, // Enable compression
});Multi-Node Deployment
# Node 1 (192.168.1.10)
AGENTDB_QUIC_SYNC=true \
AGENTDB_QUIC_PORT=4433 \
AGENTDB_QUIC_PEERS=192.168.1.11:4433,192.168.1.12:4433 \
node server.js
# Node 2 (192.168.1.11)
AGENTDB_QUIC_SYNC=true \
AGENTDB_QUIC_PORT=4433 \
AGENTDB_QUIC_PEERS=192.168.1.10:4433,192.168.1.12:4433 \
node server.js
# Node 3 (192.168.1.12)
AGENTDB_QUIC_SYNC=true \
AGENTDB_QUIC_PORT=4433 \
AGENTDB_QUIC_PEERS=192.168.1.10:4433,192.168.1.11:4433 \
node server.jsDistance Metrics
Cosine Similarity (Default)
Best for normalized vectors, semantic similarity:
# CLI
npx agentdb@latest query ./vectors.db "[0.1,0.2,...]" -m cosine
# API
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
metric: 'cosine',
k: 10,
});Use Cases:
- Text embeddings (BERT, GPT, etc.)
- Semantic search
- Document similarity
- Most general-purpose applications
Formula: cos(θ) = (A · B) / (||A|| × ||B||)
Range: [-1, 1] (1 = identical, -1 = opposite)
Euclidean Distance (L2)
Best for spatial data, geometric similarity:
# CLI
npx agentdb@latest query ./vectors.db "[0.1,0.2,...]" -m euclidean
# API
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
metric: 'euclidean',
k: 10,
});Use Cases:
- Image embeddings
- Spatial data
- Computer vision
- When vector magnitude matters
Formula: d = √(Σ(ai - bi)²)
Range: [0, ∞] (0 = identical, ∞ = very different)
Dot Product
Best for pre-normalized vectors, fast computation:
# CLI
npx agentdb@latest query ./vectors.db "[0.1,0.2,...]" -m dot
# API
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
metric: 'dot',
k: 10,
});Use Cases:
- Pre-normalized embeddings
- Fast similarity computation
- When vectors are already unit-length
Formula: dot = Σ(ai × bi)
Range: [-∞, ∞] (higher = more similar)
Custom Distance Metrics
// Implement custom distance function
function customDistance(vec1: number[], vec2: number[]): number {
// Weighted Euclidean distance
const weights = [1.0, 2.0, 1.5, ...];
let sum = 0;
for (let i = 0; i < vec1.length; i++) {
sum += weights[i] * Math.pow(vec1[i] - vec2[i], 2);
}
return Math.sqrt(sum);
}
// Use in search (requires custom implementation)Hybrid Search (Vector + Metadata)
Basic Hybrid Search
Combine vector similarity with metadata filtering:
// Store documents with metadata
await adapter.insertPattern({
id: '',
type: 'document',
domain: 'research-papers',
pattern_data: JSON.stringify({
embedding: documentEmbedding,
text: documentText,
metadata: {
author: 'Jane Smith',
year: 2025,
category: 'machine-learning',
citations: 150,
}
}),
confidence: 1.0,
usage_count: 0,
success_count: 0,
created_at: Date.now(),
last_used: Date.now(),
});
// Hybrid search: vector similarity + metadata filters
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'research-papers',
k: 20,
filters: {
year: { $gte: 2023 }, // Published 2023 or later
category: 'machine-learning', // ML papers only
citations: { $gte: 50 }, // Highly cited
},
});Advanced Filtering
// Complex metadata queries
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'products',
k: 50,
filters: {
price: { $gte: 10, $lte: 100 }, // Price range
category: { $in: ['electronics', 'gadgets'] }, // Multiple categories
rating: { $gte: 4.0 }, // High rated
inStock: true, // Available
tags: { $contains: 'wireless' }, // Has tag
},
});Weighted Hybrid Search
Combine vector and metadata scores:
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'content',
k: 20,
hybridWeights: {
vectorSimilarity: 0.7, // 70% weight on semantic similarity
metadataScore: 0.3, // 30% weight on metadata match
},
filters: {
category: 'technology',
recency: { $gte: Date.now() - 30 * 24 * 3600000 }, // Last 30 days
},
});Multi-Database Management
Multiple Databases
// Separate databases for different domains
const knowledgeDB = await createAgentDBAdapter({
dbPath: '.agentdb/knowledge.db',
});
const conversationDB = await createAgentDBAdapter({
dbPath: '.agentdb/conversations.db',
});
const codeDB = await createAgentDBAdapter({
dbPath: '.agentdb/code.db',
});
// Use appropriate database for each task
await knowledgeDB.insertPattern({ /* knowledge */ });
await conversationDB.insertPattern({ /* conversation */ });
await codeDB.insertPattern({ /* code */ });Database Sharding
// Shard by domain for horizontal scaling
const shards = {
'domain-a': await createAgentDBAdapter({ dbPath: '.agentdb/shard-a.db' }),
'domain-b': await createAgentDBAdapter({ dbPath: '.agentdb/shard-b.db' }),
'domain-c': await createAgentDBAdapter({ dbPath: '.agentdb/shard-c.db' }),
};
// Route queries to appropriate shard
function getDBForDomain(domain: string) {
const shardKey = domain.split('-')[0]; // Extract shard key
return shards[shardKey] || shards['domain-a'];
}
// Insert to correct shard
const db = getDBForDomain('domain-a-task');
await db.insertPattern({ /* ... */ });MMR (Maximal Marginal Relevance)
Retrieve diverse results to avoid redundancy:
// Without MMR: Similar results may be redundant
const standardResults = await adapter.retrieveWithReasoning(queryEmbedding, {
k: 10,
useMMR: false,
});
// With MMR: Diverse, non-redundant results
const diverseResults = await adapter.retrieveWithReasoning(queryEmbedding, {
k: 10,
useMMR: true,
mmrLambda: 0.5, // Balance relevance (0) vs diversity (1)
});MMR Parameters:
mmrLambda = 0: Maximum relevance (may be redundant)mmrLambda = 0.5: Balanced (default)mmrLambda = 1: Maximum diversity (may be less relevant)
Use Cases:
- Search result diversification
- Recommendation systems
- Avoiding echo chambers
- Exploratory search
Context Synthesis
Generate rich context from multiple memories:
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'problem-solving',
k: 10,
synthesizeContext: true, // Enable context synthesis
});
// ContextSynthesizer creates coherent narrative
console.log('Synthesized Context:', result.context);
// "Based on 10 similar problem-solving attempts, the most effective
// approach involves: 1) analyzing root cause, 2) brainstorming solutions,
// 3) evaluating trade-offs, 4) implementing incrementally. Success rate: 85%"
console.log('Patterns:', result.patterns);
// Extracted common patterns across memoriesProduction Patterns
Connection Pooling
// Singleton pattern for shared adapter
class AgentDBPool {
private static instance: AgentDBAdapter;
static async getInstance() {
if (!this.instance) {
this.instance = await createAgentDBAdapter({
dbPath: '.agentdb/production.db',
quantizationType: 'scalar',
cacheSize: 2000,
});
}
return this.instance;
}
}
// Use in application
const db = await AgentDBPool.getInstance();
const results = await db.retrieveWithReasoning(queryEmbedding, { k: 10 });Error Handling
async function safeRetrieve(queryEmbedding: number[], options: any) {
try {
const result = await adapter.retrieveWithReasoning(queryEmbedding, options);
return result;
} catch (error) {
if (error.code === 'DIMENSION_MISMATCH') {
console.error('Query embedding dimension mismatch');
// Handle dimension error
} else if (error.code === 'DATABASE_LOCKED') {
// Retry with exponential backoff
await new Promise(resolve => setTimeout(resolve, 100));
return safeRetrieve(queryEmbedding, options);
}
throw error;
}
}Monitoring and Logging
// Performance monitoring
const startTime = Date.now();
const result = await adapter.retrieveWithReasoning(queryEmbedding, { k: 10 });
const latency = Date.now() - startTime;
if (latency > 100) {
console.warn('Slow query detected:', latency, 'ms');
}
// Log statistics
const stats = await adapter.getStats();
console.log('Database Stats:', {
totalPatterns: stats.totalPatterns,
dbSize: stats.dbSize,
cacheHitRate: stats.cacheHitRate,
avgSearchLatency: stats.avgSearchLatency,
});CLI Advanced Operations
Database Import/Export
# Export with compression
npx agentdb@latest export ./vectors.db ./backup.json.gz --compress
# Import from backup
npx agentdb@latest import ./backup.json.gz --decompress
# Merge databases
npx agentdb@latest merge ./db1.sqlite ./db2.sqlite ./merged.sqliteDatabase Optimization
# Vacuum database (reclaim space)
sqlite3 .agentdb/vectors.db "VACUUM;"
# Analyze for query optimization
sqlite3 .agentdb/vectors.db "ANALYZE;"
# Rebuild indices
npx agentdb@latest reindex ./vectors.dbEnvironment Variables
# AgentDB configuration
AGENTDB_PATH=.agentdb/reasoningbank.db
AGENTDB_ENABLED=true
# Performance tuning
AGENTDB_QUANTIZATION=binary # binary|scalar|product|none
AGENTDB_CACHE_SIZE=2000
AGENTDB_HNSW_M=16
AGENTDB_HNSW_EF=100
# Learning plugins
AGENTDB_LEARNING=true
# Reasoning agents
AGENTDB_REASONING=true
# QUIC synchronization
AGENTDB_QUIC_SYNC=true
AGENTDB_QUIC_PORT=4433
AGENTDB_QUIC_PEERS=host1:4433,host2:4433Troubleshooting
Issue: QUIC sync not working
# Check firewall allows UDP port 4433
sudo ufw allow 4433/udp
# Verify peers are reachable
ping host1
# Check QUIC logs
DEBUG=agentdb:quic node server.jsIssue: Hybrid search returns no results
// Relax filters
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
k: 100, // Increase k
filters: {
// Remove or relax filters
},
});Issue: Memory consolidation too aggressive
// Disable automatic optimization
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
optimizeMemory: false, // Disable auto-consolidation
k: 10,
});Learn More
- QUIC Protocol: docs/quic-synchronization.pdf
- Hybrid Search: docs/hybrid-search-guide.md
- GitHub: https://github.com/ruvnet/agentic-flow/tree/main/packages/agentdb
- Website: https://agentdb.ruv.io
Category: Advanced / Distributed Systems Difficulty: Advanced Estimated Time: 45-60 minutes
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.

