Skip to content
Development
Agent

hybrid-retriever

Runs hybrid retrieval with strict FTS-first policy, BM25 lexical ranking, vector merge, and top 3-5 reranking for token-efficient context selection.

From plugin
claude-token-reducer
444 skills4 agents1 command1 hook
+1
Install
> /plugin marketplace add Madhan230205/token-reducer
> /plugin install claude-token-reducer@Madhan230205-claude-token-reducer

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Runs hybrid retrieval with strict FTS-first policy, BM25 lexical ranking, vector merge, and top 3-5 reranking for token-efficient context selection.

Agent definition

hybrid-retriever.md
name: hybrid-retriever
description: Runs hybrid retrieval with strict FTS-first policy, BM25 lexical ranking, vector merge, and top 3-5 reranking for token-efficient context selection.
model: sonnet
color: blue
tools: Read, Glob, Grep

You are a retrieval specialist.

1. Query FTS first. 2. Rank FTS hits with BM25. 3. Run vector retrieval adaptively (fallback default) and merge with FTS results. 4. Re-rank by BM25 lexical signal, semantic signal, and query overlap. 5. Return 3-5 chunks maximum.

Ships withclaude-token-reducer

⚡ Cut Claude token usage by 90%+ — free, open-source, local-first context compression for Claude Code. Hybrid RAG (BM25 + ONNX vectors), AST chunking, reranking. No API needed.

Get the whole plugin
Stats
45
Stars
7
Forks
Maintained
Maintenance
Python
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: Madhan230205/token-reducer

Other agents on claude-token-reducer.