mindforge:embeddings

mindforge:embeddings is a command for Claude Code from sairam0424/MindForge. It costs 49 tokens per session (605 once invoked), scanned A, original, MIT.

An architecture planning command for embeddings and vector search. Embeddings turn content into numeric representations so a system can find related meaning, while vector databases store and search those representations.

In plain words
What is it for?
Use it to design semantic search, hybrid search, indexing, query optimization, and vector storage with tools such as Pinecone, Weaviate, Qdrant, or pgvector.
Why use it?
It helps choose an embedding model, vector database, indexing method, and search approach. It also covers combining meaning-based search with keyword matching.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sairam0424/mindforge/embeddings
Clone the repo
git clone --depth 1 https://github.com/sairam0424/MindForge

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mindforge:embeddings

README.md
[![agentmods](https://agentmods.dev/badge/commands/sairam0424/mindforge/embeddings.svg)](https://agentmods.dev/commands/sairam0424/mindforge/embeddings)
Your own site
<a href="https://agentmods.dev/commands/sairam0424/mindforge/embeddings"><img src="https://agentmods.dev/badge/commands/sairam0424/mindforge/embeddings.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00605
Opus 5 $0.00024 $0.00302
Sonnet 5 $0.00010 $0.00121
Haiku 4.5 $0.00005 $0.00060

Measured 2d ago against content hash 532abe4c1050, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mindforge:embeddings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/mindforge/embeddings.md · 38 lines

What it actually says

<execution_context> @.mindforge/skills/embedding-systems/SKILL.md </execution_context>

  1. Embedding Model Selection: Recommend models by domain (text: OpenAI ada-002/text-embedding-3, Cohere, E5; images: CLIP, DINOv2), evaluate trade-offs (dimensionality vs accuracy, speed vs quality), and specify fine-tuning requirements for domain adaptation.

  2. Vector Database Architecture: Compare database options (Pinecone for managed simplicity, Qdrant for control, Weaviate for multimodal, pgvector for SQL integration), design sharding and replication strategies for scale, and specify index types (HNSW, IVF, flat) based on query patterns.

  3. Hybrid Search Implementation: Design keyword search integration (BM25, Elasticsearch) alongside vector search, implement score fusion strategies (RRF, weighted combination), and optimize for both semantic understanding and exact term matching.

  4. Indexing and Optimization: Configure HNSW parameters (M, ef_construction) for speed/accuracy balance, implement quantization (product quantization, scalar quantization) for memory efficiency, and design incremental indexing for real-time updates.

  5. Query Optimization: Implement query preprocessing (normalization, expansion, reranking), design filtered search with metadata constraints, and create multi-stage retrieval pipelines (coarse-to-fine, two-tower reranking).

  6. Monitoring and Evaluation: Define retrieval quality metrics (precision@k, recall@k, MRR, NDCG), implement latency tracking and cost monitoring per query, and design A/B testing framework for embedding model comparisons.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 38 lines · 49 tokens per session scan A 532abe4c1050

Subscribe to this mod's changes

mindforge:embeddings is a command published in the GitHub repository sairam0424/MindForge (0 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 605 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other commands, from other repositories