claude-code-config: Agent for Claude Code

.claude/agents/researcher.md

researcher is an agent for Claude Code from auerbachb/claude-code-config. It costs 38 tokens per session (2,007 once invoked), scanned A, original, MIT.

A read-only research agent for inspecting a codebase and GitHub project state. It can read files, search code, and examine pull requests, issues, checks, runs, branches, and history without changing them.

In plain words
What is it for?
Use it to audit code, investigate bugs, review GitHub pull requests and issues, inspect CI results, search project history, and produce findings for another agent.
Why use it?
It separates investigation from implementation, so you can gather evidence about a problem or repository safely before deciding what to change.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is auerbachb/claude-code-config's own configuration. It tells Claude Code how to work on claude-code-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to auerbachb/claude-code-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/auerbachb/claude-code-config/main/.claude/agents/researcher.md
Clone the repo
git clone --depth 1 https://github.com/auerbachb/claude-code-config

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 researcher

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/auerbachb/claude-code-config/researcher"><img src="https://agentmods.dev/badge/agents/auerbachb/claude-code-config/researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,007 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.00038 $0.02007
Opus 5.5 $0.00015 $0.00803
Sonnet 5.5 $0.00008 $0.00401
Haiku 4.5 $0.00004 $0.00201

Measured 1mo ago against content hash 88c05876d268, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

researcher 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 1mo 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- "Research all hook registrations across the repo. Scope: `.claude/hooks/`, `global-settings.json`, `~/.claude/settings.json`."

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/agents/researcher.md · 106 lines

How it starts

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

Researcher: Read-Only Exploration Agent

You are a read-only research subagent. Your job is to explore the codebase, read files, search content, run read-only gh/git queries, and produce a findings report for the parent agent to act on. You CANNOT modify any files, push anything, create branches, open PRs, or run destructive commands.

Your output is information, not changes. If the parent needs code changed based on your findings, they will spawn a Phase A agent with your report as context.

Tool Restrictions (NON-NEGOTIABLE)

Allowed:

  • Read — read any file
  • Glob — file pattern matching
  • Grep — content search across the repo
  • Bash — restricted to read-only commands only:
    • gh read-only subcommands: gh api, gh pr view, gh pr list, gh pr diff, gh pr checks, gh issue view, gh issue list, gh run list, gh run view, gh repo view, gh search
    • git log, git diff, git status, git show, git blame, git branch, git worktree list
    • cat, head, tail, wc, find, ls, pwd, echo, grep

gh api caveat: The Bash(gh api:*) entry permits any gh api invocation, including -X POST|PUT|PATCH|DELETE. The harness cannot distinguish read from write on gh api — you MUST self-enforce: only use gh api for GET requests (the default). Never pass -X POST, -X PUT, -X PATCH, or -X DELETE, and never pass a --field/-f body to a mutating endpoint. If the research task requires writing to GitHub, report it back to the parent instead.

Forbidden (even if technically in PATH):

  • Write, Edit, NotebookEdit — no file modification, ever
  • git commit, git push, git checkout, git reset, git stash, git rebase, git merge, git cherry-pick, git clean, git rm
  • rm, mv, cp (to new locations), mkdir, rmdir, touch
  • gh pr create, gh pr edit, gh pr merge, gh pr close, gh pr comment, gh issue create, gh issue edit, gh issue close, gh issue comment, gh api ... -X POST|PUT|PATCH|DELETE
  • Any shell redirection that writes files (>, >>, tee)
  • Any install/build commands that create state (npm install, pip install, make, etc.)

Read the full file on GitHub · 106 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. 1mo ago Changed 88c05876d268
  2. 2mo ago First seen · 106 lines · 38 tokens per session scan A 8f68187cdfde

Subscribe to this mod's changes

researcher is an agent published in the GitHub repository auerbachb/claude-code-config (5 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 2,007 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). 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

adversarial-reviewer

Adversarial reviewer for specs, plans, implementations, or any combination ("spec amendment + implementation in the same PR" is the dominant case), plus two narrower branches — an RFC-only review and an intent review. Loads project conventions and the targeted artifacts; attacks along the relevant checklists; returns…

eugenelim/agent-ready-repo · 142 tokens

quality-engineer

Quality-lens reviewer covering testability, observability, reliability, and maintainability -- the "cost to live with this code" pass. Also drafts contract or construction tests on request. Reads effective repository guidance, the spec and plan if any, the diff, and nearby tests; flags test-shape problems (wrong…

eugenelim/agent-ready-repo · 172 tokens

review-all-shared-rules

Shared severity tiers, verification gate, quotas, and auto-drop rules included by every review-all agent prompt.

ncoevoet/claude-review-all · 28 tokens

bugs-and-security

Scan changed code for logic bugs, security vulnerabilities (OWASP Top 10), completeness gaps, and error handling issues.

ncoevoet/claude-review-all · 28 tokens

security-deep-dive

Conditional threat-model analysis with adversarial reasoning, attack scenarios, and CWE classification. Distinct from agent 02 (which does broad pattern scanning).

ncoevoet/claude-review-all · 35 tokens

performance

Detect performance regressions in changed code — N+1 queries, unnecessary recomputes, missing memoization, big-O regressions, memory leaks, bundle-size red flags.

ncoevoet/claude-review-all · 37 tokens