Repository navigation
Open
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Description
Goal
Complete plugin commands: commands that need write-capability servers, commands that call a handler, and what happens when two plugins offer the same command name.
What to build
- Write servers: a
promptcommand withneedsWrite: trueexposes the plugin's write-capability servers to that one run only when both hold: an administrator switched on "Allow this command to use write access" for the command on the Plugins page (off by default, shown at install with an explanation), and the commenter has write permission on the repository. Otherwise the command is refused with a reply explaining what is missing. This is the command's explicit write authorization; it does not extend to later follow-ups or retries. kind: 'handler': the command calls one of the plugin's handlers with the comment context (repository, number, commenter, argument) as a delivery of kindcommand, recorded in Activity; the handler can usectx.propr(for example to comment back) andctx.http.- Shared command names: a manifest may mark a command as
shared(for example/deploy, offered by several deployment plugins). Each such plugin must also declare a specific command. When more than one enabled plugin offers the same shared name for a repository, the plain name is owned by the plugin chosen in a small instance setting on the Plugins page, defaulting to the only enabled one; with no choice made and several candidates, the command replies asking the user to use a specific command.
Acceptance criteria
needsWritecommands are refused unless the administrator switch is on and the commenter has write permission; when allowed, the write server is exposed to that run only (not to a retry or a later follow-up).- A
handlercommand invokes the handler with repository, number, commenter and argument; the handler can comment back throughctx.propr; the delivery appears in Activity. - With two plugins offering a shared command: specific commands work, the plain name follows the instance setting, and with no setting the reply names the specific commands.
- The per-command write switch and the shared-command owner are editable on the Plugins page by administrators only and recorded in the audit trail.
- Docs:
docs/docs/features/pr-commands.mdanddocs/docs/features/plugins.md.
Implementation
- Write authorization passed as the run's explicit write grant through the extension library's existing write-authorization path.
handlercommands enqueue a plugin delivery of kindcommand.- Shared command ownership setting in the plugin store, surfaced on the Plugins page;
plugins:checkvalidatessharedcommands have a specific sibling. - Plugins page: per-command write switch.
- Tests in
test/andpackages/core/testwith the example plugin and a second fixture plugin.
Notes
Depends on the prompt commands issue and the dispatcher issue. Keep the security rule that write-capability servers need explicit write authorization for the specific run.
Metadata
Metadata
Assignees
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Activity
propr-dev commentedon Nov 16, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53552/claude-opus-5-5-plugin-slash-commands-wri-20261116-0911-db63542-epic-plugin-system-xu8issue-3552-20261116-0911-claude-opus-5-5-db6🔍 Track Task Execution