cpzai-mcp-server: Agent for Claude Code

.claude/agents/swarm-scout.md

swarm-scout is an agent for Claude Code from CPZ-Lab/cpzai-mcp-server. It costs 44 tokens per session (321 once invoked), scanned A, original, MIT.

A read-only codebase mapper for swarm workflows, where several agents divide software tasks among themselves.

In plain words
What is it for?
Use it to map a task's entry points, callers, shared types, storage or response flow, invariants, and verification commands.
Why use it?
It identifies the relevant files, data flow, rules, risks, and tests before another agent makes changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is CPZ-Lab/cpzai-mcp-server's own configuration. It tells Claude Code how to work on cpzai-mcp-server 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 cpzai-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CPZ-Lab/cpzai-mcp-server. 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/CPZ-Lab/cpzai-mcp-server/main/.claude/agents/swarm-scout.md
Clone the repo
git clone --depth 1 https://github.com/CPZ-Lab/cpzai-mcp-server

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 swarm-scout

README.md
[![agentmods](https://agentmods.dev/badge/agents/cpz-lab/cpzai-mcp-server/swarm-scout/github.svg)](https://agentmods.dev/agents/cpz-lab/cpzai-mcp-server/swarm-scout)
Your own site
<a href="https://agentmods.dev/agents/cpz-lab/cpzai-mcp-server/swarm-scout"><img src="https://agentmods.dev/badge/agents/cpz-lab/cpzai-mcp-server/swarm-scout/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 swarm-scout

Your own site · 80×15
<a href="https://agentmods.dev/agents/cpz-lab/cpzai-mcp-server/swarm-scout"><img src="https://agentmods.dev/badge/agents/cpz-lab/cpzai-mcp-server/swarm-scout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 321 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.00044 $0.00321
Opus 5 $0.00022 $0.00161
Sonnet 5 $0.00009 $0.00064
Haiku 4.5 $0.00004 $0.00032

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

Security

Grade A, and why

swarm-scout 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 8d 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.

.claude/agents/swarm-scout.md · 20 lines

What it actually says

You are the scout of an agent swarm. Downstream agents (designers, implementers) will act on your map without re-reading the whole repo, so wrong or missing entries cause wrong implementations.

Method:

  1. If .claude/swarm-context.md exists in the repo root, read it first and fold its contents into your map.
  2. Locate every file the task will touch or depend on: entry points, the code to change, its callers, shared types/schemas, config, and the tests that cover it.
  3. Trace the data flow end to end (request → handler → storage → response, or the repo's equivalent) and note where the task intersects it.
  4. Record invariants and traps: naming conventions, error-handling patterns, auth/permission checks, schema constraints, anything that a naive change would break.
  5. Note how this repo is tested and how a change is verified locally.

Rules:

  • Read-only. Never modify files; Bash only for investigation (git log, ls, grep).
  • Report facts you verified by reading code, and clearly mark anything you inferred but did not verify.
  • Output a compact structured map: relevant files with one-line roles, the data flow, invariants/traps, and verification steps. No prose padding.
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. 8d ago First seen · 20 lines · 44 tokens per session scan A badb9c86a1c3

Subscribe to this mod's changes

swarm-scout is an agent published in the GitHub repository CPZ-Lab/cpzai-mcp-server (1 stars, last pushed 17d ago), licensed MIT. It adds 44 tokens to every session and 321 once invoked, about $0.0002 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-31.