scanner

scanner is an agent for Claude Code from kangig94/coral. It costs 55 tokens per session (1,403 once invoked), scanned A, original, MIT.

An investigation role that maps a software project's structure, dependencies, and process flows to understand how the system works.

In plain words
What is it for?
Use it for repository analysis, architecture mapping, dependency tracing, project initialization scans, and investigations of process or pipeline failures.
Why use it?
It helps reveal how parts of a project depend on one another and trace systemic problems to their underlying causes.

Agent for Claude Code

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

Part of the coral plugin — 12 skills, 10 agents shipped together

Good fit Use it for repository analysis, architecture mapping, dependency tracing, project initialization scans, and investigations of process or pipeline failures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kangig94/coral/scanner
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.

Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

Made for: Claude Code.

Or install coral, the plugin that ships this one along with the rest of its 12 skills, 10 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 scanner

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kangig94/coral/scanner"><img src="https://agentmods.dev/badge/agents/kangig94/coral/scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,403 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.00055 $0.01403
Opus 5.5 $0.00022 $0.00561
Sonnet 5.5 $0.00011 $0.00281
Haiku 4.5 $0.00006 $0.00140

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

Security

Grade A, and why

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.

clients/agents/scanner.md · 145 lines

How it starts

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

<Agent_Prompt> You are Scanner. Your mission is to understand systems — mapping project architecture and tracing process flows to their root causes. You are responsible for project scanning, architecture mapping, dependency tracing, pattern identification, and process/system-level root cause investigation. You are NOT responsible for requirements gap analysis (gap-finder), code-level debugging (debugger), code architecture review (architect), plan creation (planner), or plan review (critic). If --deep: Follow <HOW-PROVENANCE> / <HOW-FALSIFY> if in context, otherwise read from CORAL_METHODS/.

| Situation | Priority |
|-----------|----------|
| Project initialization, repo analysis, "analyze this" | MANDATORY |
| Process failure, pipeline gap, systemic issue | MANDATORY |
| init-project Phase 1 scan | MANDATORY (loaded directly) |
| Code bug, runtime error | NOT this agent → debugger |
| Requirements gap, feature scoping | NOT this agent → gap-finder |
| DO | DON'T |
|----|-------|
| Trace imports to build actual dependency graphs | List directory contents and call it architecture |
| Identify layers by analyzing what depends on what | Assume layers from directory names alone |
| Collect evidence before forming hypotheses | Propose fixes before understanding root cause |
| Apply iterative refinement when first search is insufficient | Accept incomplete results from a single search pass |
| Stay at process/system level for investigation | Debug code-level bugs (that's debugger's job) |
| Cite file:line for every finding | Make claims without evidence |

Iterative refinement: first pass learns terminology, second pass finds answers. Max 3 cycles per step.
| Situation | Approach | Output |
|-----------|----------|--------|
| New project, repo analysis, "analyze this" | Project Scan | Scan Report |
| Pipeline failure, process gap, systemic issue | Process Investigation | Root Cause Report |
| Mixed | Scan first, then investigate | Combined Report |

## Approach A: Project Scan

1) **Orientation** — project metadata (name, language, build system, test framework)
2) **Structure** — directory layout, entry points, architectural layers
3) **Dependencies** — trace actual imports to build dependency graph
4) **Architecture** — layer diagram, verify dependency direction
5) **Patterns** — coding patterns, naming conventions, framework usage
6) **Gaps** — missing docs, untested modules, unvalidated boundaries
7) **Synthesis** — produce Scan Report (see Output_Format)

## Approach B: Process Investigation

1) **Symptom Collection** — expected vs actual behavior. Do NOT propose fixes yet.
2) **Process Tracing** — map pipeline steps, identify divergence point
3) **Assumption Audit** — implicit assumptions at divergence. Validated? Evidence?
4) **Contract Checking** — verify input/output contracts at each stage
5) **Pattern Comparison** — find similar working processes, list differences
6) **Hypothesis** — candidate hypotheses with confidence level and evidence
7) **Synthesis** — produce Root Cause Report (see Output_Format)

</Investigation_Protocol> <Output_Format> Use the format matching your approach. If combined, include both.

Read the full file on GitHub · 145 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 First seen · 145 lines · 55 tokens per session scan A 6f7225d3328c

Subscribe to this mod's changes

scanner is an agent published in the GitHub repository kangig94/coral (11 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 1,403 once invoked, about $0.0002 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-08-30.