mdhv-crossfile

mdhv-crossfile is an agent for coding agents from werkodev/mdhumanviewer. It costs 90 tokens per session (2,396 once invoked), scanned A, original, MIT.

A subagent that compares several Markdown files as a group after each file has been analyzed separately.

In plain words
What is it for?
Use it to produce cross-file findings from analysis JSON files and a dependency graph, including guidance on what to expand or collapse.
Why use it?
It finds relationships, contradictions and missing information that are easy to miss when reviewing files one at a time.

Agent

Part of the mdhumanviewer plugin — 1 skill, 4 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/werkodev/mdhumanviewer/mdhv-crossfile
Clone the repo
git clone --depth 1 https://github.com/werkodev/mdhumanviewer

Or install mdhumanviewer, the plugin that ships this one along with the rest of its 1 skill, 4 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 mdhv-crossfile

README.md
[![agentmods](https://agentmods.dev/badge/agents/werkodev/mdhumanviewer/mdhv-crossfile.svg)](https://agentmods.dev/agents/werkodev/mdhumanviewer/mdhv-crossfile)
Your own site
<a href="https://agentmods.dev/agents/werkodev/mdhumanviewer/mdhv-crossfile"><img src="https://agentmods.dev/badge/agents/werkodev/mdhumanviewer/mdhv-crossfile.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 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,396 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.00090 $0.02396
Opus 5 $0.00045 $0.01198
Sonnet 5 $0.00018 $0.00479
Haiku 4.5 $0.00009 $0.00240

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

Security

Grade A, and why

mdhv-crossfile 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/mdhv-crossfile.md · 201 lines

How it starts

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

Subagent: mdhv-crossfile (Stage S3 — cross-file findings, horizontal)

You operate between files. Stages S2 and S2b already rendered and verified each file against its own source; your job is the system-level layer that no single-file view can see: how the files relate, where they conflict, what is missing across the group, and what should stay expanded vs. collapse. You read the per-file analysis/*.json sidecars as a system, consult structure.json for the dependency graph, and write your findings into a fresh findings.json.

This is the most valuable output of the whole tool. A reader can open any single file themselves; what they cannot easily get is the map of contradictions and cross-cutting contracts that only exist in the relationships between files. Spend your effort here.

You read no source .md. The pipeline's whole point is read-once: each source already entered an LLM context exactly twice (render + verify) and is now faithfully captured. You work from the structured artifacts only. This keeps S3 a single, cheap, zero-source-read pass.

Parameters (filled in by the orchestrator)

  • ANALYSIS_DIR — absolute path to the session's analysis/ directory. It holds one analysis/<slug>.json per selected file: { slug, tldr, sections[] { id, title, kind, source_headings[] }, contracts[] { text, source_anchor } }. Read all of them. contracts[].text is stored already-normalized (verbatim spans of rules, edge cases, input/output guarantees); kind is verbatim_critical or summarized.
  • STRUCTURE_PATH — absolute path to the session's structure.json. Use it for the dependency graph (graph.nodes[], graph.edges[] with strength strong/weak and reason), each file's links[] (with resolved_slug when the target is in-run), files[].title, and files[].file_path. Slugs in analysis/*.json match structure.json files[].slug.
  • FINDINGS_OUT — absolute path to write findings.json. You create this file; it does not exist yet.

Read the full file on GitHub · 201 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 · 201 lines · 90 tokens per session scan A b70735613119

Subscribe to this mod's changes

mdhv-crossfile is an agent published in the GitHub repository werkodev/mdhumanviewer (3 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 2,396 once invoked, about $0.0005 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.

Related

Other agents, from other repositories

context-analyzer

Analyzes context usage patterns, identifies waste, and provides optimization recommendations. Use when the user asks about token usage, context efficiency, or wants to optimize their Claude Code workflow.

egorfedorov/claude-context-optimizer · 39 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data.

iliaal/whetstone · 41 tokens

ia-best-practices-researcher

Researches external framework docs, version-specific constraints, and industry conventions for any technology. Use when you need authoritative external documentation.

iliaal/whetstone · 34 tokens

ia-architecture-strategist

Analyzes code for architectural compliance, design patterns, naming conventions, and structural integrity. Use when adding services or evaluating refactors that span more than two modules, or when checking codebase-wide consistency.

iliaal/whetstone · 47 tokens

reviewer-opus

Deeply reviews code for bugs, logic errors, and security vulnerabilities using comprehensive reasoning to catch subtle, high-impact issues that require careful analysis.

Joncik91/ucai · 32 tokens

due-diligence

Use this agent for due diligence analysis, target screening, risk assessment, and systematic evaluation of companies or opportunities. Invoke when the task requires structured investigation against a DD framework. Examples: "screen Target X for acquisition red flags", "run commercial DD on Acme Corp", "does the…

Aznatkoiny/zAI-Skills · 69 tokens