disvr: Instructions file for Claude Code

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.

This is Svanik-yan/disvr's own configuration. It tells Claude Code how to work on disvr 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 disvr configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Svanik-yan/disvr. 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/Svanik-yan/disvr/main/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/github.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/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 disvr CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.02171 $0.02171
Opus 5.5 $0.00868 $0.00868
Sonnet 5.5 $0.00434 $0.00434
Haiku 4.5 $0.00217 $0.00217

Measured 2mo ago against content hash c17b61a66564, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 7mo ago), licensed MIT. It adds 2,171 tokens to every session, about $0.0087 per session on Opus 5.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

disvr CLAUDE.md compared with instructions from other repositories

disvr CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
disvr CLAUDE.mdSvanik-yan/disvrInstructions file07mo agoMITA2,171Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode