imark-review

A command that opens a Markdown document—a plain-text document with formatting marks—in Imark for review and waits for the reviewer’s decision.

In plain words
What is it for?
Use it to review plans, specifications, and other Markdown documents, then follow the reviewer’s approval or requested changes.
Why use it?
It keeps review comments in the original document, so the notes remain with the file and can guide the next revision. It also prevents using Imark for code review, since it is a Markdown reader.

Command

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 commands/migsilva89/imark/imark-review
Clone the repo
git clone --depth 1 https://github.com/migsilva89/imark
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 470 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.00016 $0.00470
Opus 5 $0.00008 $0.00235
Sonnet 5 $0.00003 $0.00094
Haiku 4.5 $0.00002 $0.00047

Measured yesterday against content hash 506f016829d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

imark-review 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 yesterday.

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.

plugin/commands/imark-review.md · 44 lines

What it actually says

Open a document in Imark for the user to review, and wait for their decision.

Run this, passing the arguments through as they came:

node "${CLAUDE_PLUGIN_ROOT}/scripts/imark.mjs" review $ARGUMENTS

Markdown only — plans, specs, RFCs, docs. If you are asked to review code, say that Imark is a markdown reader and that reviewing code is a job for GitHub or their editor.

The review happens on the file itself — no copy is made. The reviewer's notes are written into the document as <!-- imark … --> blocks and stay there; they travel with the file. Content piped on stdin, or several files at once, gets a temporary stand-in document instead, cleaned up afterwards.

The command blocks until the user presses Approve or Send Back in the app. That is expected and can take a long time: do not interrupt it, do not put a timeout on it, and do not ask whether they are done.

When it returns, the output carries the decision and the notes, and on a refusal it also carries the steps to take. Follow them in the order they come — in particular, reply to the user before rewriting anything, and ask rather than guess when a note is ambiguous or two of them contradict each other.

Refer to notes by the words they are attached to — on “X” — rather than by number, because that is how the user sees them in the app.

When you act on a note, do not delete it. Mark it done by adding resolved="<ISO date>" to its opening <!-- imark line — the note is the reviewer's record of what was asked, the mark is yours of having done it. The app shows resolved notes faded, and the next review round will not repeat them back to you.

If the command says Imark is not installed, tell the user where the document ended up and carry on without the review.

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. yesterday First seen · 44 lines · 16 tokens per session scan A 506f016829d1

Subscribe to this mod's changes

imark-review is a command published in the GitHub repository migsilva89/imark (50 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 470 once invoked, about $0.0001 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-30.