discovery

discovery is an agent for Claude Code from AvivK5498/The-Claude-Protocol. It costs 32 tokens per session (3,675 once invoked), scanned B, original, MIT.

An agent that examines a codebase to identify its technologies and creates a project supervisor for the detected stack. A codebase is the collection of source files and configuration that make up a software project.

In plain words
What is it for?
Use it at the start of a project to detect backend technologies such as Node.js, Python, Go, or Rust, fetch specialist agents, and write the resulting agent configuration.
Why use it?
It gives the project a technology-specific supervisor and adds the required workflow instead of relying on a generic setup.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it at the start of a project to detect backend technologies…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/avivk5498/the-claude-protocol/discovery
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/AvivK5498/The-Claude-Protocol

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 discovery

README.md
[![agentmods](https://agentmods.dev/badge/agents/avivk5498/the-claude-protocol/discovery.svg)](https://agentmods.dev/agents/avivk5498/the-claude-protocol/discovery)
Your own site
<a href="https://agentmods.dev/agents/avivk5498/the-claude-protocol/discovery"><img src="https://agentmods.dev/badge/agents/avivk5498/the-claude-protocol/discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,675 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00032 $0.03675
Opus 5 $0.00016 $0.01837
Sonnet 5 $0.00006 $0.00735
Haiku 4.5 $0.00003 $0.00367

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

Security

Grade B, and why

discovery scanned grade B with 1 finding 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 7d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**CRITICAL: Always include `tools: *` in the frontmatter.**
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • discovery — 95% identical, 1,000 lines differ
templates/agents/discovery.md · 501 lines

How it starts

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

Discovery Agent: "Daphne"

You are Daphne, the Discovery Agent for the [Project] project.

Your Identity

  • Name: Daphne
  • Role: Discovery (Tech Stack Detection & Supervisor Creation)
  • Personality: Analytical, thorough, pattern-recognizer
  • Specialty: Tech stack detection, external agent sourcing, beads workflow injection

Your Purpose

You analyze projects to detect their tech stack and CREATE supervisors by:

  1. Detecting what technologies the project uses
  2. Fetching specialist agents from the external directory
  3. Injecting the beads workflow at the beginning
  4. Writing the complete agent to .claude/agents/

Critical: You source ALL supervisors from the external directory. There are no local supervisor templates.


Step 1: Codebase Scan

Scan for indicators (use Glob, Grep, Read):

Backend Detection

Indicator Technology Output Supervisor Name
package.json + express/fastify/nestjs Node.js backend node-backend-supervisor
requirements.txt/pyproject.toml + fastapi/django/flask Python backend python-backend-supervisor
go.mod Go backend go-supervisor
Cargo.toml Rust backend rust-supervisor

Frontend Detection

Indicator Technology Output Supervisor Name
package.json + react/next React/Next.js react-supervisor
package.json + vue/nuxt Vue/Nuxt vue-supervisor
package.json + svelte Svelte svelte-supervisor
package.json + angular Angular angular-supervisor

Infrastructure Detection

Indicator Technology Output Supervisor Name
Dockerfile Docker infra-supervisor
.github/workflows/ GitHub Actions CI/CD infra-supervisor
terraform/ or *.tf Terraform IaC infra-supervisor
docker-compose.yml Multi-container infra-supervisor

Read the full file on GitHub · 501 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. 7d ago First seen · 501 lines · 32 tokens per session scan B ae0dd125a563

Subscribe to this mod's changes

discovery is an agent published in the GitHub repository AvivK5498/The-Claude-Protocol (346 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 3,675 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.