embeddings

embeddings is a skill for Claude Code from anthonysuherli/br8n. It costs 69 tokens per session (1,318 once invoked), scanned A, original, MIT.

A guide for checking and changing how br8n turns text into vectors for semantic search, which finds meaning-based matches rather than only exact words. It covers remote embeddings that need an API key, local on-device embeddings, and text-only search.

In plain words
What is it for?
Use it to inspect the current embedding provider and model, switch between remote and local processing, understand pending re-embedding, and diagnose text-search behavior.
Why use it?
It helps explain why search returns no results, whether embeddings are ready, and whether the system is using a remote service, a local model, or no embeddings. This also clarifies when a key, an extra package, or a model download is needed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the br8n plugin — 11 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to inspect the current embedding provider and model, switch between remote and local processing, understand pending re-embedding, and diagnose text-search behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthonysuherli/br8n/embeddings
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.

Any agent
npx skills add anthonysuherli/br8n --skill embeddings
Clone the repo
git clone --depth 1 https://github.com/anthonysuherli/br8n

Made for: Claude Code.

Or install br8n, the plugin that ships this one along with the rest of its 11 skills, 3 hooks, 1 MCP server.

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 embeddings

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonysuherli/br8n/embeddings.svg)](https://agentmods.dev/skills/anthonysuherli/br8n/embeddings)
Your own site
<a href="https://agentmods.dev/skills/anthonysuherli/br8n/embeddings"><img src="https://agentmods.dev/badge/skills/anthonysuherli/br8n/embeddings.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00069 $0.01318
Opus 5 $0.00034 $0.00659
Sonnet 5 $0.00014 $0.00264
Haiku 4.5 $0.00007 $0.00132

Measured 7d ago against content hash 5b6eb146c06f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 7d 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.

skills/embeddings/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

br8n — Embeddings (which provider, and switching it)

Semantic search needs vectors. br8n produces them one of three ways:

Provider When it applies Dim
remote AI_GATEWAY_API_KEY or OPENAI_API_KEY is set 1536
local the br8n[local-embeddings] extra is installed, no key is set, and the KB is on the local tier — cloud pgvector columns are 1536-wide, so local always refuses on cloud 384
none neither — capture and chronological surfaces still work, search is text-only

Step 1 — Report the current state

Call mcp__plugin_br8n_br8n__br8n_embeddings_get(). Lead with the provider, model and why it was chosen (source), then flag anything actionable:

  • ready: false with provider: local → the model is still downloading (~130 MB, first use only). Search stays text-only for a minute; nothing is lost.
  • pending_findings/pending_nodes above zero → a re-embed is draining in the background. It refills on ordinary reads; no action needed.
  • provider: none → say what would fix it: either set a key, or pip install 'br8n[local-embeddings]' and switch to local.
  • pending_switch not null → the environment quietly changed (e.g. a key went missing) and would flip the space (pending_switch.storedpending_switch.detected), but existing vectors are at risk, so br8n left them alone instead of rebuilding. Tell the user what changed and offer to apply it — that offer is exactly Step 2.

Step 2 — Switch, if asked

Call mcp__plugin_br8n_br8n__br8n_embeddings_set(provider) with auto, remote, local or none. auto is the default and means "use a key if there is one, else local". To actually apply a deferred pending_switch, pass the concrete detected.provider from Step 1 — that always rebuilds immediately. Passing auto instead re-runs detection but is still subject to the same work-at-risk gate, so if the vectors it would discard are still there it defers again ({ok: true, deferred: true, ...}) rather than forcing the rebuild through.

Read the full file on GitHub · 89 lines

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. 7d ago First seen · 89 lines · 69 tokens per session scan A 5b6eb146c06f

Subscribe to this mod's changes

embeddings is a skill published in the GitHub repository anthonysuherli/br8n (1 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 1,318 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

ingest

Populate the gnosis-mcp knowledge base — from local files, git history, or a crawled website. Handles the full matrix of flags (--force, --prune, --wipe, --embed, --include-crawled) in one place.

nicholasglazer/gnosis-mcp · 54 tokens

setup

First-time setup wizard for Gnosis MCP. Install, init the database, ingest a docs folder, wire your editor — in that order.

nicholasglazer/gnosis-mcp · 30 tokens

tune

Find the chunk-size and retrieval config that maximizes quality on YOUR corpus. Sweeps chunk sizes, runs a golden-query set, reports nDCG / MRR / Hit@5. Use after first ingest or whenever your corpus changes shape significantly.

nicholasglazer/gnosis-mcp · 53 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

neurolink-guide

Guide for using the NeuroLink SDK and CLI. Invoke when users ask how to use neurolink, integrate AI providers, add MCP tools, configure RAG, set up memory, deploy servers, or work with multimodal content. Covers SDK, CLI, providers, tools, and enterprise features.

juspay/neurolink · 65 tokens