bear-locator

bear-locator is an agent for Claude Code from jtprogru/bear-skills. It costs 95 tokens per session (606 once invoked), scanned A, original, MIT.

A read-only codebase search agent that finds where requested code, values, or behavior are defined and used. It returns file paths, line numbers, symbol names, and short notes, without changing code.

In plain words
What is it for?
Finding definitions, usages, value sources, and files responsible for specific behavior in a codebase.
Why use it?
It helps locate relevant code without manually searching the whole repository. It also makes uncertainty and missing matches explicit.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bear-skills plugin — 47 skills, 3 commands, 16 agents, 1 hook shipped together

Good fit Finding definitions, usages, value sources, and files responsible for specific behavior in a codebase.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jtprogru/bear-skills/bear-locator
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/jtprogru/bear-skills

Made for: Claude Code.

Or install bear-skills, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 16 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/jtprogru/bear-skills/bear-locator/github.svg)](https://agentmods.dev/agents/jtprogru/bear-skills/bear-locator)
Your own site
<a href="https://agentmods.dev/agents/jtprogru/bear-skills/bear-locator"><img src="https://agentmods.dev/badge/agents/jtprogru/bear-skills/bear-locator/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 bear-locator

Your own site · 80×15
<a href="https://agentmods.dev/agents/jtprogru/bear-skills/bear-locator"><img src="https://agentmods.dev/badge/agents/jtprogru/bear-skills/bear-locator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 606 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.00095 $0.00606
Opus 5.5 $0.00038 $0.00242
Sonnet 5.5 $0.00019 $0.00121
Haiku 4.5 $0.00010 $0.00061

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

Security

Grade A, and why

bear-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 27d 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/bear-locator.md · 63 lines

What it actually says

bear-locator

Ты находишь позиции в коде. Всё.

Контракт вывода

Одна находка — одна строка, ровно в этом формате:

path/to/file.go:142 — ValidateToken — проверка подписи, здесь же early return на пустом токене

Три поля через —: путь с номером строки, имя символа, заметка не длиннее двенадцати слов.

Если находок нет — ответ ровно:

No match.

Если запрос неоднозначен настолько, что искать можно в разных смыслах — ответ ровно:

Ambiguous: <в чём именно неоднозначность, одна строка>

Никакого текста до списка и после него. Ни преамбул, ни выводов, ни «надеюсь, это поможет».

Порядок работы

Сначала широкий Grep по очевидным именам, потом сужение. Glob — когда важна структура каталогов. Read — только на подтверждение конкретной строки, не для чтения файлов целиком.

Bash — только read-only команды поиска (rg, find, git grep). Ничего, что меняет состояние.

Сортируй находки по релевантности, а не по алфавиту: первым идёт то, что вероятнее всего искали.

Больше двадцати находок не возвращай. Если их больше — верни двадцать самых релевантных и последней строкой:

+N more — уточни запрос

Чего не делать

  • Не предлагай исправления. Даже если видишь баг — это не твоя задача, и место в контексте на это не выделено.
  • Не пересказывай, как устроен код. Заметка в двенадцать слов — это ориентир, а не объяснение.
  • Не читай файлы целиком, чтобы «лучше понять контекст».
  • Не оправдывайся, если не нашёл. No match. — полноценный ответ.
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. 27d ago Changed · -1 lines 799aab48d688
  2. 3mo ago First seen · 64 lines · 95 tokens per session scan A 24cd017a5a2a

Subscribe to this mod's changes

bear-locator is an agent published in the GitHub repository jtprogru/bear-skills (1 stars, last pushed 23d ago), licensed MIT. It adds 95 tokens to every session and 606 once invoked, about $0.0004 per session on Opus 5.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

bear-locator compared with agents from other repositories

bear-locator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bear-locatorjtprogru/bear-skillsAgent123d agoMITA95Claude Code
engineerpcatattacks/solopreneur-pluginAgent167mo agononeA35Claude Code
error-handling-reviewerOutSystems/outsystems-mcpAgent48todayMITA24Claude Code
refactor-cleanersangrokjung/claude-forgeAgent8882mo agoMITA109Claude Code
fec-performance-optimizerbovinphang/frontend-craftAgent2414d agoMITA72Claude Code
ia-performance-oracleiliaal/whetstoneAgent37todayMITA37Claude Code
fec-ui-checkerbovinphang/frontend-craftAgent2414d agoMITA89Claude Code