locate-change

locate-change is a command for Claude Code from sigistry/marketplace. It costs 16 tokens per session (557 once invoked), scanned A, original, MIT.

A codebase search command that finds the files, functions, modules, and tests related to a requested change. It explains how each suggested location connects to the task.

In plain words
What is it for?
Describe a feature or bug, such as changing a login screen or limiting an API route, and get a ranked list of likely edit sites and tests.
Why use it?
In a large codebase, the hardest part can be finding where a feature is implemented. It reduces the time spent searching and lowers the risk of editing the wrong layer.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the codebase-navigator plugin — 2 skills, 4 commands, 3 agents shipped together

Good fit Describe a feature or bug, such as changing a login screen or limiting an API route, and get a ranked list of likely edit sites and tests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/locate-change
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/sigistry/marketplace

Made for: Claude Code.

Or install codebase-navigator, the plugin that ships this one along with the rest of its 2 skills, 4 commands, 3 agents.

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 locate-change

README.md
[![agentmods](https://agentmods.dev/badge/commands/sigistry/marketplace/locate-change/github.svg)](https://agentmods.dev/commands/sigistry/marketplace/locate-change)
Your own site
<a href="https://agentmods.dev/commands/sigistry/marketplace/locate-change"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/locate-change/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 locate-change

Your own site · 80×15
<a href="https://agentmods.dev/commands/sigistry/marketplace/locate-change"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/locate-change.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 557 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.00016 $0.00557
Opus 5 $0.00008 $0.00279
Sonnet 5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

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

Security

Grade A, and why

locate-change 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 10d 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.

plugins/codebase-navigator/commands/locate-change.md · 34 lines

How it starts

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

Answer the hardest question in a large codebase: "where do I even make this change?" Describe the task in $ARGUMENTS (e.g. "add a 'remember me' checkbox to login", "rate-limit the export endpoint", "surface the invoice PDF in the account page") and get back a ranked list of the precise edit sites, files, functions, modules, plus the tests to update, each with a one-line rationale.

Process

Step 1: Frame the task

  • Restate $ARGUMENTS as the concrete capability to add or change. Extract the domain nouns (models/entities), verbs (actions), and surfaces (UI screen, API route, CLI command, job) it implies.
  • If the task is ambiguous about which surface it touches (UI vs API vs background job), note the assumption you'll search under rather than stalling.

Step 2: Localize

Launch the change-locator agent with the task. It greps for the relevant feature/route/model by the domain vocabulary, follows imports and references across layers, and identifies the specific files and functions where the change belongs plus the tests that cover them. This is a cheap, read-only, parallelizable exploration, it never modifies code.

Step 3: Report

The output is a ranked list. For each edit site:

Rank File:line Symbol (function/class/module) Why it's an edit site

Then:

  • Tests to update: the specific test files/cases that will need to change or be added, with file:line.
  • Risks & edge cases: shared code paths, feature flags, migrations, or callers that make this change wider than it looks.
  • Suggested order: the sequence to touch the sites (e.g. model → service → route → UI → tests) so the change stays coherent.

Important Notes

  • Every edit site must be grounded in a real symbol at a real file:line: never guess a path that doesn't exist. If the feature genuinely isn't present yet, say where the analogous existing feature lives as the template to copy.
  • Rank by confidence: the file that most obviously owns the behavior first, speculative sites last, each labeled with its rationale.
  • Include the tests. A change isn't localized until you know which tests assert the current behavior.
  • This is localization, not implementation, do not write the change here. Point precisely; let the user (or a follow-up) make the edit.

Read the full file on GitHub · 34 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. 10d ago First seen · 34 lines · 16 tokens per session scan A be13bfe685d7

Subscribe to this mod's changes

locate-change is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 557 once invoked, about $0.0001 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.