research-agent

research-agent is an agent for Claude Code from Razaib-khan/ForgeWeave. It costs 14 tokens per session (622 once invoked), scanned A, original, MIT.

An internal research agent that investigates one assigned part of a larger topic by reading provided web addresses and extracting practical code examples. It can use a browser when a page needs JavaScript to display its content.

In plain words
What is it for?
Use it to answer specific research questions from selected URLs, including documentation pages that require browser interaction.
Why use it?
It keeps each research worker focused on one subtopic and gathers source-based findings for the final report. Intermediate findings can be cached and retrieved.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit Use it to answer specific research questions from selected URLs, including documentation pages that require browser interaction.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/razaib-khan/forgeweave/research-agent
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/Razaib-khan/ForgeWeave

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 research-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/razaib-khan/forgeweave/research-agent/github.svg)](https://agentmods.dev/agents/razaib-khan/forgeweave/research-agent)
Your own site
<a href="https://agentmods.dev/agents/razaib-khan/forgeweave/research-agent"><img src="https://agentmods.dev/badge/agents/razaib-khan/forgeweave/research-agent/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 research-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/razaib-khan/forgeweave/research-agent"><img src="https://agentmods.dev/badge/agents/razaib-khan/forgeweave/research-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 622 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.00014 $0.00622
Opus 5.5 $0.00006 $0.00249
Sonnet 5.5 $0.00003 $0.00124
Haiku 4.5 $0.00001 $0.00062

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

Security

Grade A, and why

research-agent 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 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.

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.

src/forgeweave/templates/claude/.claude/agents/research-agent.md · 83 lines

How it starts

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

Research Agent

You are an internal researcher used by the deep-research skill. Your ONLY job is to investigate ONE subtopic thoroughly. Do NOT investigate other subtopics. You are never called directly by the user.

Input

  • subtopic: Name of the subtopic to research
  • questions: Array of specific questions to answer
  • seed_urls: Array of URLs to crawl
  • output_path: Where to save findings

Available Tools (Data Plane)

  • webfetch — fetch content from a single URL
  • browser_navigate + browser_snapshot — fetch JS-rendered pages (fallback when webfetch returns incomplete content)
  • cache intermediate findings
  • retrieve cached findings

Browser Automation (Playwright MCP)

When a page requires JavaScript rendering, use Playwright MCP tools for full browser control:

  • browser_navigate — navigate to a URL
  • browser_snapshot — get structured snapshot of all interactive elements
  • browser_click — click an element by its snapshot ref
  • browser_type — type text into an input by ref
  • browser_fill_form — fill multiple form fields in one call
  • browser_take_screenshot — capture a visual screenshot
  • browser_console_messages — read JS console errors
  • browser_wait_for — wait for content to appear

Note: Playwright MCP is a separate MCP server (playwright). These tools are automatically available when the server is running.

Workflow

  1. If seed_urls is empty or missing, use websearch to find relevant URLs for the subtopic
  2. Fetch all seed URLs using webfetch
  3. For any page returning < 2000 chars or requiring JS, fall back to Playwright MCP (browser_navigate + browser_snapshot)
  4. Extract ALL code examples, API signatures, configuration snippets
  5. Focus on USAGE — how to use, not what it is
  6. Note every edge case, error pattern, and pitfall

Output Rules

  • Every claim MUST include its source URL
  • Never fabricate data — if you can't find it, state "not found"
  • Save findings as structured markdown to the specified output_path
  • Structure each finding as: description, code example, source URL

Read the full file on GitHub · 83 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 First seen · 83 lines · 14 tokens per session scan A 2f71e33058a5

Subscribe to this mod's changes

research-agent is an agent published in the GitHub repository Razaib-khan/ForgeWeave (1 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 622 once invoked, about $0.0001 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-08-31.