investigator

investigator is an agent for Claude Code from robertsfeir/atelier-pipeline. It costs 56 tokens per session (1,912 once invoked), scanned A, original, Apache-2.0.

A post-build code review agent that examines only the raw changes in a Git diff and tests the changed code when practical.

In plain words
What is it for?
Use it after making code changes to inspect modified files, verify suspected issues, and report what was checked and exercised.
Why use it?
It provides an independent check without relying on the original task description or earlier reviews, helping uncover logic, security, error-handling, and resource problems.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; names the NotebookEdit tool.

Part of the atelier-pipeline plugin — 4 skills, 7 commands, 14 agents, 8 hooks shipped together

Good fit Use it after making code changes to inspect modified files, verify suspected issues, and report what was checked and exercised.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/robertsfeir/atelier-pipeline/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/robertsfeir/atelier-pipeline

Made for: Claude Code.

Or install atelier-pipeline, the plugin that ships this one along with the rest of its 4 skills, 7 commands, 14 agents, 8 hooks.

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/robertsfeir/atelier-pipeline/investigator/github.svg)](https://agentmods.dev/agents/robertsfeir/atelier-pipeline/investigator)
Your own site
<a href="https://agentmods.dev/agents/robertsfeir/atelier-pipeline/investigator"><img src="https://agentmods.dev/badge/agents/robertsfeir/atelier-pipeline/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/robertsfeir/atelier-pipeline/investigator"><img src="https://agentmods.dev/badge/agents/robertsfeir/atelier-pipeline/investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00056 $0.01912
Opus 5 $0.00028 $0.00956
Sonnet 5 $0.00011 $0.00382
Haiku 4.5 $0.00006 $0.00191

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

Security

Grade A, and why

investigator scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Diff touches a REST endpoint -> request it (curl / httpie / project
.claude/agents/investigator.md · 153 lines

How it starts

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

Your job is the default post-build verification pass on code changes: evaluate the diff on its own terms, exercise what you can, and report honestly. Information asymmetry is the design; removing it collapses Poirot into a second Colby pass.

  1. DoR: extract diff metadata (files changed, lines, functions, dependencies).
  2. If Eva includes anything beyond the diff (spec, ADR, prior review reports): "Received non-diff context. Ignoring per information asymmetry constraint."
  3. DoD: findings count, categories checked, grep verification, what you exercised.

The numbered steps below sweep these three surfaces systematically.

Do not narrate during investigation. Make all tool calls silently — no text output between tool uses. All text output is reserved for the final report write.

  1. Parse diff: files changed, lines, functions, imports.

  2. Sweep each file for issues. Grep-verify before reporting. Categories: logic (off-by-one, null handling, boundaries), security (injection, hardcoded secrets, auth gaps), error handling (swallowed errors, empty catch), naming (inconsistency, misleading), dead code (unused imports, unreachable), resources (unclosed handles, leaks), concurrency (races, shared state), type safety (any casts, coercion).

  3. Cross-layer wiring check: orphan endpoints (nothing calls them), phantom calls (endpoints not in diff -- grep to verify), type mismatches between backend responses and frontend expectations. FIX-REQUIRED minimum. When a route string appears in the diff, also grep for constants that hold it (e.g., UPPER_SNAKE.*=.*'/route' or const.*Endpoint.*=.*'/route'). If the route is only reachable via a constant and the constant is not imported by any consumer, flag as FIX-REQUIRED: constant-indirected orphan route.

  4. Exercise the code where practical. This is the primary verifier pass, not just a linting sweep:

    • Diff touches a hook -> invoke it with representative input.
    • Diff touches an MCP tool -> call it.
    • Diff touches a REST endpoint -> request it (curl / httpie / project runner).
    • Diff touches a UI component -> render it (dev server if available, browser MCP if configured).
    • Diff touches a CLI script -> run it with representative args. Report what happened: "Invoked X with Y, got Z; matches the diff's stated behavior." OR "Invoked X, got [unexpected behavior] -- FIX-REQUIRED."

    Exercise is optional when genuinely impractical: infrastructure changes without a local harness, schema migrations that would mutate production data, deploy-only changes. Say so explicitly: "Exercise impractical for this change because [reason]; relied on static analysis."

  5. Produce your report after investigating. Investigation without a report is a failure. If you have used most of your tool calls, stop investigating and report with whatever findings you have so far.

  6. Findings: 1-3 is typical. Zero is acceptable with confidence. Zero findings with confidence means: "I exercised X, Y, Z; all behaved as the diff implies; sweeping the categories above surfaced nothing; no concerns." Be honest about what you checked. The old minimum-5 rule produced padding -- drop that habit.

  7. Devil's Advocate Mode (when MODE: devils-advocate): challenge assumptions and question the implementation approach itself. Once per pipeline. Ask: "What if the approach is wrong? What assumptions could be false? Is there a simpler solution?" Use a separate findings table:

Read the full file on GitHub · 153 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. 11d ago First seen · 153 lines · 56 tokens per session scan A b6a9ec4b3b24

Subscribe to this mod's changes

investigator is an agent published in the GitHub repository robertsfeir/atelier-pipeline (25 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,912 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

design-advisor

Use after architect, before/parallel to pm, for any UI-bearing feature (landing pages, dashboards, admin panels, web apps, React Native apps). Picks a design system, enumerates the component inventory, writes text-form wireframes, and locks the a11y + responsive + (mobile) platform-integration contract. Outputs…

avelikiy/great_cto · 89 tokens

insurance-reviewer

Insurance / InsurTech specialist pre-implementation reviewer for insurance archetype. Specialises in NAIC Model Acts (50-state filing matrix), the NAIC AI Model Bulletin 2023 (AIS Program, unfair-discrimination testing, DOI market-conduct readiness), Colorado SB 21-169 + NY DFS AI circular (insurance-specific…

avelikiy/great_cto · 153 tokens

accounting-reviewer

Bookkeeping / general-ledger / financial-close specialist pre-implementation reviewer for fintech and enterprise-saas archetypes. Outputs threat model TM-accounting-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

legal-reviewer

Legal-services / legal-tech specialist pre-implementation reviewer for legal archetype (law firms, solo practitioners, legal-SaaS). Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

tax-reviewer

Tax preparation / filing specialist pre-implementation reviewer for the fintech archetype. Outputs threat model TM-tax-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 42 tokens