Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Memory Management

  • 1.1k installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

Memory Management is an agent skill that persists agent patterns and retrieves semantically similar past solutions using AgentDB HNSW memory through the @claude-flow/cli memory commands.

About

Memory Management is a ruflo skill from ruvnet/ruflo that wraps @claude-flow/cli memory operations for AgentDB with HNSW indexing. Bundled shell scripts export memory to timestamped JSON backups via npx @claude-flow/cli memory export, run consolidation through hooks worker dispatch with a consolidate trigger, and report stats after optimization. Developers reach for Memory Management when coding agents must recall semantically similar prior solutions, back up memory state before risky changes, or prune and consolidate growing pattern stores. The skill integrates with the broader claude-flow hook and worker system rather than ad-hoc file copies. It suits teams running multi-session agent swarms that accumulate reusable patterns worth retrieving by similarity instead of exact string match.

  • AgentDB memory with HNSW vector search for semantic pattern lookup
  • Documented 150x–12,500x faster pattern retrieval positioning in skill frontmatter
  • CLI flows: `memory export`, consolidation via worker dispatch, `memory stats`
  • Triggers on storing successes, sharing knowledge between agents, and building a knowledge base
  • Explicit skip guidance for ephemeral one-off tasks with no learning value

Memory Management by the numbers

  • 1,060 all-time installs (skills.sh)
  • +3 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #990 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill memory-management

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars67k
Security audit2 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you persist and search agent memory with HNSW?

Persist agent patterns and retrieve semantically similar past solutions with AgentDB HNSW memory via the claude-flow CLI.

Who is it for?

Developers running claude-flow agent swarms who need HNSW semantic recall, backup exports, and consolidation of AgentDB memory.

Skip if: Projects without @claude-flow/cli installed that only need simple markdown note files instead of vector agent memory.

When should I use this skill?

The user asks to back up agent memory, consolidate claude-flow patterns, or retrieve similar past solutions from AgentDB.

What you get

Timestamped memory JSON backups, consolidated AgentDB store, memory stats report, and semantically retrieved past agent patterns.

  • Timestamped memory JSON backup
  • Consolidated memory store
  • Memory stats output

Files

SKILL.mdMarkdownGitHub ↗

Memory Management Skill

Purpose

AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.

When to Trigger

  • need to store successful patterns
  • searching for similar solutions
  • semantic lookup of past work
  • learning from previous tasks
  • sharing knowledge between agents
  • building knowledge base

When to Skip

  • no learning needed
  • ephemeral one-off tasks
  • external data sources available
  • read-only exploration

Commands

Store Pattern

Store a pattern or knowledge item in memory

npx @claude-flow/cli memory store --key "[key]" --value "[value]" --namespace patterns

Example:

npx @claude-flow/cli memory store --key "auth-jwt-pattern" --value "JWT validation with refresh tokens" --namespace patterns

Semantic Search

Search memory using semantic similarity

npx @claude-flow/cli memory search --query "[search terms]" --limit 10

Example:

npx @claude-flow/cli memory search --query "authentication best practices" --limit 5

Retrieve Entry

Retrieve a specific memory entry by key

npx @claude-flow/cli memory get --key "[key]" --namespace [namespace]

Example:

npx @claude-flow/cli memory get --key "auth-jwt-pattern" --namespace patterns

List Entries

List all entries in a namespace

npx @claude-flow/cli memory list --namespace [namespace]

Example:

npx @claude-flow/cli memory list --namespace patterns --limit 20

Delete Entry

Delete a memory entry

npx @claude-flow/cli memory delete --key "[key]" --namespace [namespace]

Initialize HNSW Index

Initialize HNSW vector search index

npx @claude-flow/cli memory init --enable-hnsw

Memory Stats

Show memory usage statistics

npx @claude-flow/cli memory stats

Export Memory

Export memory to JSON

npx @claude-flow/cli memory export --output memory-backup.json

Scripts

ScriptPathDescription
memory-backup.agents/scripts/memory-backup.shBackup memory to external storage
memory-consolidate.agents/scripts/memory-consolidate.shConsolidate and optimize memory

References

DocumentPathDescription
HNSW Guidedocs/hnsw.mdHNSW vector search configuration
Memory Schemadocs/memory-schema.mdMemory namespace and schema reference

Best Practices

1. Check memory for existing patterns before starting 2. Use hierarchical topology for coordination 3. Store successful patterns after completion 4. Document any new learnings

Related skills

Forks & variants (1)

Memory Management has 1 known copy in the catalog totaling 96 installs. They canonicalize to this original listing.

How it compares

Pick Memory Management for claude-flow AgentDB HNSW workflows; use YAML fact skills when structured supersession beats vector similarity.

FAQ

What CLI does Memory Management use for exports?

Memory Management runs npx @claude-flow/cli memory export --output to write timestamped JSON backups. Bundled scripts default to a ./.backups directory and name files memory_YYYYMMDD_HHMMSS.json.

How does Memory Management retrieve past agent solutions?

Memory Management leverages AgentDB HNSW memory through @claude-flow/cli so agents find semantically similar prior patterns. Consolidation is triggered via hooks worker dispatch with a consolidate trigger before stats are printed.

Is Memory Management safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.