discover

A command for finding the full documentation sources associated with an entry in a documentation registry. It can inspect index files, test links, and compare results with a documentation hub.

In plain words
What is it for?
Use it with a source ID or URL when adding documentation sources, checking available files, or investigating missing reference material.
Why use it?
It helps locate the complete reference material when a registry entry points only to an index or partial source. This avoids relying on incomplete documentation.

Command for Claude Code

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 commands/outfitter-dev/blz/discover
Clone the repo
git clone --depth 1 https://github.com/outfitter-dev/blz

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 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.00000 $0.00788
Opus 5 $0.00000 $0.00394
Sonnet 5 $0.00000 $0.00158
Haiku 4.5 $0.00000 $0.00079

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

Security

Grade A, and why

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 2d 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/commands/registry/discover.md · 77 lines

What it actually says

Registry: Discover Full Documentation Sources

Instructions: $ARGUMENTS

  • Invoke the @agent-registry-handler subagent to discover full documentation sources from index files
  • Provide the subagent with:
    • The source ID or URL to analyze (from $ARGUMENTS)
    • Any specific instructions about what to look for or focus on
    • Context about recent changes or known issues with the source

Instructions to provide subagent:

  • Resource: Use https://llmstxthub.com/ as a reference to discover additional llms.txt sources or verify known sources

    • Search the hub for the project name to find official llms.txt URLs
    • Check if the hub lists any additional documentation files beyond the main index
    • Cross-reference discovered URLs with the hub's listings
  • If given a source ID (e.g., "redis"):

    • Run ./registry/scripts/discover-links.sh <source-id> to automate initial discovery
    • Analyze the output and identify all discovered .txt links
    • Test each link with blz add --dry-run to classify content type
    • Cross-check with https://llmstxthub.com/ for any additional sources
    • Report findings with recommendations for which sources to add
  • If given a URL:

    • First run blz add temp-<name> <url> --dry-run --quiet to analyze content
    • If contentType is "index" (< 100 lines), proceed with discovery workflow
    • Extract all .txt references from the index file
    • Resolve relative URLs to absolute URLs
    • Cross-check with https://llmstxthub.com/ to find additional sources not listed in the index
    • Test each discovered URL with dry-run analysis
    • Report findings with actionable recommendations
  • For each good candidate (contentType: "full", lines > 1000):

    • Provide a recommended blz registry create-source command
    • Include suggested metadata (description, category, tags, aliases)
    • Note any special considerations (redirects, format variations, etc.)

Follow-up steps after discovery:

  1. Present a summary report showing:

    • Total sources discovered
    • Good candidates (recommend adding)
    • Mixed content (needs review)
    • Indexes (skip)
    • Any issues or edge cases encountered
  2. For each good candidate, show the complete command:

    blz registry create-source <name> \
      --url <url> \
      --description "<description>" \
      --category <category> \
      --tags <tags> \
      --npm <packages> \
      --github <repos> \
      --yes
    
  3. If the original source is an index that should be kept:

    • Note that it needs "(Index)" suffix in name
    • Note that it needs "index" tag added
    • Provide edit instructions or offer to update it
  4. After user confirms which sources to add:

    • Execute the blz registry create-source commands
    • Update the original index entry (if keeping it)
    • Run ./registry/scripts/build.sh to rebuild registry
    • Verify all new sources are in registry.json
  5. Ask the user:

    • "Would you like me to proceed with adding these sources to the registry?"
    • "Should I keep the original index entry or remove it?"
    • "Are there any other sources you'd like me to analyze?"

Example usage:

  • /registry discover redis - Discover from existing registry source
  • /registry discover https://anthropic.com/llms.txt - Discover from URL
  • /registry discover check llmstxthub.com for new sources - Browse the hub for new projects to add
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. 2d ago First seen · 77 lines · 0 tokens per session scan A 48958eeedc9e

Subscribe to this mod's changes

discover is a command published in the GitHub repository outfitter-dev/blz (27 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 788 tokens. 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.