adversarial_review
Critiques plans, designs, and pre-merge code to surface flaws, edge cases, security risks, and unstated assumptions; pass content or files and optionally a schema for ranked findings.
Instructions
Get an adversarial review using the selected model or the tool's available route. Use this for plan critiques, design reviews, and pre-merge code review: it hunts for flaws, edge cases, security issues, and unstated assumptions. Pin a different model explicitly when independent model-family review is needed. Pass either content or files — a call with neither is rejected. Pass schema to get ranked findings back as data instead of prose.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adversarial_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path to the working directory / project root. Defaults to the server's cwd. | |
| dirs | No | Extra directories to add to agy's workspace, for cross-repo or worktree-vs-base analysis. | |
| files | No | File paths to review instead of inline content. | |
| focus | No | Optional focus area, e.g. 'security', 'concurrency'. | |
| model | No | Override the model. Accepts a display name ("Gemini 4 Neon (High)"), an id ("gemini-4-neon-high"), or a family selector ("gemini-neon@latest-high"). Normally omit — the tool routes automatically. | |
| effort | No | Reasoning tier supported by the selected model in `agy models`. A family selector can choose its listed sibling at this tier. An exact model ID or label fixes the variant: a conflicting effort is rejected. xhigh/max require a listed variant. | |
| schema | No | JSON Schema (as a string) constraining the answer. Returns structuredContent as well as text. Costs noticeably more latency and tokens, so use it only when you will parse the result. | |
| content | No | Inline content to review (plan, diff, code snippet). | |
| slash_commands | No | Let agy expand your slash commands and skills into the prompt. Off by default: a hostile file in the workspace can otherwise steer the delegated model. |