recon

recon is a command for Claude Code from pashki975/thm-claude-kit. It costs 11 tokens per session (172 once invoked), scanned A, original, MIT.

A command that performs staged network reconnaissance with Nmap, a tool for finding reachable ports and identifying services on a target IP address.

In plain words
What is it for?
Use it for authorized security testing to find open ports, identify service versions, summarize findings, update notes, and suggest further enumeration.
Why use it?
It organizes broad port discovery and focused service checks, reducing the need to run and interpret separate scans manually.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 commands/pashki975/thm-claude-kit/recon
Clone the repo
git clone --depth 1 https://github.com/pashki975/thm-claude-kit

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 recon

README.md
[![agentmods](https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/recon.svg)](https://agentmods.dev/commands/pashki975/thm-claude-kit/recon)
Your own site
<a href="https://agentmods.dev/commands/pashki975/thm-claude-kit/recon"><img src="https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/recon.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 172 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.00011 $0.00172
Opus 5 $0.00005 $0.00086
Sonnet 5 $0.00002 $0.00034
Haiku 4.5 $0.00001 $0.00017

Measured 5d ago against content hash 6f9ac022b792, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

recon 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 5d 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/commands/recon.md · 15 lines

What it actually says

Run reconnaissance against target IP: $ARGUMENTS

Steps:

  1. Create ./scans/ if it doesn't exist
  2. Fast port discovery: nmap -p- --min-rate 5000 -T4 $ARGUMENTS -oN scans/nmap-allports.txt
  3. Parse open ports, then run a targeted service/version + default-script scan on ONLY those ports: nmap -sV -sC -p<open_ports> $ARGUMENTS -oN scans/nmap-services.txt
  4. Summarize: table of port | service | version | notes
  5. Update notes.md with the target IP and discovered services
  6. Propose the next 2-3 enumeration steps based on what's open
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. 5d ago First seen · 15 lines · 11 tokens per session scan A 6f9ac022b792

Subscribe to this mod's changes

recon is a command published in the GitHub repository pashki975/thm-claude-kit (2 stars, last pushed 22d ago), licensed MIT. It adds 11 tokens to every session and 172 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-31.