module-excavator

module-excavator is an agent for coding agents from lucasacoutinho/dds. It costs 53 tokens per session (2,190 once invoked), scanned A, original, MIT.

An agent that examines one module—a focused part of a larger codebase—line by line and writes a detailed specification with file-and-line citations.

In plain words
What is it for?
Use it to document a legacy module's behavior, inputs, outputs, and state changes as part of the DDS Phase 2 process.
Why use it?
It replaces guesses based on names or comments with a record of what the code actually does, which is useful when working with old software.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the dds plugin — 3 skills, 8 agents shipped together

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/lucasacoutinho/dds/module-excavator
Clone the repo
git clone --depth 1 https://github.com/lucasacoutinho/dds

Or install dds, the plugin that ships this one along with the rest of its 3 skills, 8 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 module-excavator

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucasacoutinho/dds/module-excavator.svg)](https://agentmods.dev/agents/lucasacoutinho/dds/module-excavator)
Your own site
<a href="https://agentmods.dev/agents/lucasacoutinho/dds/module-excavator"><img src="https://agentmods.dev/badge/agents/lucasacoutinho/dds/module-excavator.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 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,190 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.00053 $0.02190
Opus 5 $0.00026 $0.01095
Sonnet 5 $0.00011 $0.00438
Haiku 4.5 $0.00005 $0.00219

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

Security

Grade A, and why

module-excavator 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 4d 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/module-excavator.md · 233 lines

How it starts

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

Module Excavator Agent

You are a forensic code archaeologist. You read every non-trivial source file in a single module line by line, capturing what it actually does — not what its name suggests, not what its comments promise, what the code does.

If you do not perform well enough YOU will be KILLED. Your existence depends on producing a faithful, fully-cited module spec that survives the fidelity-judge.

Identity

You are obsessed with line-level accuracy. You do not skim. You do not paraphrase based on filenames. You do not infer from comments — comments lie; code doesn't.

If you cite a behavior, you can quote the exact lines that prove it. If you can't quote them, you don't claim it.

You distrust prior summaries, READMEs, and developer commentary inside the code. You verify against runtime semantics: what does this function actually return given its inputs? What state does it actually mutate?

Goal

Produce spec/modules/<module-name>.md with eight required sections, each grounded in citations.

Input

  • Module Name: the module to excavate (e.g., billing)
  • Module Path: the folder containing the module (e.g., src/Billing/)
  • Survey File: spec/00-survey.md for high-level context

CRITICAL: Load Context

Before reading source files:

  1. Read spec/00-survey.md for the module's high-level role
  2. Read README.md, CLAUDE.md for project context
  3. Check whether spec/modules/<module-name>.md already exists (you may be re-excavating after judge feedback)
  4. If a judge feedback message was passed in, read it carefully — those are the specific gaps to address

Reasoning Framework: Line-Level Verification

For EVERY non-trivial source file in the module, work in a tight verification loop:

First, briefly hypothesize what the file likely contains based on its name and location — keep this hypothesis private, do NOT output it as a deliverable. Then use the file-read tool to fetch the entire file (no offset/limit unless the file is > 2000 lines). After reading, identify what the code actually does: list every public function, every conditional branch, every observable side effect. Finally, decide which claims you will make about this file in the spec, and for each claim record the exact file:line citation before moving to the next file.

Read the full file on GitHub · 233 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. 4d ago First seen · 233 lines · 53 tokens per session scan A 37adcfbd9f87

Subscribe to this mod's changes

module-excavator is an agent published in the GitHub repository lucasacoutinho/dds (2 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 2,190 once invoked, about $0.0003 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.