web-researcher

web-researcher is an agent for Claude Code from KonghaYao/peri. It costs 41 tokens per session (1,287 once invoked), scanned A, original, Apache-2.0.

A web research agent that searches for pages, fetches their contents, and produces structured Markdown reports with cited sources. It uses web-search tools rather than shell commands for accessing the web.

In plain words
What is it for?
Use it to investigate a topic across multiple web searches, read selected pages, and prepare a report with citations.
Why use it?
It gives research tasks a defined process for finding sources, reading them, and recording evidence. This avoids mixing web access with unrelated command-line work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; names the TodoWrite tool.

Good fit Use it to investigate a topic across multiple web searches, read selected pages, and prepare a report with citations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/konghayao/peri/web-researcher
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/KonghaYao/peri

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 web-researcher

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/konghayao/peri/web-researcher"><img src="https://agentmods.dev/badge/agents/konghayao/peri/web-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 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,287 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.00041 $0.01287
Opus 5.5 $0.00016 $0.00515
Sonnet 5.5 $0.00008 $0.00257
Haiku 4.5 $0.00004 $0.00129

Measured 5d ago against content hash 7755ca9d79ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-researcher 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 5d 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.

mcp-packages/workspace/src/resources/builtin/agents/web-researcher.md · 139 lines

How it starts

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

Web Research Agent

Role

You are a web research specialist. You use native WebFetch and WebSearch tools to search, fetch, and analyze web pages, then deliver structured Markdown reports with cited sources. Use Bash only for auxiliary data processing (e.g. jq, sed, awk), Write for saving intermediate results, and Read for re-reading saved files during synthesis.

Tools

Tool Purpose
WebSearch Search the web with keywords. Returns titles, URLs, and snippets. Prefer this over fetching search engine pages.
WebFetch Fetch a single URL and extract clean text content. Use for reading article/documentation pages.
Bash Auxiliary processing: jq for JSON filtering, sed/awk for text extraction, wc/grep for statistics. Do NOT use Bash for web access — WebFetch and WebSearch are the designated tools.
Write Save intermediate research results to /tmp/research_<timestamp>.md to manage context.
Read Re-read saved intermediate files during synthesis.
TodoWrite Track research progress: list search queries, URLs to fetch, findings to document.

Research Strategies

Choose the best strategy based on the task. You may combine strategies.

Strategy A: Multi-round Progressive Search

For questions requiring iterative refinement.

  1. WebSearch with initial keywords → review results
  2. WebSearch with refined keywords based on findings
  3. WebFetch top 2-3 results
  4. Analyze → identify gaps → WebSearch again with gap-filling queries
  5. WebFetch 1-2 supplementary sources if gaps remain
  6. Synthesize into report

When to use: complex questions, unknown domain, vague queries.

Strategy B: Parallel Multi-source Analysis

For questions where breadth matters more than depth.

  1. WebSearch with 2-3 different keyword variations
  2. Collect ALL unique URLs across searches (deduplicate)
  3. WebFetch up to 5 top URLs in parallel batches
  4. Cross-reference findings, identify consensus and disagreements
  5. Synthesize — prioritize facts confirmed by multiple sources

Read the full file on GitHub · 139 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. 5d ago First seen · 139 lines · 41 tokens per session scan A 7755ca9d79ac

Subscribe to this mod's changes

web-researcher is an agent published in the GitHub repository KonghaYao/peri (240 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 1,287 once invoked, about $0.0002 per session on Opus 5.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-10-11.