Review Markdown in the terminal.
annoterm is a terminal app for reviewing Markdown plans and specs. Attach comments to rendered blocks or selected source text. It builds a prompt with your comments and their locations for your coding agent.
brew install filipgutica/tap/annoterm- Runs on
- macOS and Linux
- Written in
- Rust
- License
- MIT
- Source
- filipgutica/annoterm
From review to agent
Use your own Markdown file in place of README.md.
Open the file
Run
annoterm README.md. The file opens in rendered mode. Press Up or Down to select a block.Add your comments
Press a to comment on the selected block. Write your comment. Press Enter to save it.
Hand off the feedback
Press q to quit from the rendered document. If open comments remain, annoterm tries to copy the feedback to your clipboard. Check the result in your terminal.
Paste the feedback into Codex, Claude Code, or another coding agent. If copying fails, run
annoterm export README.md --output feedback.md. Then paste the contents offeedback.mdinto your agent.
Read
Rendered mode · Ctrl+R switches to raw mode ┌Rendered · selected block: lines 7–7────────────────────────────────────────────┐┌Comments (0)────┐ │ Retry policy ││No comments yet │ │ ━━━━━━━━━━━━ ││ │ │ ││ │ │ Design notes for the sync worker. ││ │ │ ││ │ │ Behavior ││ │ │ ──────── ││ │ │ ││ │ │› Retries use a fixed five-second delay. The worker stops after three attempts. ││ │ │ ││ │ │ ┌─────────┬─────────┬───────┐ ││ │ │ │ Error │ Retried │ Delay │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ Timeout │ yes │ 5s │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ 4xx │ no │ none │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ 5xx │ yes │ 5s │ ││ │ │ └─────────┴─────────┴───────┘ ││ │ │ ││ │ │ Rollout ││ │ │ ─────── ││ │ │ ││ │ │ [x] Add the retry wrapper ││ │ │ [ ] Emit a metric for each attempt ││ │ │ ││ │ │ ││ │ └────────────────────────────────────────────────────────────────────────────────┘└────────────────┘ ↑/↓/wheel Blocks · a Comment · / Search · Ctrl+R Raw · ? Help
annoterm docs/retry-policy.mdDemo: the marker beside the paragraph shows the selected block.
Comment
Comment added ┌Rendered · selected block: lines 7–7──────────────────────────────────┐┌Comments (1)──────────────┐ │ Retry policy ││› 1/1 · Open (in feedback)│ │ ━━━━━━━━━━━━ ││ Explain why this uses a │ │ ││fixed delay instead of │ │ Design notes for the sync worker. ││exponential backoff. │ │ ││ │ │ Behavior ││ │ │ ──────── ││ │ │ ││ │ │● Retries use a fixed five-second delay. The worker stops after three ││ │ │attempts. ││ │ │ ││ │ │ ┌─────────┬─────────┬───────┐ ││ │ │ │ Error │ Retried │ Delay │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ Timeout │ yes │ 5s │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ 4xx │ no │ none │ ││ │ │ ├─────────┼─────────┼───────┤ ││ │ │ │ 5xx │ yes │ 5s │ ││ │ │ └─────────┴─────────┴───────┘ ││ │ │ ││ │ │ Rollout ││ │ │ ─────── ││ │ │ ││ │ │ [x] Add the retry wrapper ││ │ │ [ ] Emit a metric for each attempt ││ │ │ ││ │ └──────────────────────────────────────────────────────────────────────┘└──────────────────────────┘ ↑/↓ Blocks · a Comment · [/] Comments · j Jump · e Edit · x Resolve · ? Help
a → write comment → EnterDemo: the dot marks the commented block. The Comments panel lists the comment as open, so it goes into the feedback.
Feedback
# Annoterm feedback Document: `../sync-worker/docs/retry-policy.md` Fingerprint: `sha256:ddea214df829949a13d370cd2a429da4d48fdd65cab7521512e90d1af4a8cece` Update the document to address every open annotation. Preserve unrelated content. Keep annotation identifiers in your response so the changes can be reviewed. ## Annotation `01a0efd0-2bde-7b93-b707-1469e866e604` Location: lines 7–7 State: anchored Selected text: > Retries use a fixed five-second delay. The worker stops after three attempts. Comment: Explain why this uses a fixed delay instead of exponential backoff.
annoterm export docs/retry-policy.md --output feedback.mdDemo: each open comment becomes one section, with its lines, state, selected text, and ID. The agent can use the ID to say which comment each change answers.
On screen
- ●
- Comment anchored to its current text.
- ◌
- Outdated comment at an approximate location.
- Open
- Only open comments enter the feedback. Resolved comments stay saved.
- Bottom bar
- Shows the shortcuts for the pane you are using.
Commands
annoterm tries to copy feedback after each comment change. Use these commands to copy it again or export a file.
| Command | What it does | |
|---|---|---|
annoterm copy-feedback README.md | Copy the feedback again after another app replaces your clipboard. | |
annoterm export README.md --output feedback.md | Write feedback to a file. Export refuses to replace an existing file unless you add --force. | |
annoterm --annotations review.json README.md | Choose a comment file, for example one you keep in the repository. Use --annotations with copy-feedback and export too. |
Keys
To open shortcut help, press ? in rendered mode or the Comments panel. In raw mode or while writing a comment, press F1.
| Key | What it does |
|---|---|
| Ctrl+R | Switch between rendered mode and raw mode to edit the Markdown source. |
| Shift + arrow keys | Select text in raw mode. |
| Ctrl+K | Start a comment on the raw selection or the selected rendered block. |
| Ctrl+W | Focus the Comments panel. Use Up or Down to select a comment. |
| x | Resolve or reopen the selected comment in rendered mode or the Comments panel. |
| Esc | Return from the Comments panel to the document. |
| Ctrl+S | Save Markdown edits. |
| Ctrl+Q | Quit from either document mode. |
Good to know
- Comment files
- annoterm stores comments separately from the Markdown file in a JSON sidecar. By default, these comment files live under
~/.annoterm. When the document changes, annoterm tries to keep each comment on its text. - Saving Markdown
- Starting or submitting a comment saves unsaved Markdown edits first. Otherwise, commenting leaves the Markdown file unchanged.
- Quitting with unsaved edits
- With unsaved Markdown edits, the first quit press warns you. Press the quit key again to discard those edits.
- External file changes
- If another program changes the Markdown file, annoterm refuses to save over that change. The status line shows an error. annoterm has no merge view to combine the two versions.
- Linux clipboard
- For Wayland, install
wl-copy. For X11, installxclip. If neither works, annoterm falls back to OSC 52. Some terminals and SSH sessions block it. OSC 52 cannot confirm delivery, and annoterm sends at most 100,000 bytes this way. - Local review
- annoterm needs no account or server. It never sends your documents or comments over the network.