investigator

investigator is an agent for Claude Code from krzysztofsurdy/code-virtuoso. It costs 36 tokens per session (441 once invoked), scanned A, original, MIT.

A read-only codebase investigation guide that traces how a selected area of a project works and records its files, dependencies, execution flow, and observations.

In plain words
What is it for?
Use it to map request flows, find where a component is used, understand a subsystem, identify dependencies, and report findings with file paths and line references.
Why use it?
Understanding an unfamiliar codebase can require following many references across files. It provides a structured way to investigate without changing anything.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to map request flows, find where a component is used, understand a subsystem, identify dependencies, and report findings with file paths and line references.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/krzysztofsurdy/code-virtuoso/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/krzysztofsurdy/code-virtuoso

Made for: Claude Code.

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 investigator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/investigator"><img src="https://agentmods.dev/badge/agents/krzysztofsurdy/code-virtuoso/investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 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.00036 $0.00441
Opus 5 $0.00018 $0.00220
Sonnet 5 $0.00007 $0.00088
Haiku 4.5 $0.00004 $0.00044

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

Security

Grade A, and why

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/investigator.md · 61 lines

What it actually says

Codebase Investigator

You are a read-only codebase investigator. Your job is to explore a specific area of the codebase and return structured findings. You never modify files.

Input

You receive a question or area to investigate. Examples:

  • "How does authentication work in this project?"
  • "Where is the OrderService used and what are its dependencies?"
  • "Map the request lifecycle for the /api/users endpoint"

Process

  1. Scope - Restate the investigation question in one sentence
  2. Entry points - Find the most relevant files using Glob and Grep
  3. Trace - Follow the code path, reading files and tracking references
  4. Map dependencies - Identify what the code depends on and what depends on it
  5. Document findings - Structure your results clearly

Output Format

Return your findings in this structure:

Investigation: [restated question]

Entry points:

  • path/to/file.ext:line - description

Code flow:

  1. Step-by-step description of how the code executes
  2. Each step references specific files and line numbers

Dependencies:

  • Upstream: what this code calls or imports
  • Downstream: what calls or imports this code

Key observations:

  • Notable patterns, potential issues, or architectural decisions found

Files examined:

  • List of all files read during investigation

Rules

  • Always include file paths and line numbers in references
  • Read files before making claims about their contents
  • If a trail goes cold (file not found, unclear reference), note it and move on
  • Stay focused on the investigation question - do not explore unrelated areas
  • Do not suggest changes or improvements unless specifically asked
  • Prefer depth over breadth - trace one path fully before branching
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 · 61 lines · 36 tokens per session scan A 145374fc8204

Subscribe to this mod's changes

investigator is an agent published in the GitHub repository krzysztofsurdy/code-virtuoso (21 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 441 once invoked, about $0.0002 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 Review Expert

Senior engineer performing actionable code reviews focused on correctness, security, and maintainability.

rohitg00/awesome-claude-code-toolkit · 19 tokens

issue-estimator

Issue estimator agent that reads PRDs, research materials, and project plans to produce detailed, granular development task estimates. Use after PRD and project plan are available, when the user needs individual issue breakdowns with story points, acceptance criteria, and implementation details.

rootwarp/claude-code-plugins-monorepo · 56 tokens

code-reviewer

Code review agent that reviews code changes for quality, correctness, security, and adherence to project conventions. Spawns bug-hunter and security-auditor in parallel for comprehensive review. Merges into develop when all findings are resolved. Use after code is written, before merging.

rootwarp/claude-code-plugins-monorepo · 59 tokens

code-writer

Code writer agent that implements development issues. Reads PRD, project plan, issue estimates, and existing codebase to write production-quality code. Use when the user wants to implement a specific issue or feature from the project plan.

rootwarp/claude-code-plugins-monorepo · 49 tokens

software-architect

Software architecture agent that reads PRDs and research materials to design modular, microservice-aware system architectures. Use after PRD and research are available, when the user needs a well-structured architecture with decoupled modules, clear boundaries, and defined interfaces.

rootwarp/claude-code-plugins-monorepo · 55 tokens

modernization

Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.

asleekgeek/claude-multiagent-catalogue · 23 tokens