Annotate Markdown in the terminal. Select text, leave a 💬 comment, mark it 👍 looks good or ✗ delete, and hand the review to a coding agent as numbered feedback. One static binary, no runtime. Rust + ratatui.
Send 2 to claude in w1:p1 ▸
Herdr plugins are shareable, executable workflow packages. A
plugin can be a Bash script, JavaScript app, Lua script, Rust
▍ binary, or any other argv command your machine can run. Herdr ╭ 💬 8d3e8 ────────────────╮
▍ owns the host surface: installation, manifest validation, │ Say which parts the │
keybindings, terminal panes, events, invocation context, and │ plugin can override. │
socket access. The plugin owns its implementation language, ╰──────────────────────────╯
dependencies, files, and durable state.
👍 looks good (a) 💬 comment (c) ✗ delete (d)
▍ Plugins exist so Herdr can stay lean. The core stays focused on ╭ 👍 25300 ────────────────╮
▍ terminal workspaces, panes, agents, and a stable CLI/socket API. │ looks good │
▍ Plugins turn that existing extension surface into reusable ╰──────────────────────────╯
▍ workflows that people can build, install, and share without
▍ adding every workflow to Herdr itself.
plugins.md · 2 annotations · selected 36 chars a looks good · c comment · d delete · esc clear
Watch it inside Herdr: demo.
brew trust plannotator/tap && brew install plannotator/tap/plannotator-tui # macOS, Linux
cargo install plannotator-tui # anywhere with RustHomebrew 6 asks you to trust a third-party tap once before installing from it.
Prebuilt binaries for macOS, Linux and Windows are on the releases page.
plannotator-tui docs/plan.md # one file
plannotator-tui docs # a folder: file tree on the left, counts per file
plannotator-tui last # your coding agent's recent replies, pick one, annotate itDrag with the mouse (or v and move) to select, then a 👍 · c 💬 · d ✗. E copies the
review to the clipboard as numbered annotations (# Annotations on plan.md, ## Annotation 1 (line 12), …). Every annotation is saved as JSON the moment you make it; q closes.
| Where | Keys |
|---|---|
| anywhere | Tab cycle tree · document · notes; E send; t tree; r reload; q quit |
| document | j/k block; c comment on the block; x clear its annotations; v select with hjkl w b 0 $ |
| toolbar | a looks good · c comment · d delete · Esc |
| notes | j/k; e edit; x remove; click a bubble |
| tree | j/k; Enter open; E sends every annotated file |
Install Herdr Annotate; it bundles this binary,
opens it in a pane with prefix+o (folder) or prefix+shift+o (agent's last reply) or by
Ctrl-clicking a file://…md link, and the header button sends the review straight back to
the agent as its next message: Send 3 to claude in w1:p2 ▸.
# ~/.config/plannotator-tui/config.toml
[herdr]
placement = "overlay" # overlay (full tab, default) | split | popupplannotator-tui config prints the file's path and the values in effect. The herdr/
directory in this repo is the development manifest; users should install Herdr Annotate.
Actions forwarded by Herdr Mirror default to a split beside the invoking remote
pane. Mirror does not preserve overlay presentation, and Herdr 0.8.2 opens an
overlay in its server's active tab, which can differ from the tab you are viewing.
An explicit --placement or PLANNOTATOR_TUI_PLACEMENT still takes precedence.
plannotator-tui last finds the transcript of the agent that launched your shell and shows a
picker of its recent replies. Hosts: Claude Code, Codex, pi, Oh My Pi, GitHub Copilot CLI,
Droid, Hermes CLI, OpenCode (1 and 2). --host, --pid, --session <transcript> (format sniffed when
no host is named) and --session-id <id> (Hermes, OpenCode) override detection; --stdin
reads a document;
--print writes the newest reply to stdout and always exits 0 (for hooks and scripts).
A reply review keeps its annotations in memory only; nothing about it survives the run, but
the feedback you send or copy is archived like any other (see Feedback archive below).
On Linux, an explicit Codex --pid selects the rollout opened by that process. If it
cannot be identified uniquely, last reports the failure instead of choosing an unrelated
session. --session and --session-id keep precedence over PID discovery.
Inside Herdr, the exact-session path needs the session id Herdr reports for the pane. Herdr's
Claude Code integration registers on SessionStart, so a session reports its id only when it
started after herdr integration install claude; a session that was already running when the
integration was installed reports none. Without an id, last shows the newest transcript for
the folder, which is a guess when several sessions share one directory, and says so in the
status line.
~/.plannotator/clients/plannotator-tui/annotations/<project>/<slug>/annotations.json
<project> is the git repo name, <slug> the file's basename plus 8 hex of the sha256 of
its path: Plannotator's own layout, so both tools see one record per file. The JSON is the
Plannotator Workspaces wire shape; any agent can read it. Nothing is written next to your
files. PLANNOTATOR_DATA_DIR relocates the directory.
A successful Send or Copy also appends what was submitted (the feedback text, the quoted
selections and their annotations, and the file, folder or agent session it was about) to
{data_dir}/feedback/<project>/index.jsonl, with a Markdown copy under records/. The data
dir is PLANNOTATOR_DATA_DIR, else an existing ~/.plannotator, else
$XDG_DATA_HOME/plannotator, else ~/.plannotator. File, folder and reply reviews are all
archived; a send that fails or is refused is not. The format is the one the Plannotator
browser app writes, so both tools share one history. To turn it off, set
PLANNOTATOR_FEEDBACK_HISTORY=0 (once the variable is set, only 1 or true enable) or put
"feedbackHistory": false in {data_dir}/config.json; the variable wins over the file.
plannotator-tui --export <file|folder> # the review, to stdout
plannotator-tui --annotate <file> <quote> <text> [comment|looks_good|delete]
plannotator-tui --snapshot <file|folder> [cols rows scroll] [quote] # one frame as text
plannotator-tui --bench <file> # parse / layout timingscrates/plannotator-tui: the app.crates/plannotator-tui-schema: annotation and anchor types, wire-compatible with Plannotator Workspaces.crates/plannotator-tui-hosts: agent transcript readers.docs/decisions.mdis the design record;AGENTS.mdthe engineering rules;crates/plannotator-tui/README.mdthe full key reference and measurements.
MIT.
