Fixed
- Plan preview renders before approval. The auto-render hook is now
PreToolUseonExitPlanMode, notPostToolUse.PostToolUseresolves only after you approve a plan, so the preview appeared only post-approval and, via--latest, could render the previous plan mid-iteration. The preview now pops up as the plan is presented and refreshes on every revision.
Added
preview-plan.mjs --hook. A first-class hook mode: it reads theExitPlanModetool-call JSON on stdin and renders that exact plan (tool_input.plan), so no shell wrapper is needed to wire thePreToolUsehook. It falls back to the newest saved plan when the payload carries none, and always exits 0 so it can never blockExitPlanMode. The repo's own.claude/settings.jsonand the README now usePreToolUse+--hook.
Changed
- Plan preview works as an installed plugin.
/mdp-preview-plannow invokes the converter via${CLAUDE_PLUGIN_ROOT}(with a repo-root fallback) instead of a CWD-relative path, so it works for/mdpplugin users in any project, not just inside this repo.
Published: mdp-compiler@0.6.0, mdp-mcp@0.6.0. Claude Code + Codex plugins bumped to 0.6.0.