Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

agentdb-optimization

Skill by ruvnet

Explains how to tune AgentDB, a vector database, for lower memory use and faster search. It covers quantization, HNSW indexing, caching and batch operations. Aimed at developers scaling AgentDB to large vector sets.

  • Score 91
  • 83k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install agentdb-optimization

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ruvnet/ruflo /tmp/ruflo && mkdir -p ~/.claude/skills && cp -r /tmp/ruflo/.claude/skills/agentdb-optimization ~/.claude/skills/agentdb-optimization

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install agentdb-optimization in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The agentdb-optimization skill gives an AI assistant guidance on tuning AgentDB, a vector database. It describes four quantization options: binary, scalar, product and none. Each option trades some accuracy for lower memory use, according to the source. It also covers HNSW index parameters (M, efConstruction and efSearch), an in-memory pattern cache, batch inserts and retrievals, and pruning of low-value patterns.

The skill includes a benchmark command and a stats command, along with recipes for maximum speed, maximum accuracy and memory-constrained devices. It also lists scaling presets for dataset sizes from under 10K vectors to over 1M. The source names developers who need to reduce memory use, speed up search or scale to millions of vectors as the audience. It requires Node.js 18 or later and AgentDB v1.0.7 or later via agentic-flow.

Written from the project's SKILL.md and checked against it.

What it can do

  • Binary quantizationReduces vector memory by about 32x, with an accuracy loss the source puts at about 2-5%.
  • Scalar quantizationReduces memory by about 4x with an accuracy loss the source puts at about 1-2%.
  • Product quantizationReduces memory by about 8-16x for high-dimensional vectors, per the source.
  • HNSW index tuningSets M, efConstruction and efSearch to balance recall, build quality and search speed.
  • Pattern cacheKeeps frequently used patterns in memory and reports a cache hit rate.
  • Batch operationsGroups inserts and parallel retrievals to reduce per-item overhead.
  • Consolidation and pruningMerges similar patterns and removes low-confidence or old patterns.
  • Performance benchmarksRuns an AgentDB benchmark command and a stats command for database size and latency.

What you need

  • Node.js 18 or later
  • AgentDB v1.0.7 or later via agentic-flow
  • An existing AgentDB database or application

Try asking

  • Show me how to enable binary quantization for my AgentDB database
  • Suggest HNSW settings for an AgentDB index with about 100K vectors
  • Run the AgentDB benchmark and explain what the results mean

Good to know

  • Quantization reduces accuracy, and the source gives approximate loss ranges per method.
  • Benchmark figures come from a single test system: AMD Ryzen 9 5950X with 64GB RAM.
  • Cache hit rate target and performance numbers are the source's own claims and are not independently verified.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/agentdb-optimization/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB

Alternatives to agentdb-optimization

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

agentdb-optimization: common questions

What quantization type should I use to save memory in AgentDB?

The source recommends binary quantization for large deployments and memory-constrained setups, with about 32x memory reduction. It notes an accuracy loss of roughly 2-5% for that option.

What HNSW settings does the skill suggest for large datasets?

For datasets above 100K vectors, the source suggests M = 32. For more than 1M vectors, it suggests product quantization, M = 48 and efConstruction = 400.

Which versions does this AgentDB optimization skill need?

The source lists Node.js 18 or later and AgentDB v1.0.7 or later, used via agentic-flow.

How do I install agentdb-optimization?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is agentdb-optimization free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is agentdb-optimization safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to agentdb-optimization?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

agentdb-optimization Install

Add to stack

Loading.