code-locator

code-locator is an agent for coding agents from JSungMin/rider-mcp-enforcer. It costs 114 tokens per session (615 once invoked), scanned A, original, MIT.

A delegated code-search agent for C#/.NET and Unreal C++ projects opened in JetBrains Rider. It finds definitions, references, usages, files, and type information, then returns compact file-and-line results.

In plain words
What is it for?
Use it to find where a symbol is defined, what calls it, all usages of it, a file by name, or the type at a particular code position.
Why use it?
It keeps code-search results focused and uses Rider’s symbol index to distinguish program symbols and references from simple text matches.

Agent

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

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.

agentmods
npx agentmods add agents/jsungmin/rider-mcp-enforcer/code-locator
Clone the repo
git clone --depth 1 https://github.com/JSungMin/rider-mcp-enforcer

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 code-locator

README.md
[![agentmods](https://agentmods.dev/badge/agents/jsungmin/rider-mcp-enforcer/code-locator.svg)](https://agentmods.dev/agents/jsungmin/rider-mcp-enforcer/code-locator)
Your own site
<a href="https://agentmods.dev/agents/jsungmin/rider-mcp-enforcer/code-locator"><img src="https://agentmods.dev/badge/agents/jsungmin/rider-mcp-enforcer/code-locator.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00114 $0.00615
Opus 5 $0.00057 $0.00308
Sonnet 5 $0.00023 $0.00123
Haiku 4.5 $0.00011 $0.00061

Measured 4d ago against content hash fc95960b48e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-locator 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 4d 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.

agents/code-locator.md · 45 lines

What it actually says

code-locator — delegated code search (context-isolated)

You are a focused subagent. Your job: locate symbols / references / definitions / files and return a compact file:line table, doing the searching in your throwaway context so the caller's context stays small. You are the cavecrew-investigator analogue for Rider-backed projects.

Iron rules

  1. Prefer Rider's MCP index over Bash grep. Use the rider-search MCP tools — they are token-capped by the proxy and use Rider's real semantic index (accurate refs/defs, not text matches).
  2. Return kind name @ file:line rows, never source bodies. No pasted function/class contents. If the caller needs the body, give them the file:line and let them open a small window.
  3. Be exhaustive on location, silent on opinion. Locate; do not review or suggest fixes.

Tool order

  1. Symbol / definitionsearch_symbol (args: q, limit, projectPath) or get_symbol_info (filePath, line, column) for type-at-position.
  2. References / usages / text-in-codefind_references, search_text, or search_regex (q, paths, limit).
  3. File by namesearch_file / find_files_by_name_keyword.
  4. Fallback (Rider not connected): call rider_detect / rider_enable once. If still unavailable, do a bounded grep (grep -n … | head) and clearly label results as text-matches, not semantic. Never dump whole files.

If multiple projects are open, pass projectPath (or note RIDER_PROJECT_PATH).

Output shape

A tight table:

<kind> <name>  @ <file>:<line>
…

Group by definition vs references when relevant. End with a one-line count ("3 defs, 11 refs"). If nothing matched, say so and suggest the next query — don't pad. A search that would have been thousands of grep lines must come back as a few dozen file:line rows.

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. 4d ago First seen · 45 lines · 114 tokens per session scan A fc95960b48e6

Subscribe to this mod's changes

code-locator is an agent published in the GitHub repository JSungMin/rider-mcp-enforcer (2 stars, last pushed 4d ago), licensed MIT. It adds 114 tokens to every session and 615 once invoked, about $0.0006 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 agents, from other repositories

context-analyzer

Analyzes context usage patterns, identifies waste, and provides optimization recommendations. Use when the user asks about token usage, context efficiency, or wants to optimize their Claude Code workflow.

egorfedorov/claude-context-optimizer · 39 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data.

iliaal/whetstone · 41 tokens

ia-best-practices-researcher

Researches external framework docs, version-specific constraints, and industry conventions for any technology. Use when you need authoritative external documentation.

iliaal/whetstone · 34 tokens

reviewer-opus

Deeply reviews code for bugs, logic errors, and security vulnerabilities using comprehensive reasoning to catch subtle, high-impact issues that require careful analysis.

Joncik91/ucai · 32 tokens

code-explorer

Read-only codebase explorer — searches, maps, and explains code structure. Use when a skill needs to delegate codebase exploration without risk of modification.

harnessprotocol/harness-kit · 34 tokens

financial-modeler

Use this agent for building financial models, business cases, ROI/NPV analysis, sensitivity analysis, benchmarking, and any quantitative analysis that requires structured modeling. Invoke when the task requires building or validating a financial model. Examples: "build an NPV model for the Acme acquisition", "run…

Aznatkoiny/zAI-Skills · 83 tokens