Skip to content
Back to skills

Leann Vector

ASecurity

Compact selective-recomputation vector indexing for codebases and memory

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspythongosqldatabase

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add D-Shey/autoharness --skill leann-vector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Leann Vector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Leann Vector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-shey-leann-vector/badge)](https://www.skillsdirectory.com/skills/d-shey-leann-vector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: leann-vector
description: Compact selective-recomputation vector indexing for codebases and memory
---

# leann-vector

## When to use
Use when semantic search across code or project memory requires vector similarity without the disk/memory overhead of traditional vector databases (Chroma, Pinecone) or external daemon requirements.

## Steps
1. Parse text into semantic documents with metadata (source file, doc kind, symbols, updated timestamp).
2. Tokenize and extract subword character n-grams and normalized terms to capture morphological variations.
3. Compute compact sparse term-frequency vectors or hashing embeddings:
   - Zero runtime dependencies: pure standard library Python vectorizer with hash-trick projection into compact dimensionality (e.g. 256 or 512 dimensions).
   - L2 normalization for fast cosine similarity via dot product: `dot(v1, v2) / (|v1| * |v2|)`.
4. Store compact vectors in `.autoharness/vector.db` (SQLite) or alongside `.autoharness/memory.db`.
5. Implement selective recomputation: store lightweight text references and compute vectors on-the-fly or cache compact quantized hashes, saving up to 97% storage compared to dense float matrices.
6. Provide fast top-K nearest neighbor search by cosine distance.

## How to verify
1. Test semantic similarity: queries with synonym or paraphrased intent (e.g. "remove cycles from task graph") must rank topological sorter documents highly even without exact keyword matches.
2. Test vector normalization: verify dot product of identical vectors equals 1.0, orthogonal vectors equals 0.0.
3. Test storage footprint: verify database size remains compact (< 100 KB for typical projects).

## Facts found here
- LEANN architecture (MLsys 2026 Best Paper: arxiv.org/abs/2506.08276) achieves 97% savings by storing graph representations and selective recomputation rather than dense uncompressed matrices.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.