agency-swarm: Agent for Claude Code

.claude/agents/api-researcher.md

api-researcher is an agent for Claude Code from VRSEN/agency-swarm. It costs 16 tokens per session (1,319 once invoked), scanned A, original, MIT.

Research guidance for finding existing MCP servers and APIs for Agency Swarm tools. MCP, or Model Context Protocol, is a standard way for an AI application to connect to external tools and services.

In plain words
What is it for?
Use it when planning an Agency Swarm integration, such as connecting to files, GitHub, GitLab, Slack, databases, or memory through an MCP server.
Why use it?
It reduces custom integration work by checking for an existing standard connector first. It also gives a consistent order for checking official, package-based, community, and custom API options.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; positional $N argument.

This is VRSEN/agency-swarm's own configuration. It tells Claude Code how to work on agency-swarm 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 agency-swarm configures →

About the project

Agency Swarm is a framework for building applications in which multiple specialized AI agents collaborate through defined roles, tools, and communication paths. Developers use it to organize agent teams and manage their prompts, state, and interactions. The catalogue entries provide agents, instructions, and rules for working within this framework.

VRSEN/agency-swarm · 4,554 stars · on GitHub · agency-swarm.ai

Reuse

Borrowing it

Nothing to install: this file belongs to VRSEN/agency-swarm. 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/VRSEN/agency-swarm/main/.claude/agents/api-researcher.md
Clone the repo
git clone --depth 1 https://github.com/VRSEN/agency-swarm

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/vrsen/agency-swarm/api-researcher"><img src="https://agentmods.dev/badge/agents/vrsen/agency-swarm/api-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 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,319 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.00016 $0.01319
Opus 5 $0.00008 $0.00660
Sonnet 5 $0.00003 $0.00264
Haiku 4.5 $0.00002 $0.00132

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

Security

Grade A, and why

api-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

2 near-identical copies found in the catalogue:

.claude/agents/api-researcher.md · 158 lines

How it starts

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

Research MCP servers and APIs for Agency Swarm v1.0.0 tool implementation, strongly prioritizing MCP servers.

Background

MCP (Model Context Protocol) servers are the preferred integration method in Agency Swarm v1.0.0. They provide:

  • Standardized tool interfaces
  • No custom code maintenance
  • Automatic tool discovery
  • Built-in error handling
  • Community support and updates

Research Priority

  1. MCP Servers First: Always check for existing MCP servers
  2. Official MCP Registry: https://github.com/modelcontextprotocol/servers
  3. NPM Packages: Search @modelcontextprotocol/*
  4. Community MCP: Search GitHub for mcp-server-* repos
  5. Custom APIs Last: Only if no MCP server exists

Known MCP Servers

Common MCP servers to check for:

  • @modelcontextprotocol/server-filesystem - File operations
  • @modelcontextprotocol/server-github - GitHub integration
  • @modelcontextprotocol/server-gitlab - GitLab integration
  • @modelcontextprotocol/server-slack - Slack integration
  • @modelcontextprotocol/server-postgres - PostgreSQL
  • @modelcontextprotocol/server-sqlite - SQLite
  • @modelcontextprotocol/server-memory - Memory/knowledge base
  • @modelcontextprotocol/server-puppeteer - Web automation
  • @modelcontextprotocol/server-brave-search - Web search
  • @modelcontextprotocol/server-fetch - HTTP requests

Process

  1. Understand agency's functionality needs from concept
  2. For each capability needed:
    • Search for MCP server first
    • Check official registry
    • Search npm for @modelcontextprotocol
    • Search GitHub for community servers
  3. If MCP found:
    • Document server package name
    • Note installation command
    • List available tools
    • Document any configuration needed
    • Research API key requirements
  4. If no MCP (rare):
    • Research traditional API
    • Document endpoints and auth
    • Find official documentation for API keys
  5. Research how to obtain each API key:
    • Find official signup/documentation pages
    • Note free tier availability
    • Document exact steps to get keys
    • Include any approval wait times
  6. Save findings to agency_name/api_docs.md

Read the full file on GitHub · 158 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. 9d ago First seen · 158 lines · 16 tokens per session scan A c5083e1bd758

Subscribe to this mod's changes

api-researcher is an agent published in the GitHub repository VRSEN/agency-swarm (4,554 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 1,319 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.