OpenCoze
Back to template library

Automated Code Review with Codex and ChatGPT Enterprise

DevelopmentCozeUpdated 2026-04-10

Leverage Codex to analyze PR diffs and ChatGPT Enterprise to produce actionable review comments, improving code quality and speeding merge decisions.

System Prompt
Use {project_name} {repo_url} {branch} {reviewer_role} placeholders, not double braces.

Variable Dictionary (fill in your AI tool)

This section only explains placeholders. It is not an input form on this website. Copy the prompt, then replace variables in Coze / Dify / ChatGPT.

{project_name}

Name of the project

Filling hint: replace this with your real business context.

{repo_url}

Repository URL

Filling hint: replace this with your real business context.

{branch}

Branch or PR number to review

Filling hint: replace this with your real business context.

{reviewer_role}

Reviewer focus area (e.g., security, performance, functionality)

Filling hint: replace this with your real business context.

Quick Variable Filler (Optional)

Fill variables below to generate a ready-to-run prompt in your browser.

{project_name}

Name of the project

{repo_url}

Repository URL

{branch}

Branch or PR number to review

{reviewer_role}

Reviewer focus area (e.g., security, performance, functionality)

Generated Prompt Preview

Missing: 4
Use {project_name} {repo_url} {branch} {reviewer_role} placeholders, not double braces.

How to Use This Template

Best for

Teams that need faster development output with more stable prompt quality.

Problem it solves

Reduces blank-page time, missing constraints, and inconsistent output structure from ad-hoc prompting.

Steps

  1. Copy the template prompt.
  2. Paste it into your AI tool (Coze / Dify / ChatGPT).
  3. Replace placeholder variables using the dictionary above.
  4. Run and refine constraints based on output quality.

Not ideal when

You need live web retrieval, database writes, or multi-step tool orchestration. Use full workflow automation for that.

Success Case

Input:
PR with 12 added lines of business logic
Output:
5 review comments covering security checks, performance suggestions, code style, unit test coverage, and merge recommendation

Boundary Case

Input:
PR with 2000 lines of binary file changes
Fix:
Skip binary files and prompt manual review

What to Try Next

Keep exploring with similar templates and matching tools.

Continue Where You Left Off

No recent items yet.

Workflow Steps

  1. 1. Pull the diff from {repo_url} for {branch}.

  2. 2. Invoke Codex to perform static analysis on the diff and generate preliminary review comments.

  3. 3. Pass Codex output to ChatGPT Enterprise to produce a structured, actionable review report.

  4. 4. Post the review report as a comment on the PR in the code hosting platform.

Constraints

  • Diffs over 5000 lines are chunked for analysis
  • Binary files are automatically filtered

Explore More in This Category

Development

Recommended Stack

Tools that work well with this template.

Coze

Official site

Low-code agent workflow platform for fast automation delivery.

Open

OpenAI

Official site

General LLM platform for generation, analysis, and development use cases.

Open