tool-registration-checklist

tool-registration-checklist is a cursor rule for Cursor from bugbasesecurity/pentest-copilot. It costs 0 tokens per session (374 once invoked), scanned A, original, MIT.

A checklist for registering agent tools across a codebase, including their backend definitions and the screens that display them.

In plain words
What is it for?
Use it when adding or removing a tool to update its handler, registry entry, availability settings, labels, argument previews, and optional code previews.
Why use it?
It prevents a tool from working in one part of the application while missing from the registry, configuration checks, sidebar, or chat transcript.

Cursor rule for Cursor

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 rules/bugbasesecurity/pentest-copilot/tool-registration-checklist
Clone the repo
git clone --depth 1 https://github.com/bugbasesecurity/pentest-copilot

Made for: Cursor.

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 tool-registration-checklist

README.md
[![agentmods](https://agentmods.dev/badge/rules/bugbasesecurity/pentest-copilot/tool-registration-checklist.svg)](https://agentmods.dev/rules/bugbasesecurity/pentest-copilot/tool-registration-checklist)
Your own site
<a href="https://agentmods.dev/rules/bugbasesecurity/pentest-copilot/tool-registration-checklist"><img src="https://agentmods.dev/badge/rules/bugbasesecurity/pentest-copilot/tool-registration-checklist.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 374 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.00374
Opus 5 $0.00000 $0.00187
Sonnet 5 $0.00000 $0.00075
Haiku 4.5 $0.00000 $0.00037

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

Security

Grade A, and why

tool-registration-checklist 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.

.cursor/rules/tool-registration-checklist.mdc · 29 lines

What it actually says

Tool Registration Checklist

When adding or removing an agent tool, update ALL of these locations:

Backend (source of truth)

  1. Handler: backend/src/tools/handlers/<tool-name>.ts — create/delete the ToolDefinition
  2. Registry: backend/src/tools/registry.ts — import + toolRegistry.register()
  3. Availability (if tool requires config): backend/src/utils/toolAvailability.ts — add to unconfigured list when env var is missing

Frontend (must stay in sync with registry)

  1. Sidebar panel: frontend/src/components/session/AgentToolsPanel.jsx
    • TOOL_GROUPS — add the tool name to the appropriate group (or create a new group)
    • TOOL_LABELS — add a human-readable label
  2. Chat transcript: frontend/src/components/pages/session/sessionId/ToolCallBlock.jsx
    • TOOL_LABELS — add the display label
    • formatArgsPreview() — add a one-liner showing the most useful arg
    • getCodePreview() — optionally add syntax-highlighted preview (for script/command tools)

Notes

  • The backend API (GET /agent/session/:id/agent-tools-config) dynamically returns all registered tools from toolRegistry.getAll(), so the backend side is automatic after step 2.
  • The frontend filters tools through TOOL_GROUPS — any tool not listed there won't appear in the sidebar even if the API returns it.
  • If the tool needs consent gating, set requiresConsent: true or implement shouldRequireConsent in the handler.
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 · 29 lines · 0 tokens per session scan A a332249860ba

Subscribe to this mod's changes

tool-registration-checklist is a cursor rule published in the GitHub repository bugbasesecurity/pentest-copilot (1,340 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 374 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.