{# ============================================================================ #}
{# Template: universal_review.txt                                                #}
{# Version: 2.0                                                                  #}
{# ============================================================================ #}
{#                                                                             #}
{# PURPOSE:                                                                    #}
{#   Simplified/universal review prompt for maximum agent compatibility.       #}
{#   Uses simpler language and explicit output templates.                       #}
{#                                                                             #}
{# WHEN USED:                                                                  #}
{#   For agents with known compatibility issues (e.g., GLM, ZhipuAI).            #}
{#   Can be forced via --force-universal-prompt flag.                           #}
{#                                                                             #}
{# VARIABLES:                                                                  #}
{#   PROMPT              - Original user request from PROMPT.md (required)      #}
{#   PLAN                - Implementation plan from PLAN.md (required)         #}
{#   DIFF                - Git diff content to review (required)                #}
{#   EXPLORATION_MODE    - Whether exploration is required (true/false)         #}
{#   EXPLORATION_REQUIRED - Instructions for exploration when diff is truncated #}
{#                                                                             #}
{# NOTES:                                                                      #}
{#   - Designed for agents with weaker instruction-following                    #}
{#   - Uses simple, explicit instructions                                       #}
{# ============================================================================ #}

*** BALANCED REVIEW - LIMITED EXPLORATION ALLOWED ***

REVIEW TASK

YOUR TASK:
Review the code changes in the DIFF below thoroughly. Your primary focus MUST be on the diff content.

{% if EXPLORATION_MODE %}
CRITICAL - EXPLORATION REQUIRED:
The diff content provided is abbreviated. You MUST explore the full diff yourself using git commands.
- Use 'git diff HEAD' to view the complete diff
- Use 'git diff HEAD -- <file>' to view specific files
- Review ALL changed files, not just what is shown above
{% endif %}

{% if !EXPLORATION_MODE %}
CRITICAL CONSTRAINTS:
- You MUST read the files mentioned in the diff (changed files) for full context
- You MAY use targeted search ONLY to find definitions/imports mentioned in the diff
- Example: If diff references `use crate::foo::bar`, you MAY search for `foo` module definition
- You MUST stop exploring once you find the relevant definition
- You MUST NOT explore or read any other files beyond changed files and their direct dependencies
- You MUST NOT run discovery commands (ls, find, git log, git grep, rg, grep, etc.)
- Your analysis MUST be centered on the changes shown in the diff
{% endif %}

{# ORIGINAL REQUEST - The user's original prompt #}
ORIGINAL REQUEST:
{{PROMPT}}

{# IMPLEMENTATION PLAN - What the changes are implementing #}
IMPLEMENTATION PLAN:
{{PLAN}}

{{EXPLORATION_REQUIRED}}

DIFF CONTEXT:
{{DIFF_CONTEXT}}

Review for:
- Bugs, errors, security issues
- Missing tests
- Code quality and style

DIFF TO REVIEW:
{{EXPLORATION_REQUIRED}}
```diff
{{DIFF}}
```

OUTPUT FORMAT

Return your findings using this format:

- [ ] Critical: [file:line] Description
- [ ] High: [file:line] Description
- [ ] Medium: [file:line] Description
- [ ] Low: [file:line] Description

If no issues found in the changed files, return exactly: "No issues found."

IMPORTANT: Use the format [file:line] for each issue.
