backnotprop/plannotator
tldr.page
README

Plannotator for Copilot CLI

Interactive plan review, code review, and markdown annotation for GitHub Copilot CLI.

Install

Install the plannotator command:

macOS / Linux / WSL:

curl -fsSL https://plannotator.ai/install.sh | bash

Windows PowerShell:

irm https://plannotator.ai/install.ps1 | iex

Then in Copilot CLI:

/plugin marketplace add backnotprop/plannotator
/plugin install plannotator-copilot@plannotator

Restart Copilot CLI after plugin install. Plan review activates automatically when you use plan mode (Shift+Tab to enter plan mode).

How It Works

Plan Mode Integration

When you use plan mode in Copilot CLI:

  1. The agent writes plan.md to the session state directory
  2. The agent calls exit_plan_mode to present the plan
  3. The preToolUse hook intercepts this and opens the Plannotator review UI in your browser
  4. You review the plan, optionally add annotations
  5. Approve → the plan is accepted and the agent proceeds
  6. Deny → the agent receives your feedback and revises the plan

Available Commands

CommandDescription
/plannotator-reviewOpen interactive code review for current changes or a PR URL
/plannotator-annotate <file>Open interactive annotation UI for a markdown file
/plannotator-lastAnnotate the last rendered assistant message

Environment Variables

VariableDescription
PLANNOTATOR_REMOTESet to 1 / true for remote mode, 0 / false for local mode, or leave unset for SSH auto-detection. Uses a fixed port in remote mode; browser-opening behavior depends on the environment.
PLANNOTATOR_PORTFixed port to use. Default: random locally, 19432 for remote sessions.
PLANNOTATOR_BROWSERCustom browser to open. macOS: app name or path. Linux/Windows: executable path.
PLANNOTATOR_SHARESet to disabled to turn off URL sharing.

Limitations

  • Plan mode requires the plannotator CLI to be installed and on PATH
  • /plannotator-last parses events.jsonl from the Copilot CLI session state directory — format may change between Copilot CLI versions

Links