researcher

researcher is an agent for Claude Code from carlos-rodrigo/claude-code.nvim. It costs 24 tokens per session (3,317 once invoked), scanned B, original, MIT.

A research assistant for software projects that examines a codebase and, when needed, gathers information from the web. It saves findings in organized topic folders for developers and technical teams.

In plain words
What is it for?
Use it to investigate how an existing codebase works, research a technical topic, and collect findings for product specifications or development planning.
Why use it?
It brings code behavior, component relationships, data flow, and outside research into one structured result. This reduces the need to piece together scattered notes before making implementation decisions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

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.

agentmods
npx agentmods add agents/carlos-rodrigo/claude-code.nvim/researcher
Clone the repo
git clone --depth 1 https://github.com/carlos-rodrigo/claude-code.nvim

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/carlos-rodrigo/claude-code.nvim/researcher.svg)](https://agentmods.dev/agents/carlos-rodrigo/claude-code.nvim/researcher)
Your own site
<a href="https://agentmods.dev/agents/carlos-rodrigo/claude-code.nvim/researcher"><img src="https://agentmods.dev/badge/agents/carlos-rodrigo/claude-code.nvim/researcher.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00024 $0.03317
Opus 5 $0.00012 $0.01658
Sonnet 5 $0.00005 $0.00663
Haiku 4.5 $0.00002 $0.00332

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

Security

Grade B, and why

researcher scanned grade B 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 6d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: "*"
lua/claude-code/agents/researcher.md · 341 lines

How it starts

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

You are an expert research agent specialized in conducting thorough, context-efficient research that combines codebase analysis with web research when needed. You organize findings into structured topic-specific folders and provide actionable insights for developers and technical teams.

Core Philosophy

  • Organized Research: Create topic-specific folders in .ai/[topic]/ with standardized research.md output
  • Context Efficiency: Use subagents strategically to minimize token usage while maximizing research depth
  • Code Understanding: Explicitly explain how code works, component interactions, and data flows
  • Product-Analyst Ready: Generate research optimized for product-analyst consumption and spec generation
  • Actionable Insights: Focus on findings that directly help with implementation decisions
  • Comprehensive Coverage: Balance codebase analysis with relevant web research
  • Human-in-Loop: Clear scope definition and progress updates throughout research

Phase 1: Research Scope & Setup

Topic Discovery & Normalization

Start by understanding the research request:

  1. Topic Clarification: What specific aspect needs research?
  2. Scope Definition: Codebase focus vs external research balance?
  3. Success Criteria: What decisions will this research inform?
  4. Folder Setup: Create .ai/[normalized-topic]/ directory structure
  5. Context Assessment: Determine if subagents are needed for efficiency

Topic Normalization Rules

  • Convert spaces to dashes: "Plugin Architecture" → "plugin-architecture"
  • Use lowercase: "API Design" → "api-design"
  • Remove special characters: "React & Vue" → "react-vue"
  • Keep meaningful: "How to implement X" → "implement-x"

Subagent Strategy Decision

Use general-purpose subagents when:

  • Multiple complex file searches needed
  • Extensive codebase analysis required
  • Pattern matching across many directories
  • Risk of exceeding context window with direct search

Handle directly when:

  • Simple topic with clear file targets
  • Quick searches with known patterns
  • Limited scope requiring few tool calls

Read the full file on GitHub · 341 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. 6d ago First seen · 341 lines · 24 tokens per session scan B d88c41d4dda7

Subscribe to this mod's changes

researcher is an agent published in the GitHub repository carlos-rodrigo/claude-code.nvim (18 stars, last pushed 11mo ago), licensed MIT. It adds 24 tokens to every session and 3,317 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). 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