rank

rank is an agent for Claude Code from tonone-ai/tonone. It costs 22 tokens per session (592 once invoked), scanned A, a copy of rank, MIT.

An AI ranking assistant for deciding which search or retrieval results should appear first. It covers reranking, relevance scores, learning-to-rank models, and checks of result quality.

In plain words
What is it for?
Use it to design ranking metrics, compare models, evaluate search results, and assess the quality and latency trade-offs of a reranker.
Why use it?
It helps teams avoid shipping ranking changes that improve one test while harming users, cost, or response time. It turns subjective relevance into measured comparisons using offline tests and human review.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tonone plugin — 41 skills, 100 agents, 8 plugins shipped together

Good fit Use it to design ranking metrics, compare models, evaluate search results, and assess the quality and latency trade-offs of a reranker.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tonone-ai/tonone/rank
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/tonone-ai/tonone

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 41 skills, 100 agents, 8 plugins.

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 rank

README.md
[![agentmods](https://agentmods.dev/badge/agents/tonone-ai/tonone/rank/github.svg)](https://agentmods.dev/agents/tonone-ai/tonone/rank)
Your own site
<a href="https://agentmods.dev/agents/tonone-ai/tonone/rank"><img src="https://agentmods.dev/badge/agents/tonone-ai/tonone/rank/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 rank

Your own site · 80×15
<a href="https://agentmods.dev/agents/tonone-ai/tonone/rank"><img src="https://agentmods.dev/badge/agents/tonone-ai/tonone/rank.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 592 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 86% copy Near-identical to another mod 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.00022 $0.00592
Opus 5.5 $0.00009 $0.00237
Sonnet 5.5 $0.00004 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 1mo ago against content hash 2801615ae06a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rank 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 1mo 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

This is a copy

86% identical to rank — 33 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/rank.md · 62 lines

How it starts

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

You are Rank — AI Ranking Engineer on the AI Operations Team. Retrieval reranking, relevance scoring, learning-to-rank, result quality evaluation.

Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Retrieval gets you candidates; ranking determines what the user actually sees. A reranker that adds 200ms must earn that latency in quality improvement — measure it. NDCG without human relevance labels is an approximation; human labels without inter-annotator agreement are noise. Learning-to-rank models overfit training distributions — always evaluate on out-of-distribution queries before shipping.

What you skip: Adding a reranker without latency budgets and quality regression tests.

What you never skip: Never ship a ranking change without offline NDCG/MRR measurement. Never skip human evaluation for ranking systems. Never train a reranker on implicit signals alone without explicit relevance validation.

Scope

Owns: Retrieval reranking, relevance scoring, learning-to-rank, result quality evaluation

Skills

  • /rank-design — Design ranking pipelines — reranker selection, score fusion, cross-encoder patterns, latency trade-offs.
  • /rank-eval — Build ranking evaluation — NDCG/MRR measurement, human relevance labeling, offline eval harness.
  • /rank-recon — Audit ranking quality — metric trends, failure modes, dataset coverage, reranker performance.

Key Rules

  • Reranking budget: max 100ms added latency for p95 — above that, justify explicitly
  • NDCG@10 is the primary offline metric — track it per query category
  • Cross-encoder rerankers: batch top-k candidates, don't score one at a time
  • Learning-to-rank training data: minimum 1000 labeled query-document pairs
  • Online eval: track CTR and dwell time as proxy signals, validate against human labels

Read the full file on GitHub · 62 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. 1mo ago First seen · 62 lines · 22 tokens per session scan A 2801615ae06a

Subscribe to this mod's changes

rank is an agent published in the GitHub repository tonone-ai/tonone (76 stars, last pushed 13d ago), licensed MIT. It adds 22 tokens to every session and 592 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to rank, differing in 33 lines, and is treated as a copy.

Related

Other agents, from other repositories

python-ml-architect

Python ML (PyTorch/scikit-learn) architecture specialist. Validates data/model/training/evaluation/inference layering, config-driven hyperparameters, reproducibility discipline, and pipeline separation. Dispatch when touching model definitions, training loops, datasets, or inference code.

onlygian/G-Forge · 59 tokens

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms. Use PROACTIVELY for data pipeline design, analytics infrastructure, or modern data stack implementation.

wshobson/agents · 54 tokens

ai-agent

AI feature implementation specialist. Handles STT, LLM, and AI service integration with context-aware patterns. Auto-discovers project conventions before implementing. Supports OpenAI, Anthropic, and other AI providers with streaming, error handling, and cost optimization.

wigtn/wigtn-plugins · 54 tokens

security-reviewer

Read-only, separate-context security reviewer. It reviews a changed diff for authentication / IAM / secrets / supply-chain / dependency risk and emits categorized findings (Block / Risk / Confirmed) for the operator to act on. Use it when an atom touches auth, identity/IAM, credentials or secrets, dependency…

lukasrepublic/agentic-foundry · 108 tokens

spec-reviewer

Read-only, separate-context spec reviewer. It audits an atomic spec + its acceptance contract for SHAPE and requirement quality against the industry-grounded template — EARS-phrased singular/measurable acceptance criteria, the Requirement (triggered) vs Invariant (always-true) split, prior-art grounding…

lukasrepublic/agentic-foundry · 167 tokens

framework-engineer

Framework / self-host implementer persona. Implements an authorized framework-internal atom — plugin scripts, hooks, skills — and runs the framework's pytest suite + doctor until they pass. Dispatch it to BUILD an authorized framework spec (the self-host implementer). It writes plugin code and runs the tests; it never…

lukasrepublic/agentic-foundry · 71 tokens