From 6c9345447cfe6c243968895a296d6230cafd813d Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 18 Apr 2026 20:45:08 +0000 Subject: [PATCH] Prevent model from auto-invoking plannotator slash commands Add `disable-model-invocation: true` frontmatter so these user-driven commands (which open browser UIs and require human interaction) can only be triggered explicitly by the user, not picked up automatically by the model. --- apps/hook/commands/plannotator-annotate.md | 1 + apps/hook/commands/plannotator-archive.md | 1 + apps/hook/commands/plannotator-last.md | 1 + apps/hook/commands/plannotator-review.md | 1 + 4 files changed, 4 insertions(+) diff --git a/apps/hook/commands/plannotator-annotate.md b/apps/hook/commands/plannotator-annotate.md index 2933cd8d..218e270a 100644 --- a/apps/hook/commands/plannotator-annotate.md +++ b/apps/hook/commands/plannotator-annotate.md @@ -1,6 +1,7 @@ --- description: Open interactive annotation UI for a markdown file or folder allowed-tools: Bash(plannotator:*) +disable-model-invocation: true --- ## Markdown Annotations diff --git a/apps/hook/commands/plannotator-archive.md b/apps/hook/commands/plannotator-archive.md index e016a422..f3df5058 100644 --- a/apps/hook/commands/plannotator-archive.md +++ b/apps/hook/commands/plannotator-archive.md @@ -1,6 +1,7 @@ --- description: Browse saved plan decisions in the archive allowed-tools: Bash(plannotator:*) +disable-model-invocation: true --- ## Plan Archive diff --git a/apps/hook/commands/plannotator-last.md b/apps/hook/commands/plannotator-last.md index c03158fe..f8f5d8ad 100644 --- a/apps/hook/commands/plannotator-last.md +++ b/apps/hook/commands/plannotator-last.md @@ -1,6 +1,7 @@ --- description: Annotate the last rendered assistant message allowed-tools: Bash(plannotator:*) +disable-model-invocation: true --- ## Message Annotations diff --git a/apps/hook/commands/plannotator-review.md b/apps/hook/commands/plannotator-review.md index d5c57633..6f3d544a 100644 --- a/apps/hook/commands/plannotator-review.md +++ b/apps/hook/commands/plannotator-review.md @@ -1,6 +1,7 @@ --- description: Open interactive code review for current changes or a PR URL allowed-tools: Bash(plannotator:*) +disable-model-invocation: true --- ## Code Review Feedback