discover

discover is a command for Claude Code from JSungMin/rider-mcp-enforcer. It costs 39 tokens per session (389 once invoked), scanned A, original, MIT.

A local report that counts code searches in Claude Code transcripts and shows how many used rider-search versus ordinary search tools. It reports aggregate, estimated token use without displaying project code or search details.

In plain words
What is it for?
Use it from a project directory to inspect one project's sessions, recent sessions, all projects in aggregate, or a specific transcript.
Why use it?
It reveals when searches bypassed rider-search and may have used more context, helping identify missed opportunities to reduce token consumption.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rider-mcp-enforcer plugin — 1 skill, 5 commands, 1 agent, 1 MCP server, 1 plugin shipped together

Good fit Use it from a project directory to inspect one project's sessions, recent sessions, all projects in aggregate, or a specific transcript.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add JSungMin/rider-mcp-enforcer
Claude Code
/plugin install rider-mcp-enforcer

Made for: Claude Code.

Or install rider-mcp-enforcer, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 1 agent, 1 MCP server, 1 plugin.

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 discover

README.md
[![agentmods](https://agentmods.dev/badge/commands/jsungmin/rider-mcp-enforcer/discover/github.svg)](https://agentmods.dev/commands/jsungmin/rider-mcp-enforcer/discover)
Your own site
<a href="https://agentmods.dev/commands/jsungmin/rider-mcp-enforcer/discover"><img src="https://agentmods.dev/badge/commands/jsungmin/rider-mcp-enforcer/discover/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 discover

Your own site · 80×15
<a href="https://agentmods.dev/commands/jsungmin/rider-mcp-enforcer/discover"><img src="https://agentmods.dev/badge/commands/jsungmin/rider-mcp-enforcer/discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 389 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.00039 $0.00389
Opus 5 $0.00019 $0.00195
Sonnet 5 $0.00008 $0.00078
Haiku 4.5 $0.00004 $0.00039

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

Security

Grade A, and why

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

commands/discover.md · 29 lines

What it actually says

Rider plugin — discover (missed token savings)

Quantifies how often code-symbol searches went through grep/Grep-tool instead of rider-search, so you can see where tokens leaked. Adapted from RTK's discover, scoped to code search only.

Run from the project root you launched Claude Code from (the report keys off the working directory):

node "${CLAUDE_PLUGIN_ROOT}/proxy/discover.mjs"            # this project, all sessions
node "${CLAUDE_PLUGIN_ROOT}/proxy/discover.mjs" --since 7  # sessions from the last 7 days
node "${CLAUDE_PLUGIN_ROOT}/proxy/discover.mjs" --all      # every project — cross-project AGGREGATE only
node "${CLAUDE_PLUGIN_ROOT}/proxy/discover.mjs" --session <path-to.jsonl>

It reports aggregate counts + coarse, estimated token numbers + a coverage ratio (searches routed through rider-search vs bypassed). It is local-only — it reads transcripts, writes/transmits nothing, and never prints a command, file path, symbol, or any code content (those can be proprietary). Token counts are estimated (chars / 4), rounded coarsely, and labelled as estimates — don't treat them as exact. Some "bypassed" reads are legitimate fallbacks (just-edited / unindexed files).

This is a CLI / slash command (not an MCP tool) on purpose — no always-on schema tax, no shell-approval prompt. The same detectors that drive the enforcement hook drive this, so the two never disagree.

$ARGUMENTS

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. 9d ago First seen · 29 lines · 39 tokens per session scan A cf561562e566

Subscribe to this mod's changes

discover is a command published in the GitHub repository JSungMin/rider-mcp-enforcer (2 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 389 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-08-31.