discover

discover is a command for Claude Code from hgahlot/claude-flow. It costs 0 tokens per session (1,248 once invoked), scanned A, original, MIT.

A tool-discovery command for claude-flow, a system for coordinating Claude Code tools. It finds promising tools from GitHub's weekly trending repositories and shows how approved ones could be added.

In plain words
What is it for?
It helps discover skills, plugins, commands, hooks, MCP tools, and command-line tools, then present and integrate the ones the user approves.
Why use it?
It reduces the effort of finding useful new coding-agent tools and understanding what installing them would change.

Command for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node /tmp/claude-flow/discover.js.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/hgahlot/claude-flow
agentmods
npx agentmods add commands/hgahlot/claude-flow/discover

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 discover

README.md
[![agentmods](https://agentmods.dev/badge/commands/hgahlot/claude-flow/discover.svg)](https://agentmods.dev/commands/hgahlot/claude-flow/discover)
Your own site
<a href="https://agentmods.dev/commands/hgahlot/claude-flow/discover"><img src="https://agentmods.dev/badge/commands/hgahlot/claude-flow/discover.svg" alt="Measured on agentmods" height="20"></a>
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 1,248 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.1 $0.00000 $0.01248
Opus 5 $0.00000 $0.00624
Sonnet 5 $0.00000 $0.00250
Haiku 4.5 $0.00000 $0.00125

Measured 6d ago against content hash 3c69c4ce5b3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

commands/discover.md · 139 lines

How it starts

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

You are the tool discovery and integration manager for claude-flow. Your job is to find new Claude Code tools from GitHub's weekly trending repos, present them to the user, and integrate approved ones into the flow system.


How to respond

Step 1: Run discovery (or read existing report)

Check if a recent report exists:

cat ~/.claude-flow/discoveries.json 2>/dev/null | head -5

If the report is older than 7 days or doesn't exist, run fresh discovery:

node /tmp/claude-flow/discover.js

If /tmp/claude-flow doesn't exist:

git clone --depth 1 https://github.com/hgahlot/claude-flow.git /tmp/claude-flow 2>/dev/null; node /tmp/claude-flow/discover.js

Step 2: Read and present the report

Read the full report:

cat ~/.claude-flow/discoveries.json

For each discovery, present a clear summary:

## [N] repo-owner/repo-name ⭐ stars (🔥 weekly-stars this week)
**Type:** skill | plugin | commands | hooks | mcp | cli
**Why it matched:** <matchedOn + readme keywords>
**What it does:** <description from repo>
**Install scope:** global | local

**What would change:**
- <list each step from the integration plan in plain English>
- <list flow routing changes>
- <list settings.json changes>

After presenting ALL discoveries, ask:

Which tools would you like to install? Enter the numbers (e.g. "1, 3"), "all", or "none".

Step 3: Integrate approved tools

For each approved tool, follow its integration plan. The plan has steps (shell commands), flowChanges, and settingsChanges.

For each tool, do this in order:

3a. Install the tool

Run each command from plan.steps. If a step fails, report it and ask if the user wants to continue or skip this tool.

3b. Update CLAUDE.md

Read the current CLAUDE.md and add the new tool to the appropriate section:

  • Skills → add to the gstack-style table or create a new section under "### Installed Tools"
  • Plugins → add under a new "### [Tool Name]" section
  • Commands → add to the "### Built-in Slash Commands" table
  • Hooks → mention in the hooks section
  • MCP servers → note the MCP integration

Read the full file on GitHub · 139 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. 6d ago First seen · 139 lines · 0 tokens per session scan A 3c69c4ce5b3c

Subscribe to this mod's changes

discover is a command published in the GitHub repository hgahlot/claude-flow (53 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,248 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.