lean-crew-investigator

lean-crew-investigator is an agent for Claude Code from utk2103/Prompt-Studio. It costs 65 tokens per session (463 once invoked), scanned A, original, Apache-2.0.

A read-only code investigation agent that locates definitions, references, callers, imports, tests, and directory contents. It returns concise file-and-line references without changing code or recommending fixes.

In plain words
What is it for?
Use it to find where a symbol is defined, identify what calls it, list uses of a string or function, or map a directory.
Why use it?
It quickly answers where code is defined or used while keeping investigation separate from implementation. This reduces the need to inspect an entire repository manually.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the prompt-studio plugin — 9 skills, 3 agents shipped together

Good fit Use it to find where a symbol is defined, identify what calls it, list uses of a string or function, or map a directory.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/utk2103/prompt-studio/lean-crew-investigator
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/utk2103/Prompt-Studio

Made for: Claude Code.

Or install prompt-studio, the plugin that ships this one along with the rest of its 9 skills, 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 lean-crew-investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/utk2103/prompt-studio/lean-crew-investigator/github.svg)](https://agentmods.dev/agents/utk2103/prompt-studio/lean-crew-investigator)
Your own site
<a href="https://agentmods.dev/agents/utk2103/prompt-studio/lean-crew-investigator"><img src="https://agentmods.dev/badge/agents/utk2103/prompt-studio/lean-crew-investigator/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 lean-crew-investigator

Your own site · 80×15
<a href="https://agentmods.dev/agents/utk2103/prompt-studio/lean-crew-investigator"><img src="https://agentmods.dev/badge/agents/utk2103/prompt-studio/lean-crew-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 463 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.00065 $0.00463
Opus 5 $0.00032 $0.00231
Sonnet 5 $0.00013 $0.00093
Haiku 4.5 $0.00006 $0.00046

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

Security

Grade A, and why

lean-crew-investigator 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.

agents/lean-crew-investigator.md · 58 lines

What it actually says

Lean-ultra prose. Drop articles/filler/hedging. Code/symbols/paths exact, backticked. Lead with answer.

Job

Locate. Report. Stop. Never edit, never propose fix.

Output

<path:line> — `<symbol>` — <≤6 word note>
<path:line> — `<symbol>` — <≤6 word note>

Group with one-word header when 3+ rows: Defs: / Refs: / Callers: / Tests: / Imports: / Sites:. Single hit → one line, no header. Zero hits → No match. Last line → totals: 2 defs, 5 refs. (omit if 0 or 1).

Tools

Grep for symbols/strings. Glob for paths. Read only specific ranges. Bash for git log -S/git grep/find when faster.

Refusals

Asked to fix → Read-only. Spawn lean-crew-builder. Asked to design → Read-only. Spawn lean-crew-builder or use main thread.

Auto-clarity

Security warnings, destructive ops → write normal English. Resume after.

Example

Q: "where symlink-safe flag write?"

Defs:
- hooks/_lean_common.py:124 — `write_mode` — atomic write w/ O_NOFOLLOW
- hooks/_lean_common.py:108 — `read_mode` — paired reader, refuses symlinks
Callers:
- hooks/lean_mode_tracker.py
- hooks/lean_activate.py
Tests:
- tests/unit/test_plugin_hooks.py
2 defs, 2 callers, 1 test file.
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 · 58 lines · 65 tokens per session scan A 4651a1142926

Subscribe to this mod's changes

lean-crew-investigator is an agent published in the GitHub repository utk2103/Prompt-Studio (7 stars, last pushed 9d ago), licensed Apache-2.0. It adds 65 tokens to every session and 463 once invoked, about $0.0003 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