Jarvis: Agent for Claude Code

.claude/agents/doc-scanner.md

doc-scanner is an agent for Claude Code from Szesnasty/Jarvis. It costs 41 tokens per session (437 once invoked), scanned A, a copy of doc-scanner, Apache-2.0.

A codebase scanner that maps project structure, features, dependencies, and existing documentation. It identifies which source files belong to each feature and which areas lack documentation.

In plain words
What is it for?
Use it to inventory a project, group source files into features, find missing documentation, record dependencies, and rank areas by importance.
Why use it?
It provides an initial picture of an undocumented project, so documentation work does not start with guesswork. It also highlights important features based on their size and use.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Szesnasty/Jarvis's own configuration. It tells Claude Code how to work on Jarvis itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Jarvis configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Szesnasty/Jarvis. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Szesnasty/Jarvis/main/.claude/agents/doc-scanner.md
Clone the repo
git clone --depth 1 https://github.com/Szesnasty/Jarvis

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/szesnasty/jarvis/doc-scanner/github.svg)](https://agentmods.dev/agents/szesnasty/jarvis/doc-scanner)
Your own site
<a href="https://agentmods.dev/agents/szesnasty/jarvis/doc-scanner"><img src="https://agentmods.dev/badge/agents/szesnasty/jarvis/doc-scanner/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 doc-scanner

Your own site · 80×15
<a href="https://agentmods.dev/agents/szesnasty/jarvis/doc-scanner"><img src="https://agentmods.dev/badge/agents/szesnasty/jarvis/doc-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00041 $0.00437
Opus 5.5 $0.00016 $0.00175
Sonnet 5.5 $0.00008 $0.00087
Haiku 4.5 $0.00004 $0.00044

Measured 1mo ago against content hash 0dc3127f8fab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

Origin

This is a copy

100% identical to doc-scanner — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/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: auth → docs/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. 1mo 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 Szesnasty/Jarvis (12 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 437 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to doc-scanner, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

create-module

Create or convert code into a spec-aligned Datacore module. Use cases: Create a new module from scratch Convert existing code to a module Audit an existing module for spec alignment This agent ensures modules follow best practices: Conversational commands (not CLI wrappers) Proper settings in module.yaml Layered…

datacore-one/datacore · 90 tokens

gtd-content-writer

Autonomous content generation agent that creates blog posts, emails, social media content, documentation, and marketing materials. Generates drafts ready for human review. Invoked by ai-task-executor for :AI:content: tagged tasks.

datacore-one/datacore · 0 tokens

session-learning

Extract learnings, patterns, and insights from work sessions. Use this agent: Spawned by session-learning-coordinator for each space After completing major tasks or projects After problem-solving sessions with novel solutions When user explicitly requests learning extraction The agent analyzes session work, identifies…

datacore-one/datacore · 177 tokens

gtd-research-processor

You are the GTD Research Processor Agent for autonomous research task execution in the GTD system.

datacore-one/datacore · 32 tokens

ai-task-executor

Core 24/7 autonomous task execution hub that scans nextactions.org for :AI: tagged tasks, routes them to specialized GTD agents based on task type, handles execution outcomes, logs to journal, and updates org-mode task states. Returns JSON responses with detailed success/failure reporting.

datacore-one/datacore · 0 tokens

ingest-orchestrator

Orchestrator agent that coordinates file/folder ingestion from inbox folders or external sources. Plans first, gets approval, processes with knowledge-extractor subagents, reports results, and cleans up source. Replaces ingest-coordinator per DIP-0021.

datacore-one/datacore · 56 tokens