fix(code-review): require explicit user invocation#78425
Open
ZaunEkko wants to merge 1 commit into
Open
Conversation
Mark the multi-agent code-review command as manual-only so models and subagents cannot programmatically re-enter the workflow. Explicit /code-review invocation remains available. Generated with [Claude Code](https://claude.ai/code) Model: gpt-5.6-sol max Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/code-reviewas manual-only withdisable-model-invocation: true/code-reviewand/code-review --commentMotivation
The
code-reviewcommand launches an initial gate agent, a guidance-discovery agent, a change-summary agent, four parallel reviewers, and additional validators for reported findings. Programmatic invocation from one of those descendants can recursively re-enter the complete workflow and multiply the agent tree.disable-model-invocationis the documented frontmatter control for commands that require explicit user judgment: it keeps the slash command available to users while removing it from the model's programmatic command invocation surface.This is a plugin-level mitigation related to #77414 and #68110. It cuts off recursive model-initiated re-entry into this specific multi-agent workflow, but it does not replace host-level descendant budgets, breadth limits, resource backpressure, or tree-wide cancellation.
Behavior change
/code-review/code-review --commentcode-reviewprogrammaticallyAgentTest plan
plugins/code-reviewwithclaude plugin validateplugins/code-reviewwithclaude plugin validate --strictdisable-model-invocationis booleantruegit diff --checkplugins/code-review/commands/code-review.mdchangedupstream/mainNo Agent integration test was run because
/code-reviewintentionally launches multiple agents; this PR is limited to static frontmatter and plugin validation on an unrestricted workstation.Generated with Claude Code