Agent skill · AI & Agents

AgentDB Performance Optimization

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

rUv71,307★ · +1,002/wk · 3 repos on radarProfile →
claude-codecodexMIT
Install
npx skills add ruvnet/ruflo --skill agentdb-optimization --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 12 KB
Bundled scripts: none
Path: .agents/skills/agentdb-optimization/SKILL.md
Open the folder on GitHub →
Where it comes from
Source: ruvnet/ruflo
Stars: 67,015 · +629 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# AgentDB Performance Optimization ## What This Skill Does Provides comprehensive performance optimization techniques for AgentDB vector databases. Achieve 150x-12,500x performance improvements through quantization, HNSW indexing, caching strategies, and batch operations. Reduce memory usage by 4-32x while maintaining accuracy. **Performance**: <100µs vector search, <1ms pattern retrieval, 2ms batch insert for 100 vectors. ## Prerequisites - Node.js 18+ - AgentDB v1.0.7+ (via agentic-flow) - Existing AgentDB database or application --- ## Quick Start ### Run Performance Benchmarks ```bash # Comprehensive performance benchmarking npx agentdb@latest benchmark # Results show: # ✅ Pattern Search: 150x faster (100µs vs 15ms) # ✅ Batch Insert: 500x faster (2ms vs 1s for 100 vectors) # ✅ Large-scale Query: 12,500x faster (8ms vs 100s at 1M vectors) # ✅ Memory Efficiency: 4-32x reduction with quantization ``` ### Enable Optimizations ```typescript import { createAgentDBAdapter } from 'agentic-flow$reasoningbank'; // Optimized configuration const adapter = await createAgentDBAdapter({ dbPath: '.agentdb$optimized.db', quantizationType: 'binary', // 32x memory reduction cacheSize: 1000, // In

What's inside
Steps it walks through
  1. What This Skill Does
  2. Prerequisites
  3. Quick Start
  4. Run Performance Benchmarks
  5. Enable Optimizations
  6. Quantization Strategies
  7. 1. Binary Quantization (32x Reduction)
  8. 2. Scalar Quantization (4x Reduction)
  9. 3. Product Quantization (8-16x Reduction)
  10. 4. No Quantization (Full Precision)
  11. HNSW Indexing
  12. Automatic HNSW
  13. HNSW Parameters
  14. Caching Strategies
Commands it runs
Comprehensive performance benchmarking
npx agentdb@latest benchmark
Results show:
Get comprehensive stats
npx agentdb@latest stats .agentdb$vectors.db
Total Patterns: 125,430
Database Size: 47.2 MB (with binary quantization)
Avg Confidence: 0.87
Cache Hit Rate: 84%
Index Type: HNSW
More from ruflo
All skills →
About this skill
What does the AgentDB Performance Optimization skill do?

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

How do I install it?

Run `npx skills add ruvnet/ruflo --skill agentdb-optimization --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ruvnet/ruflo, a repository with 67,015 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going