disvr CLAUDE.md

disvr CLAUDE.md is an instructions file for Claude Code from Svanik-yan/disvr. It costs 2,171 tokens per session, scanned A, original, MIT.

A project guide for Disvr, an AI service-discovery engine that helps agents find useful tools. It documents the Cloudflare-based technology stack, project structure, commands, database, search process, and tests.

In plain words
What is it for?
Use it when developing, testing, deploying, or changing Disvr, including its Hono TypeScript code, Cloudflare D1 database, vector search, and MCP server.
Why use it?
It gives a coding agent the project context needed to make compatible changes and run the right commands. This reduces guesswork about how the application is built and operated.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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 instructions/svanik-yan/disvr/claude-md
Clone the repo
git clone --depth 1 https://github.com/Svanik-yan/disvr

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 disvr CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/svanik-yan/disvr/claude-md.svg)](https://agentmods.dev/instructions/svanik-yan/disvr/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/svanik-yan/disvr/claude-md"><img src="https://agentmods.dev/badge/instructions/svanik-yan/disvr/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,171 This file is loaded in full into every session.
When invoked 2,171 The same file — it is already loaded in full.
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.1 $0.02171 $0.02171
Opus 5 $0.01086 $0.01086
Sonnet 5 $0.00434 $0.00434
Haiku 4.5 $0.00217 $0.00217

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

Security

Grade A, and why

disvr CLAUDE.md 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 5d 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.md · 183 lines

How it starts

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

Disvr — Project Guide

Agent 智能服务发现引擎,帮 AI Agent 找到最值得用的工具。

Tech Stack

  • Runtime: Cloudflare Workers
  • Framework: Hono (TypeScript)
  • Database: Cloudflare D1 (SQLite) + FTS5 全文搜索
  • Vector Search: Cloudflare Vectorize (1536 dim, cosine)
  • Embedding: OpenAI text-embedding-3-small
  • MCP Server: CF Agents SDK (McpAgent class)
  • Testing: Vitest v4.1.1

Key Commands

# Development
npx wrangler dev                    # Local dev server
npx vitest run                      # Run all tests (90 tests)
npx wrangler deploy                 # Deploy to production

# Database
npx wrangler d1 execute disvr-db --remote --command "SQL"
npx wrangler d1 execute disvr-db --file=./schema.sql  # Local reset

# Requires Node 22+
source ~/.nvm/nvm.sh && nvm use 22

Architecture

Request → Hono Router → Auth Middleware → Handler → D1/Vectorize → Response

Discovery Flow:
  need (string)
    → embedQuery (OpenAI) → vectorize.query (top 50)
    → getServicesByIds (D1) → applyConstraints → rankServices
    → top 3 recommendations with value scores

Ranking Weights:
  semantic: 0.30 | quality: 0.25 | cost_efficiency: 0.25 | reliability: 0.20

File Structure

src/
├── index.ts          # Hono app, routes, auth middleware
├── discover.ts       # Core search + ranking engine
├── db.ts             # D1 CRUD, stats, API key management
├── crawl.ts          # Multi-source crawlers (Smithery, GitHub, MCP Registry) + embedding
├── health.ts         # Automated health checks (GitHub, npm, PyPI, endpoint)
├── cooccurrence.ts   # Tool co-occurrence knowledge graph
├── alternatives.ts   # Deprecation detection & alternative recommendations
├── install-check.ts  # Install score: npm/pypi installability, env docs, difficulty rating
├── probe.ts          # Live probes: MCP handshake, HTTP API health check
├── benchmark.ts      # Benchmark engine: scoring, ranking, leaderboards
├── benchmark-scenarios.ts # 10 predefined benchmark scenario definitions
├── cost.ts           # Cost intelligence: pricing extraction, scoring, batch processing
├── error-taxonomy.ts # Error classification: status codes + text patterns → 10 error types
├── changelog.ts      # Version tracking: semver analysis, npm/pypi checks, breaking change detection
├── agent-profile.ts  # Agent behavioral profiling: usage tracking, personalized ranking
├── failover.ts       # Failover advisor: error-based decision engine + alternative lookup
├── watch.ts          # Tool watch & alerts: subscriptions, alert generation, pull-based notifications
├── mcp.ts            # MCP Server (6 tools: discover, details, report, list, failover, alternatives)
├── types.ts          # All TypeScript types + rowToService
├── landing.ts        # Landing page HTML
└── pages/
    ├── registry.ts   # Searchable service directory
    ├── explorer.ts   # Interactive API playground
    ├── analytics.ts  # Real-time dashboard
    ├── benchmark.ts  # Benchmark leaderboard page
    ├── service-detail.ts # Service detail page (dynamic, all data sections)
    └── keys.ts       # API key registration
test/
├── types.test.ts     # 8 tests
├── discover.test.ts  # 12 tests
├── db.test.ts        # 17 tests
├── api.test.ts       # 24 tests
├── crawl.test.ts     # 7 tests
├── health.test.ts    # 28 tests
├── cooccurrence.test.ts # co-occurrence tests
├── alternatives.test.ts # deprecation & alternatives tests
├── install-check.test.ts # install score tests
├── probe.test.ts     # live probe tests
├── benchmark.test.ts # benchmark scoring & scenarios tests
├── cost.test.ts      # cost intelligence tests
├── error-taxonomy.test.ts # error classification tests (51 tests)
├── changelog.test.ts # version tracking & breaking change tests (33 tests)
├── agent-profile.test.ts # agent profiling & personalization tests (22 tests)
├── frontend-enhance.test.ts # frontend enhancement tests (14 tests)
├── failover.test.ts  # failover advisor tests (28 tests)
└── watch.test.ts     # tool watch & alerts tests

Read the full file on GitHub · 183 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. 5d ago First seen · 183 lines · 2,171 tokens per session scan A c17b61a66564

Subscribe to this mod's changes

disvr CLAUDE.md is an instructions file published in the GitHub repository Svanik-yan/disvr (0 stars, last pushed 5mo ago), licensed MIT. It adds 2,171 tokens to every session, about $0.0109 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.

Related

Other instructions, from other repositories

notebooklm-py AGENTS.md

AGENTS.md instructions for teng-lin/notebooklm-py, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.

teng-lin/notebooklm-py · 768 tokens

openapi AGENTS.md

AGENTS.md instructions for longbridge/openapi, covering agent guidelines, after modifying rust code, after modifying the node.js sdk (nodejs/), after modifying the python sdk api (python/) and after modifying the c sdk (c/).

longbridge/openapi · 611 tokens

ai4j CLAUDE.md

Claude Code instructions for LnYo-Cly/ai4j: 本项目以 AGENTS.md 作为 coding agent 指令的唯一权威入口。.

LnYo-Cly/ai4j · 204 tokens

contentful.php AGENTS.md

Instructions for contentful/contentful.php, covering agent guide, quick reference, sharp edges & invariants, key conventions and integration points.

contentful/contentful.php · 1,176 tokens

huly-mcp CLAUDE.md

Claude Code instructions for dearlordylord/huly-mcp, covering project instructions, design principle: llm-first api, project harness (copy to new projects), package manager and verification.

dearlordylord/huly-mcp · 3,317 tokens

kkRepo protocol-compat.instructions.md

Instructions for klboke/kkRepo, a project described as: kkRepo is a Nexus-compatible, self-hosted artifact repository for Maven, npm, PyPI, Go, Helm, NuGet, Cargo/Rust, Dart/Pub, Docker/OCI, RubyGems, and Yum artifacts. It supports one-click migration from Nexus to kkRepo.

klboke/kkRepo · 191 tokens