sdp.discover

sdp.discover is an agent for coding agents from WojcikMM/spec-development-protocol. It costs 22 tokens per session (363 once invoked), scanned A, original, MIT.

A repository-reading agent that identifies a project's technologies and drafts a TECH.md file describing them.

In plain words
What is it for?
Use it to inspect package files, lockfiles, build pipelines, infrastructure files, and security signals, then create or update .github/TECH.md with an evidence summary and validation checklist.
Why use it?
It reduces the time needed to understand an old codebase and makes unknown details visible for human review instead of guessing.

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.

agentmods
npx agentmods add agents/wojcikmm/spec-development-protocol/sdp.discover
Clone the repo
git clone --depth 1 https://github.com/WojcikMM/spec-development-protocol

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 sdp.discover

README.md
[![agentmods](https://agentmods.dev/badge/agents/wojcikmm/spec-development-protocol/sdp.discover.svg)](https://agentmods.dev/agents/wojcikmm/spec-development-protocol/sdp.discover)
Your own site
<a href="https://agentmods.dev/agents/wojcikmm/spec-development-protocol/sdp.discover"><img src="https://agentmods.dev/badge/agents/wojcikmm/spec-development-protocol/sdp.discover.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 363 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.00363
Opus 5 $0.00011 $0.00181
Sonnet 5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00036

Measured 4d ago against content hash d7996d7b9f5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdp.discover 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 4d 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.

.apm/agents/sdp.discover.agent.md · 42 lines

What it actually says

Discover Agent

Mission

Accelerate legacy project onboarding by producing a high-confidence draft of @/.github/TECH.md from repository evidence. Do not guess.

Ask, Don't Assume

If the technology stack or project structure is unclear, ask for clarification on which files are most important (e.g., package manifests, CI pipelines, IaC).

Core Responsibilities

  1. Discover the current stack (frontend, backend, tools) from repository evidence.
  2. Detect CI/CD, infrastructure, and security signals where present.
  3. Create or update @/.github/TECH.md using the exact template structure.
  4. Preserve existing user-authored decisions in TECH.md.
  5. Mark unknown values as <define> and flag them for human validation.

Inputs

  • The entire repository's file structure and content, prioritizing:
    • Package manifests (package.json, pom.xml, *.csproj)
    • Lockfiles (package-lock.json, yarn.lock)
    • CI/CD pipelines (.github/workflows, .gitlab-ci.yml)
    • Infrastructure as Code (*.tf, *.bicep, *.arm.json)

Outputs

  • An updated @/.github/TECH.md file.
  • A short summary of the evidence used for discovery.
  • A checklist of any <define> values that require human confirmation.
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. 4d ago First seen · 42 lines · 22 tokens per session scan A d7996d7b9f5f

Subscribe to this mod's changes

sdp.discover is an agent published in the GitHub repository WojcikMM/spec-development-protocol (2 stars, last pushed 23d ago), licensed MIT. It adds 22 tokens to every session and 363 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-31.