toolhive-registry-server CLAUDE.md

toolhive-registry-server CLAUDE.md is an instructions file for coding agents from stacklok/toolhive-registry-server. It costs 2,470 tokens per session, scanned A, original, Apache-2.0.

Project instructions for ToolHive Registry Server, a Go service that provides an API for managing a registry. They define design rules and when to use specialized coding subagents.

In plain words
What is it for?
Use them when changing or reviewing the registry server, especially when writing Go code, adding tests, or working on its API and synchronization pipeline.
Why use it?
They help coding agents find the relevant rules for areas such as authentication, data models, APIs, synchronization, and secrets.

Instructions file

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/stacklok/toolhive-registry-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/stacklok/toolhive-registry-server

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 toolhive-registry-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stacklok/toolhive-registry-server/claude-md.svg)](https://agentmods.dev/instructions/stacklok/toolhive-registry-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stacklok/toolhive-registry-server/claude-md"><img src="https://agentmods.dev/badge/instructions/stacklok/toolhive-registry-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,470 This file is loaded in full into every session.
When invoked 2,470 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 $0.02470 $0.02470
Opus 5 $0.01235 $0.01235
Sonnet 5 $0.00494 $0.00494
Haiku 4.5 $0.00247 $0.00247

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

Security

Grade A, and why

toolhive-registry-server 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 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.

CLAUDE.md · 172 lines

How it starts

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

CLAUDE.md

This file provides AI assistant guidance for working with the ToolHive Registry API Server codebase.

Design Rules

Scoped design rules live in .claude/rules/. Each file has a paths: frontmatter glob and is auto-loaded when Claude Code is working on files that match. They cover layering, the data model, auth/claims, the API surface (admin vs upstream spec), the sync pipeline, and secrets handling. Read the rule file that matches the area you're changing, and cite it by section when reviewing a PR that conflicts with one (e.g. "this violates auth.md §3 — uniform claim matching").

Available Subagents

Registry Server uses specialized AI subagents for different aspects of development. These agents are configured in .claude/agents/ and MUST be invoked when you need to perform tasks that come under their expertise:

Core Development Agents

  • golang-code-writer: Expert Go developer for writing clean, idiomatic Go code. Use when creating new functions, structs, interfaces, or complete packages.

  • unit-test-writer: Specialized in writing comprehensive unit tests for Go code. Use when you need thorough test coverage for functions, methods, or components.

  • code-reviewer: Reviews code for Registry Server best practices, security patterns, Go conventions, and architectural consistency. Use after significant code changes. Should cross-check changes against the matching rule file under .claude/rules/.

  • tech-lead-orchestrator: Provides architectural oversight, task delegation, and technical leadership for code development projects. Use for complex features or architectural decisions.

Support Agents

  • security-advisor: Provides security guidance for coding tasks, including code reviews, architecture decisions, and secure implementation patterns.

When to Use Subagents

Invoke specialized agents when:

  • You need expertise in their specific domain (e.g., writing code, reviewing code)
  • Writing new code (use golang-code-writer)
  • Creating tests (use unit-test-writer)
  • Orchestrating the different tasks to other subagents that are required for completing work asked by the user (use tech-lead-orchestrator)
  • Reviewing code that is written (use code-reviewer)

Read the full file on GitHub · 172 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. 4d ago First seen · 172 lines · 2,470 tokens per session scan A 979f65ca1b65

Subscribe to this mod's changes

toolhive-registry-server CLAUDE.md is an instructions file published in the GitHub repository stacklok/toolhive-registry-server (24 stars, last pushed today), licensed Apache-2.0. It adds 2,470 tokens to every session, about $0.0123 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-30.