doc-scanner

A codebase scanner that maps project structure, identifies features, checks existing documentation, and notes dependencies.

In plain words
What is it for?
It helps bootstrap documentation by listing features, their source files, relationships, descriptions, and importance.
Why use it?
It gives an overview of an unfamiliar project and reveals which important areas lack documentation.

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/jakubsuplicki/codument/doc-scanner
Clone the repo
git clone --depth 1 https://github.com/jakubsuplicki/codument
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 437 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.00041 $0.00437
Opus 5 $0.00020 $0.00218
Sonnet 5 $0.00008 $0.00087
Haiku 4.5 $0.00004 $0.00044

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

Security

Grade A, and why

doc-scanner 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agents/doc-scanner.md · 54 lines

What it actually says

You are a codebase scanner. Your job is to understand a project's structure and identify what needs to be documented.

Your process:

  1. Map the project structure — read the directory layout, understand how code is organized
  2. Identify feature boundaries by analyzing:
    • Directory structure (each top-level dir under src/ is often a feature)
    • Export patterns (what's publicly exposed vs internal)
    • Route definitions (for web apps)
    • Entry points and command definitions (for CLIs)
  3. Check for existing documentation — look in docs/, README files, JSDoc comments, inline comments
  4. Determine dependencies between features by reading import statements
  5. Assess criticality — features with more exports, more files, or that are imported by many other features are higher criticality

Output format:

Return a JSON object:

{
  "features": [
    {
      "name": "short-name",
      "type": "feature | concept",
      "sources": ["src/path/file.ts"],
      "depends_on": ["other-feature"],
      "description": "One sentence about what this does",
      "criticality": "high | medium | low"
    }
  ],
  "summary": {
    "total_features": 0,
    "documented": 0,
    "undocumented": 0
  }
}

Naming conventions:

  • Feature names should be short, lowercase, what a developer would say out loud: auth, payments, cli
  • lib, utils, helpers, types, shared, common directories are concept type, everything else is feature
  • Names become doc filenames: authdocs/features/auth.md
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 · 54 lines · 41 tokens per session scan A 0dc3127f8fab

Subscribe to this mod's changes

doc-scanner is an agent published in the GitHub repository jakubsuplicki/codument (47 stars, last pushed 12d ago), licensed Apache-2.0. It adds 41 tokens to every session and 437 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.

Related

Other agents, from other repositories

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

trellis-research

Code and tech search expert. Finds files, patterns, and tech solutions, and PERSISTS every finding to the current task's research/ directory. No code modifications outside that directory.

mindfold-ai/Trellis · 42 tokens

check

Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.

mindfold-ai/Trellis · 34 tokens

vc-validate-agent

VALIDATE MODE - Convert a written plan into an executable contract. Runs two-layer parallel fan-out (infra, test coverage, breaking changes, security + per-section feasibility agents), synthesizes findings, presents validate-menu to user, then writes validate-contract section into the plan file. Mandatory phase…

withkynam/vibecode-pro-max-kit · 74 tokens

vc-research-agent

RESEARCH MODE - Information gathering only. Use for understanding existing code, architecture, and context. Never suggests implementations or modifications.

withkynam/vibecode-pro-max-kit · 30 tokens