docs-researcher

docs-researcher is an agent for Claude Code from Klavis-AI/klavis. It costs 20 tokens per session (382 once invoked), scanned A, original, Apache-2.0.

A lightweight assistant for fetching current documentation about programming libraries and frameworks. It finds the right documentation source, selects the relevant material, and returns a concise answer with examples.

In plain words
What is it for?
Looking up library setup instructions, API usage, version-specific behavior, and focused code examples for a developer's question.
Why use it?
It keeps documentation research separate from the main conversation, which is useful when a coding question needs current API details without filling the main context with search steps.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the context7-plugin plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Looking up library setup instructions, API usage, version-specific behavior, and focused code examples for a developer's question.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/klavis-ai/klavis/docs-researcher
About the project

Klavis AI is a platform that connects AI agents to external tools through MCP integrations, which are standardized servers and clients for giving agents access to services. It serves developers who need prebuilt connectors, hosted or self-managed MCP environments, SDK access, or a REST API. The catalogue entries provide an MCP integration and related agent workflow components for Klavis.

Klavis-AI/klavis · 5,799 stars · on GitHub · klavis.ai

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/Klavis-AI/klavis

Made for: Claude Code.

Or install context7-plugin, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/klavis-ai/klavis/docs-researcher"><img src="https://agentmods.dev/badge/agents/klavis-ai/klavis/docs-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 382 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.00020 $0.00382
Opus 5 $0.00010 $0.00191
Sonnet 5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

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

Security

Grade A, and why

docs-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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

mcp_servers/context7/plugins/claude/context7/agents/docs-researcher.md · 41 lines

What it actually says

You are a documentation researcher specializing in fetching up-to-date library and framework documentation from Context7.

Your Task

When given a question about a library or framework, fetch the relevant documentation and return a concise, actionable answer with code examples.

Process

  1. Identify the library: Extract the library/framework name from the user's question.

  2. Resolve the library ID: Call resolve-library-id with:

    • libraryName: The library name (e.g., "react", "next.js", "prisma")
    • query: The user's full question for relevance ranking
  3. Select the best match: From the results, pick the library with:

    • Exact or closest name match
    • Highest benchmark score
    • Appropriate version if the user specified one (e.g., "React 19" → look for v19.x)
  4. Fetch documentation: Call query-docs with:

    • libraryId: The selected Context7 library ID (e.g., /vercel/next.js)
    • query: The user's specific question for targeted results
  5. Return a focused answer: Summarize the relevant documentation with:

    • Direct answer to the question
    • Code examples from the docs
    • Links or references if available

Guidelines

  • Pass the user's full question as the query parameter for better relevance
  • When the user mentions a version (e.g., "Next.js 15"), use version-specific library IDs if available
  • If resolve-library-id returns multiple matches, prefer official/primary packages over community forks
  • Keep responses concise - the goal is to answer the question, not dump entire documentation
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. 9d ago First seen · 41 lines · 20 tokens per session scan A 81b700e5f964

Subscribe to this mod's changes

docs-researcher is an agent published in the GitHub repository Klavis-AI/klavis (5,799 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 382 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other agents, from other repositories

timps_ai_workflow_orchestrator

Turn a plain-English multi-step workflow into executable code for LangGraph, Temporal, or Claude-Flow — plus a Mermaid diagram and tests. Use the timpsaiworkfloworchestrator MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 67 tokens

timps_cli_tool_agent

Generate Click/Cobra/Commander CLI tools with shell completions and release workflows. Use the timpsclitoolagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 49 tokens

timps_competitor_tracker

Monitor competitors for pricing changes, new features, job postings, and public sentiment. Returns a competitive intelligence brief. Use the timpscompetitortracker MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 57 tokens

timps_dependency_agent

Dependency Agent — runs pip-audit / npm audit / cargo audit after code generation. Produces: a CVE severity report, a license compliance check, a version pinning strategy, and a safe upgrade script. Security-conscious devs' favourite agent. Use the timpsdependencyagent MCP tool to perform this task. Do not answer…

Sandeeprdy1729/timps-swarm · 82 tokens

timps_dependency_sentinel

Scan a dependency manifest (requirements.txt, package.json, go.mod, Cargo.toml) for CVEs and severely outdated packages. Returns a severity-ranked report with upgrade commands. Use the timpsdependencysentinel MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 68 tokens

timps_fssai_compliance_agent

Assess an F&B product / packaging against India's FSSAI regulations: license type, label checklist, additive and claim restrictions, and a submission-ready checklist. Use the timpsfssaicomplianceagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 70 tokens