# Vector Memory

> Vector Memory is an Agent Skill for agent building published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

HNSW vector search for pattern similarity retrieval and knowledge graph maintenance with PageRank scoring, community detection, and 3-tier memory management.

- Skill name: `vector-memory`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/a5c-ai/babysitter/blob/HEAD/library/methodologies/ruflo/skills/vector-memory/SKILL.md
- Repository: a5c-ai/babysitter (1,548 GitHub stars when collected)

## SKILL.md

- Building and querying knowledge graphs for project context
- Managing cross-session memory across project/local/user scopes
- Fast similarity search for routing decisions

## HNSW Performance

- Search latency: ~61 microseconds
- Query throughput: ~16,400 QPS
- Configurable embedding dimensions (default: 128)

## Knowledge Graph

- **PageRank**: Importance scoring for knowledge nodes
- **Community Detection**: Cluster related patterns
- **LRU Cache**: Fast access to frequently used patterns
- **SQLite Backing**: Persistent cross-session storage

## 3-Tier Memory

| Scope | Persistence | Content |
|-------|------------|---------|
| Project | Codebase-level | Patterns, architecture decisions, dependencies |
| Local | Session-level | Context, adaptations, temporary patterns |
| User | Cross-project | Preferences, learned behaviors, global patterns |

## Agents Used

- `agents/optimizer/` - Memory and cache optimization

## Tool Use

Invoke via babysitter process: `methodologies/ruflo/ruflo-intelligence`

---

Source: https://www.openparable.com/skill/agent-building/vector-memory (OpenParable). Cite the canonical URL above.
