find

find is a command for Claude Code from atretyak1985/swarmery. It costs 8 tokens per session (913 once invoked), scanned A, original, Apache-2.0.

A file-finding command that searches the project's repositories for filenames matching a pattern.

In plain words
What is it for?
Use it to locate components, tests, SQL migrations, service files, deployment manifests, or other matching files.
Why use it?
It removes the need to browse repositories manually when you know part of a filename or its extension.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 36 skills, 8 commands, 13 agents shipped together

Good fit Use it to locate components, tests, SQL migrations, service files, deployment manifests, or other matching files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/atretyak1985/swarmery/find
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/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 8 commands, 13 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 find

README.md
[![agentmods](https://agentmods.dev/badge/commands/atretyak1985/swarmery/find.svg)](https://agentmods.dev/commands/atretyak1985/swarmery/find)
Your own site
<a href="https://agentmods.dev/commands/atretyak1985/swarmery/find"><img src="https://agentmods.dev/badge/commands/atretyak1985/swarmery/find.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 913 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.00008 $0.00913
Opus 5 $0.00004 $0.00456
Sonnet 5 $0.00002 $0.00183
Haiku 4.5 $0.00001 $0.00091

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

Security

Grade A, and why

find 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.

plugins/core/commands/find.md · 112 lines

How it starts

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

Find Files Command

Find files matching: $ARGUMENTS

Instructions

Use code_file_search to find files by pattern.

Usage

code_file_search({
  pattern: "$ARGUMENTS",
  repo: "<repo>"  // one of the project's repos (project.json → repos); adjust based on context
})

Examples

  • *Order*.tsx - Find all files with "Order" in the name
  • *.spec.ts - Find all test files
  • *.sql - Find all SQL migration files
  • *Service*.ts - Find all service files
  • values*.yaml - Find deploy/values files

Repositories

If the user doesn't specify a repo, pick the most likely one from the project's .claude/project.json (repos, mainApp, device) based on the file pattern — e.g. web extensions (.tsx, route.ts) map to the mainApp; .py/firmware patterns map to the device repo if one is defined; deploy manifests map to the infrastructure repo. The layout varies per project, so read it — don't assume.

Fallback

If MCP tools are not available:

WebFetch({ url: "http://localhost:4001/search/files?pattern=PATTERN&repo=<codePath>/<repo>" })

(codePath from project.json.)


Now find files matching: $ARGUMENTS

How to use

What it does

Finds files by name pattern across every repository in your project. You give it a glob like *Service*.ts, and it searches the right repo for you — picking the most likely one from your project configuration when you don't name it. You get back a list of matching file paths instead of guessing where something lives.

When to use it

  • You know part of a filename but not which repo or directory holds it.
  • You want every file of a kind at once — all test specs, all SQL migrations, all deploy value files.
  • You are new to a project and need to see how files of a given type are laid out.
  • You are about to edit a component and want to confirm there is only one file with that name.

When not to use it

  • You are searching for text inside files, not filenames — use /search instead.
  • You want to know what breaks if you change a file — use /impact for that.
  • You already know the exact path; just read the file directly.

Read the full file on GitHub · 112 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. 4d ago First seen · 112 lines · 8 tokens per session scan A eb1d637d98b0

Subscribe to this mod's changes

find is a command published in the GitHub repository atretyak1985/swarmery (4 stars, last pushed today), licensed Apache-2.0. It adds 8 tokens to every session and 913 once invoked, about $0.0000 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-09-03.