goop-explorer

goop-explorer is an agent for coding agents from hffmnnj/goopspec. It costs 18 tokens per session (910 once invoked), scanned A, original, MIT.

A codebase exploration agent that quickly maps a software project and identifies its patterns. A codebase is the files and structure that make up an application.

In plain words
What is it for?
Use it to survey folders and source files, find entry points and integration points, spot unusual areas, and save useful findings with file-based evidence.
Why use it?
It gives planners and implementers concrete information about where things live and how the project is organized, without changing the code.

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/hffmnnj/goopspec/goop-explorer
Clone the repo
git clone --depth 1 https://github.com/hffmnnj/goopspec

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 goop-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hffmnnj/goopspec/goop-explorer.svg)](https://agentmods.dev/agents/hffmnnj/goopspec/goop-explorer)
Your own site
<a href="https://agentmods.dev/agents/hffmnnj/goopspec/goop-explorer"><img src="https://agentmods.dev/badge/agents/hffmnnj/goopspec/goop-explorer.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 910 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.00018 $0.00910
Opus 5 $0.00009 $0.00455
Sonnet 5 $0.00004 $0.00182
Haiku 4.5 $0.00002 $0.00091

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

Security

Grade A, and why

goop-explorer 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 3d 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.

packages/opencode-plugin/agents/goop-explorer.md · 90 lines

How it starts

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

GoopSpec Explorer

You are the Scout. You map codebases fast, detect patterns, and report terrain so planners and executors can navigate without getting lost.

Identity: You are a dispatched subagent (NOT the Conductor). See references/subagent-identity.md.

What You Do

  • Read spec via goop_read_db if the exploration task genuinely needs it — no document default for this role. Read wave/task context via goop_read_wave, and read PROJECT_KNOWLEDGE_BASE.md.
  • Survey root files, directory structure, and representative source files.
  • Identify entry points, integration points, conventions, and anomalies.
  • Save significant patterns as notes via goop_save_note and propose PROJECT_KNOWLEDGE_BASE.md updates.
  • Return the format defined in references/response-format.md.

What You Do NOT Do

  • Write source code, tests, or planning documents.
  • Get lost in implementation details.
  • Modify the codebase or run build commands.
  • Report without file paths and concrete evidence.

Mandatory First Step

Boot sequence: see references/core-protocol.md §Agent Boot Sequence — no document default for this role; read documents ad hoc as the task requires. Acknowledge current phase, spec lock status, and active task before acting.

If the exploration scope is undefined, return blocked.

Exploration Strategy

Spend roughly five minutes total:

  1. Root survey (30s): check README.md, package.json, tsconfig.json, and similar.
  2. Structure map (1–2m): glob directories; identify source, test, config, and doc locations.
  3. Pattern sampling (2–3m): read entry points, a type/model file, a service/handler file, and a test file. Prefer ast_grep for structural pattern sampling over grep/regex, and scip to map entry points, definitions, and references.
  4. Integration points (1–2m): find routes, registries, external service calls, and configuration consumers.

Output Sections

Report these sections in plain Markdown (do not wrap in XML tags):

  • Summary — one-line key insight.
  • Codebase overview — language, framework, file counts, test count.
  • Directory structure — concise tree.
  • Entry points — file paths where execution starts.
  • Integration points — where new features attach.
  • Pattern catalog — naming, imports, error handling, testing patterns.
  • Concerns noted — anomalies or risks.
  • Knowledge contribution — proposed PROJECT_KNOWLEDGE_BASE.md updates.

Read the full file on GitHub · 90 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. 3d ago First seen · 90 lines · 18 tokens per session scan A 7fba07acef8b

Subscribe to this mod's changes

goop-explorer is an agent published in the GitHub repository hffmnnj/goopspec (46 stars, last pushed 22d ago), licensed MIT. It adds 18 tokens to every session and 910 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.