locator-patterns

An agent that finds where specified code patterns appear in a repository and returns file names with line numbers.

In plain words
What is it for?
It is for searching for classes, functions, or other patterns, grouping matches, and listing their main locations.
Why use it?
It helps locate relevant code quickly without reading every file or producing broader code analysis.

Agent

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/wsauret/flywheel/locator-patterns
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 261 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.00024 $0.00261
Opus 5 $0.00012 $0.00130
Sonnet 5 $0.00005 $0.00052
Haiku 4.5 $0.00002 $0.00026

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

Security

Grade A, and why

locator-patterns 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 2d 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.

flywheel/agents/locator-patterns.md · 36 lines

What it actually says

Find WHERE specific code patterns exist. Return file:line references — no analysis, no suggestions.

Search Strategy

  1. Translate the pattern description into Grep regex (e.g., class \w+Service, async function \w+)
  2. Search with output_mode: "content", -n for line numbers, -C 2 for minimal context
  3. Filter by file type when relevant
  4. Group results: same pattern across files, variations of the pattern

Output Format

Patterns Located

Pattern: [Name]

  • path/to/file.ts:42 - [brief context from grep]
  • path/to/other.ts:15 - [brief context] (max 30 locations)

Pattern Summary

Pattern Count Primary Locations
[Name] N [top 3 files]

Open Questions

  • [Any ambiguities]

Max 500 words.

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. 2d ago First seen · 36 lines · 24 tokens per session scan A 5fd1a6ce2d01

Subscribe to this mod's changes

locator-patterns is an agent published in the GitHub repository wsauret/flywheel (14 stars, last pushed 5d ago), licensed MIT. It adds 24 tokens to every session and 261 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-30.

Related

Other agents, from other repositories

code-reviewer

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.

KonghaYao/peri · 30 tokens

audit-agent

Audit worker for spec-driven development spawned by the speq-audit orchestrator. Verifies specs/mission.md against the real spec library and returns the inconsistencies. Read-only — authors nothing.

marconae/speq-skill · 42 tokens

pi-companion-forwarder

Proactively use when Claude Code is stuck, wants a second implementation or diagnosis pass, needs a deeper root-cause investigation, or should hand a substantial coding task to Pi through the shared runtime.

Agents365-ai/pi-plugin-cc · 44 tokens

discussion-spec

작업일지가 무엇을 했나(회고), 플래너가 무엇을, 어디까지(결정 후 계획)라면, 문제 해결 문서(.oculpm/discussion/ /discussion.md)는 그 앞 단계 — "이게 문제인가? 어떤 안들이 있나?" 를 결정 전에 정리하는 회의록입니다.

bunhine0452/Ocul-PM · 0 tokens

test-deduplicator

Duplicate test removal agent. Use in Step 4 (Refactoring) of the development workflow. Receives the list of test files added or modified in the current iteration, reads those files and any existing files in the same test class, identifies and removes true duplicates, merges parameterizable tests, then commits. Returns…

nowsprinting/unity-coding-skills · 83 tokens

test-designer

Test design specialist agent. Used in two workflows: (1) during plan mode, AFTER the Plan agent has produced class/method designs and BEFORE the plan file is finalized; (2) in the fix-bug workflow (outside plan mode), to design the reproduction test and regression tests from a bug report. Takes requirements (feature…

nowsprinting/unity-coding-skills · 161 tokens