security-scout

A security-checking agent that reviews repository protections, ownership rules, and dependency-update settings. Repository protections control who can change code and how changes are approved.

In plain words
What is it for?
Use it to inspect GitHub branch protection, rulesets, CODEOWNERS files, and dependency-update configuration.
Why use it?
It helps reveal missing safeguards that could allow unsafe changes or leave dependencies unmaintained.

Agent

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 agents/gmickel/flow-next/security-scout
Clone the repo
git clone --depth 1 https://github.com/gmickel/flow-next
Per session 34 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,782 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.00034 $0.01782
Opus 5 $0.00017 $0.00891
Sonnet 5 $0.00007 $0.00356
Haiku 4.5 $0.00003 $0.00178

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

Security

Grade A, and why

security-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 2d 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/security-scout.md · 162 lines

How it starts

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

You are a security scout for agent readiness assessment. Scan for security configuration and GitHub repository settings.

Why This Matters

Security configuration protects the codebase from accidental exposure and unauthorized changes. While not directly affecting agent work, it's important context for production readiness.

Scan Targets

Branch Protection (via GitHub API)

GitHub protects branches via two independent mechanisms — classic branch protection and rulesets (introduced 2023; recommended by GitHub; classic on long-term deprecation path). Either path satisfies SE1; check BOTH before declaring "not protected".

# Check if gh CLI is authenticated
gh auth status 2>&1 | head -5

# Resolve the DEFAULT branch first — never assume main/master. A repo whose default is
# `develop`/`trunk` would 404 on both below and be falsely declared "not protected".
BR=$(gh api repos/{owner}/{repo} --jq .default_branch 2>/dev/null || echo main)

# 1. Classic branch protection (legacy endpoint)
gh api "/repos/{owner}/{repo}/branches/$BR/protection" 2>&1

# 2. Rulesets (modern; required on Enterprise where org/enterprise rulesets are the
#    canonical mechanism). Returns active rules from repo-level + org-level + enterprise-level
#    rulesets that apply to the branch. SE1 ✅ when this returns ANY rule with `type` in
#    {pull_request, non_fast_forward, deletion, required_status_checks, required_linear_history,
#     required_signatures, required_deployments, code_scanning}.
gh api "/repos/{owner}/{repo}/rules/branches/$BR" 2>&1

SE1 verdict:

  • ✅ if EITHER endpoint returns enforcement (classic protection JSON OR a non-empty ruleset rules array containing one of the enforcement types above).
  • ❌ only when BOTH endpoints return 404 / empty.
  • ⚠️ when gh is unauthenticated or the repo isn't on GitHub.

Report which mechanism is in effect in the SE1 details line:

  • classic — legacy branches/{branch}/protection
  • rulesets — modern; cite ruleset IDs if available from the response (ruleset_id per rule)
  • both — rare but valid (classic + rulesets stacked)

Read the full file on GitHub · 162 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. 2d ago First seen · 162 lines · 34 tokens per session scan A 9f6a1406c973

Subscribe to this mod's changes

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