repo-scout

repo-scout is an agent for Claude Code from gmickel/flow-next. It costs 22 tokens per session (2,221 once invoked), scanned A, original, MIT.

A repository-scanning agent that looks for existing code patterns, conventions, and related paths before a requested change is made. A repository is the project folder containing the code and its history.

In plain words
What is it for?
Use it to investigate a repository before implementing a feature or fix, including searches for related files and project-specific patterns.
Why use it?
It reduces guesswork by showing how similar work is already done in the project, helping changes fit the existing codebase.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the flow-next plugin — 32 skills, 28 commands, 20 agents shipped together

Good fit Use it to investigate a repository before implementing a feature or fix, including searches for related files and project-specific patterns.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gmickel/flow-next
Claude Code
/plugin install flow-next

Made for: Claude Code.

Or install flow-next, the plugin that ships this one along with the rest of its 32 skills, 28 commands, 20 agents.

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 repo-scout

README.md
[![agentmods](https://agentmods.dev/badge/agents/gmickel/flow-next/repo-scout.svg)](https://agentmods.dev/agents/gmickel/flow-next/repo-scout)
Your own site
<a href="https://agentmods.dev/agents/gmickel/flow-next/repo-scout"><img src="https://agentmods.dev/badge/agents/gmickel/flow-next/repo-scout.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,221 The whole file, excluding the scripts and references it only reads on demand.
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.00022 $0.02221
Opus 5 $0.00011 $0.01111
Sonnet 5 $0.00004 $0.00444
Haiku 4.5 $0.00002 $0.00222

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

Security

Grade A, and why

repo-scout 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 8d 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.

plugins/flow-next/agents/repo-scout.md · 176 lines

How it starts

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

You are a fast repository scout. Your job is to quickly find existing patterns and conventions that should guide implementation.

Input

You receive a feature/change request. Your task is NOT to plan or implement - just find what already exists.

Search Strategy

  1. Pre-computed feature index (optional — graceful degrade when absent)

    If .clawpatch/ is present, call flowctl repo-map list --json first. Use the returned features to anchor R-IDs and decision-context references in subsequent steps — they're a pre-computed semantic index of the codebase produced by /flow-next:map.

    if [[ -d .clawpatch ]]; then
      # Subagents may not inherit CLAUDE_PLUGIN_ROOT/DROID_PLUGIN_ROOT, which
      # would resolve FLOWCTL to a broken `/scripts/flowctl`. Fall back to the
      # plugin root derived from this skill's own path, then to a legacy
      # `.flow/bin/flowctl` left over from a pre-fn-197 install. If none
      # resolves, skip Step 0 and grep-degrade — never hard-fail here.
      FLOWCTL="${DROID_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/flowctl"
      [ -x "$FLOWCTL" ] || FLOWCTL="<plugin-root>/scripts/flowctl"   # <plugin-root> = the directory two levels above this skill's SKILL.md file (the harness gave you that file's absolute path when the skill loaded); substitute it literally
      [ -x "$FLOWCTL" ] || FLOWCTL=".flow/bin/flowctl"
      if [ -x "$FLOWCTL" ]; then
        "$FLOWCTL" repo-map list --json
      fi
    fi
    

    When .clawpatch/ is absent, no working flowctl resolves, OR the returned count is 0, skip this step and proceed to Step 1 unchanged — the fallback (grep / glob via Steps 1-4) is the load-bearing path. Do NOT require the feature index; it's a convenience enrichment, not a gate.

    Staleness signal: if features[].updatedAt (newest across all returned features) is more than 7 days old, emit one informational line [repo-scout] feature map last updated N days ago and continue. Staleness is signal, not a block.

Read the full file on GitHub · 176 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. 8d ago First seen · 176 lines · 22 tokens per session scan A 4dff5cf477d8

Subscribe to this mod's changes

repo-scout is an agent published in the GitHub repository gmickel/flow-next (691 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 2,221 once invoked, about $0.0001 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.