memory-optimization SKILL.md skillA
memory-optimization from eric-cielo/moflo is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add eric-cielo/moflo/memory-optimization@git:20260515.d04f7b2Pins git:20260515.d04f7b2 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- eric-cielo/moflo
- Path
.claude/skills/memory-optimization/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260515.d04f7b2, committed May 15, 2026
- First version recorded
- Apr 22, 2026
- Size
- 5,020 bytes
- Repository stars
- 19
- License
- MIT
Tune moflo's memory stack for speed, RAM, and index quality. Covers HNSW parameters (M, efConstruction, ef), vector quantization, batch operations, and common bottlenecks. Use when scaling past ~100k entries or when search latency regresses.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# MoFlo Memory Optimization
When the default moflo memory settings stop being enough — past ~100k entries, or when p95 search latency climbs — these are the levers.
## HNSW Parameters
HNSW has three knobs. They trade build time, query time, memory, and recall.
```typescript
import { HNSWIndex } from 'moflo/dist/src/cli/memory/index.js';
const index = new HNSWIndex({
dimensions: 1536, // must match your embedding model
maxElements: 1_000_000, // pre-allocated capacity
M: 16, // graph connectivity (default 16)
efConstruction: 200, // build-time search width (default 200)
metric: 'cosine', // 'cosine' | 'l2' | 'ip'
});
```
| Knob | Higher | Lower | When to change |
|------|--------|-------|----------------|
| `M` | better recall, more RAM (~2×M pointers per point) | less RAM, worse recall | Bump to 32–64 if recall@10 < 0.95; drop to 8 if memory-bound |
| `efConstruction` | better index quality, slower build | faster build, worse queries | 200–400 is sweet spot; only lower in test fixtures |
…Read the whole file at its exact version.
How to install
mdr add eric-cielo/moflo/memory-optimization@sha256:2bead0eafc6a3e35The line at the top of this page pins the label git:20260515.d04f7b2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_qjrv2tkap3kfwhyy)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Apr 22, 2026 and May 15, 2026, about one every 12 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260515.d04f7b2 latest | 2026-05-15 | d04f7b2 | 5,020 B | A | view · diff |
| git:20260427.573835c | 2026-04-27 | 573835c | 5,015 B | A | view · diff |
| git:20260422.6905d8b | 2026-04-22 | 6905d8b | 4,987 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5020 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
eric-cielo/moflo · 19 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_qjrv2tkap3kfwhyy GET https://markdownregistry.com/api/v1/resolve?ref=eric-cielo/moflo/memory-optimization GET https://markdownregistry.com/api/v1/blob/2bead0eafc6a3e3572dc9dd9f357001d0f6bb62ef4a7637b145b972cb066147a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.