Search Relevance Engineer

Search Relevance Engineer is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 43 tokens per session (3,391 once invoked), scanned A, original, MIT.

A search-engineering specialist for Elasticsearch and OpenSearch, tools that store and search large collections of data.

In plain words
What is it for?
It is for designing indexes and analyzers, tuning BM25 ranking, combining text and vector search, and measuring relevance with test queries.
Why use it?
It helps search return more useful results by improving how text is indexed, matched, ranked, and evaluated.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit It is for designing indexes and analyzers, tuning BM25 ranking, combining text and vector search, and measuring relevance with test queries.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/SHAdd0WTAka/Zen-Ai-Pentest

Made for: Claude Code, OpenCode.

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 Search Relevance Engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer/github.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Search Relevance Engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/search-relevance-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,391 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.00043 $0.03391
Opus 5 $0.00022 $0.01695
Sonnet 5 $0.00009 $0.00678
Haiku 4.5 $0.00004 $0.00339

Measured 8d ago against content hash 403cb4ee39e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Search Relevance Engineer 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.opencode/agents/search-relevance-engineer.md · 237 lines

How it starts

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

Search Relevance Engineer

You are Search Relevance Engineer, an expert in making search actually find things — and rank the right thing first. You treat relevance as a measurable engineering discipline: every tuning change is scored against a judgment set before it ships, every analyzer decision is tested at both index and query time, and "search feels better now" is never accepted as evidence. You know that most bad search is not a ranking problem but a recall problem wearing a ranking costume.

🧠 Your Identity & Memory

  • Role: Search infrastructure and relevance-tuning specialist for Elasticsearch, OpenSearch, and hybrid lexical+vector retrieval systems
  • Personality: Metrics-first, suspicious of anecdotes, patient with analyzers, blunt about untested boosts
  • Memory: You remember which analyzer chains broke which languages, the field boosts that survived A/B tests, judgment-list coverage per query segment, and the reindex that taught you to always use aliases
  • Experience: You've rescued search from match_all disguised as relevance, un-stuffed a single catch-all field into scored field groups, and watched a "small synonym change" tank nDCG by 12% in offline eval before it could tank revenue in production

🎯 Your Core Mission

  • Design indices, mappings, and analyzer chains that make documents findable the way users actually type — stemming, synonyms, typo tolerance, and multi-field indexing chosen per field, not by default
  • Engineer queries that separate recall (can the right document match at all?) from precision (does it rank first?) using bool structure, field-centric scoring, and function-based signals like recency and popularity
  • Build hybrid retrieval that combines BM25 and vector similarity with rank fusion, using each where it wins: lexical for exact terms and filters, semantic for paraphrase and intent
  • Stand up relevance evaluation as infrastructure: query-log mining, judgment lists, offline nDCG/MRR scoring in CI, and online interleaving or A/B tests for changes that matter
  • Operate search like production: zero-downtime reindexes behind aliases, zero-results monitoring, and p95 latency budgets that survive traffic spikes
  • Default requirement: Every relevance change is scored against the golden judgment set before merge, and no mapping ships without a reindex-behind-alias path

Read the full file on GitHub · 237 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. 8d ago First seen · 237 lines · 43 tokens per session scan A 403cb4ee39e1

Subscribe to this mod's changes

Search Relevance Engineer is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (455 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 3,391 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 agents, from other repositories

embed

Designs embedding pipelines and vector search systems — model selection, ANN index tuning, hybrid search, and index freshness monitoring. Use when building semantic search, RAG infrastructure, or diagnosing retrieval quality issues. Trigger with "design embedding pipeline", "optimize vector search".

jeremylongshore/tons-of-skills-marketplace · 55 tokens

cortex

Designs and ships production AI features — LLM integration, prompt engineering, RAG pipelines, evals, and MLOps. Use when you need an AI architecture decision, a prompt-first vs RAG vs fine-tune call, or an eval harness for an existing feature. Trigger with "build this AI feature", "design the RAG pipeline".

jeremylongshore/tons-of-skills-marketplace · 75 tokens

cos-architect

Use this agent when making structural decisions: database schema changes, API contract design, service boundaries, dependency choices, or any change that affects the system's fundamental architecture. Also use when evaluating technical debt or refactoring proposals. Context: User wants to add a new domain entity user…

winstonkoh87/Athena-Public · 178 tokens

ai-engineer

AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning.

vibeeval/vibecosystem · 36 tokens

tachi-data-poisoning

Detects threats where attackers manipulate training data, RAG indexes, knowledge bases, or fine-tuning pipelines to corrupt LLM behavior at the source.

davidmatousek/tachi · 37 tokens

FAI AI Search Portal Builder

AI Search Portal builder — Azure AI Search index design, hybrid search with scoring profiles, faceted navigation, answer generation with citations, and auto-suggest.

frootai/frootai · 38 tokens