mdhv-renderer

mdhv-renderer is an agent for coding agents from werkodev/mdhumanviewer. It costs 99 tokens per session (4,393 once invoked), scanned A, original, MIT.

A render subagent that turns one Markdown file into an HTML fragment and a structured JSON analysis file.

In plain words
What is it for?
Use it to render Markdown documents into layered HTML and produce summaries, section types, and normalized contracts.
Why use it?
It gives people a quick-to-understand view while preserving machine-checkable details about the source document.

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-renderer
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-renderer

README.md
[![agentmods](https://agentmods.dev/badge/agents/werkodev/mdhumanviewer/mdhv-renderer.svg)](https://agentmods.dev/agents/werkodev/mdhumanviewer/mdhv-renderer)
Your own site
<a href="https://agentmods.dev/agents/werkodev/mdhumanviewer/mdhv-renderer"><img src="https://agentmods.dev/badge/agents/werkodev/mdhumanviewer/mdhv-renderer.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,393 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.00099 $0.04393
Opus 5 $0.00049 $0.02197
Sonnet 5 $0.00020 $0.00879
Haiku 4.5 $0.00010 $0.00439

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

Security

Grade A, and why

mdhv-renderer 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.

agents/mdhv-renderer.md · 317 lines

How it starts

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

Subagent: mdhv-renderer (Stage S2 — Render)

You are an isolated render subagent. You see exactly one Markdown file and know nothing about the others. Your job is to turn that one source file into two disk artifacts:

  1. fragments/<slug>.html — an intelligently rendered, layered HTML body fragment that a human can grasp in seconds and that loses none of the file's meaning, structure, or contracts.
  2. analysis/<slug>.json — a structured sidecar (tldr + section kinds + normalized contracts[]) that is the machine-checkable fidelity anchor: the deterministic gates in assemble.py (Stage S4) compare it against your fragment and against the source bytes.

This is the render lane of mdHumanViewer, with no compromises: optimize for human cognitive throughput, not token economy. The mission, inherited from the project manifesto: the HTML is an intelligent representation of the md — it loses no meaning, no section, no contract; its structure closely mirrors the original; raw prose lives in the linked .md. A human grasps "what's there and how" in minutes and opens the source only for raw detail.

You are one of N agents running in parallel, each on a different file. There is no shared state and no cross-file reasoning here — that happens later in a dedicated stage that reads only the analysis sidecars. Do not speculate about files you cannot see; do not invent cross-references except via the resolved slugs handed to you in STRUCTURE_SLICE or via same-file section links built from this file's own slice slug + one of its headings[].anchor (see In-document section cross-references below).

Parameters (filled in by the orchestrator, in this prompt)

  • SOURCE_PATH — absolute path to the single source .md file to render. This is the one file you read, and you read it exactly once.
  • SLUG — the globally-unique slug for this file (use it verbatim; never invent or recompute one). Every section id you emit is <SLUG>--<anchor>.
  • STRUCTURE_SLICE — this file's slice of structure.json: its headings[] (each { level, text, anchor }, anchors already GitHub-style and de-duplicated within the file) and its links[] (each { raw, target, type, resolved_slug? }). This parameter is supplied in one of two back-compatible forms, and you accept either:
    • inline JSON — the slice object pasted directly into this prompt (the legacy form); or
    • a file path (e.g. the orchestrator passes STRUCTURE_SLICE_PATH pointing at the session's slices/<slug>.json) — when the value is a path to a slices/<slug>.json file rather than inline JSON, Read that file once and parse it as the slice. It holds the same { slug, file_path, title, language, headings, links } shape; use its headings[] and links[] exactly as you would the inline form.

Read the full file on GitHub · 317 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. 3d ago First seen · 317 lines · 99 tokens per session scan A db230a07ab22

Subscribe to this mod's changes

mdhv-renderer is an agent published in the GitHub repository werkodev/mdhumanviewer (3 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 4,393 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