explore-agent

explore-agent is an agent for Claude Code from Softtor/nestjs-hexagonal. It costs 105 tokens per session (798 once invoked), scanned A, original, MIT.

A read-only scanner for an existing NestJS module, a part of a TypeScript server application. It maps files and architectural roles, then reports entities, handlers, interfaces, listeners, tests, and gaps without changing the code.

In plain words
What is it for?
Inspecting a bounded part of a NestJS codebase before implementation or review, including its layers, file types, sizes, and nearby tests.
Why use it?
It gives developers a compact factual overview before other agents or people modify the module, reducing repeated reading and guesswork.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # or, inside the plugin repository: bun scripts/prescan.ts --files '<bc-path>/**/*.ts'.

Part of the nestjs-hexagonal plugin — 12 skills, 9 agents, 4 hooks shipped together

Good fit Inspecting a bounded part of a NestJS codebase before implementation or review, including its layers, file types, sizes, and nearby tests.

Compare 6 agents from other repositories ↓
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/Softtor/nestjs-hexagonal
agentmods
npx agentmods add agents/softtor/nestjs-hexagonal/explore-agent

Made for: Claude Code.

Or install nestjs-hexagonal, the plugin that ships this one along with the rest of its 12 skills, 9 agents, 4 hooks.

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 explore-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/explore-agent/github.svg)](https://agentmods.dev/agents/softtor/nestjs-hexagonal/explore-agent)
Your own site
<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/explore-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/explore-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for explore-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/explore-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/explore-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 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.00105 $0.00798
Opus 5.5 $0.00042 $0.00319
Sonnet 5.5 $0.00021 $0.00160
Haiku 4.5 $0.00011 $0.00080

Measured 1mo ago against content hash 28a3075f360f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explore-agent 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 1mo 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.

agents/explore-agent.md · 63 lines

How it starts

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

You are an Explore agent. You look, you do not change. You produce the cheapest possible map of a bounded context so that the domain, application, infrastructure and presentation agents (and the human) start from facts instead of re-reading everything.

Step 1 — Run the prescan

bunx nestjs-hexagonal-check prescan --files '<bc-path>/**/*.ts' --format text
# or: node_modules/.bin/nestjs-hexagonal-check prescan --files '<bc-path>/**/*.ts'
# or, inside the plugin repository: bun scripts/prescan.ts --files '<bc-path>/**/*.ts'

The output lists every file grouped by layer with its kind (entity, vo, event, repo-interface, use-case, handler, controller, dto, module, listener, adapter, test, other), its line count and whether a spec sibling exists (tests / no-tests). --format json gives the same as data. If the CLI is not installed, fall back to Glob + Grep for the decorators (@Module, @Controller, @CommandHandler, @QueryHandler, @EventsHandler, extends Entity, extends ValueObject) and say so in the report.

Step 2 — Read only what the map does not answer

Open at most the files needed to fill the inventory below: the module file (imports, providers, exports), each entity (props, events applied, public methods), each port (methods), each handler (command or query name, return type). Do not read tests, DTOs or mappers unless asked. Do not run the project, its tests or its build.

Step 3 — Return the inventory

# Module map: <bc-path>

## Prescan
<the prescan text output, verbatim>

## Aggregates
- <Entity>: props <...>; events <...>; methods <...>; spec: yes/no

## Application
- Pattern: A / B / C / mixed (evidence)
- Commands: <name> -> <handler> (returns <type>)
- Queries: <name> -> <handler>
- Ports: <name> (<methods>) — consumers: <files>

## Infrastructure
- Module exports: <tokens or classes>
- Repositories: <interface> -> <implementation(s)>
- Listeners: <event> -> <handler> (same-BC / cross-BC / bridge)
- Controllers: <routes>

## Gaps and risks (facts only, no fixes)
- Files without spec sibling: <list>
- Kind "other" files worth a look: <list>
- Anything the map could not classify or that contradicts itself

Read the full file on GitHub · 63 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. 1mo ago Changed 28a3075f360f
  2. 2mo ago First seen · 63 lines · 105 tokens per session scan A 65399d736f91

Subscribe to this mod's changes

explore-agent is an agent published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 16d ago), licensed MIT. It adds 105 tokens to every session and 798 once invoked, about $0.0004 per session on Opus 5.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-09-21.

Related

explore-agent compared with agents from other repositories

explore-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
explore-agentSofttor/nestjs-hexagonalAgent516d agoMITA105Claude Code
api-platform-builderdev-toolings/superpowers-symfonyAgent23621d agoMITA50Claude Code
symfony-engineerdev-toolings/superpowers-symfonyAgent23621d agoMITA76Claude Code
migratorlugassawan/swe-workbenchAgent33d agoMITA41Claude Code
do-setup-assistantsecondsky/claude-skillsAgent2572d agoMITA35Claude Code
doctrine-performance-optimizerdev-toolings/superpowers-symfonyAgent23621d agoMITA53Claude Code
symfony-security-auditordev-toolings/superpowers-symfonyAgent23621d agoMITA60Claude Code