markdown-map

Reviewed at commit 39335b2

Build a heading outline with source line numbers.

Made by
Yash Thakker
What we checked

Adds a /markdown-map command that opens a pane with an indented outline of the headings in a Markdown file (default README.md, up to 256 KiB), with source line numbers. It reads only that file when you open or refresh it, makes no network calls, runs no programs and stores nothing.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (to register the markdown-map command), command.run (filtered to markdown-map) and ui.render for its own pane. Runtime calls: $.command.register, $.fs.stat, $.fs.read (read-only, size capped at 262144 bytes, path from the command argument or the pane input, rejected only when empty, starting with a dash or containing control characters), $.ui.open, $.ui.invalidate, $.ui.resolve. Headings are extracted line by line with regular expressions, skipping fenced code blocks. Output is stripped of control characters and truncated to 9000 characters. Errors are caught and shown in the pane. No writes, no network, no process execution. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of markdown-map
Made this mod? Add a badge to your README

modsforClaude badge for markdown-map

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/markdown-map.svg)](https://modsforclaude.com/mods/markdown-map/)

← All mods