Skip to content

Repository files navigation

PhpStorm Prereview

Review your branch like a pull request, directly in PhpStorm. Add inline comments yourself, or let AI agents (Codex and Claude Code) review your changes.

Prereview in PhpStorm: an inline review comment card in the editor, with the Review Comments tool window listing all comments

What it does

  1. Review local changes:
    • Human review: select code and add comments (⌘⌥C).
    • AI review: click Review Diff (or branch) to have Codex and Claude Code review and add inline comments.
  2. Copy as prompt: click to copy comments as a ready-to-paste prompt for coding agents.

Comments are 100% local. Like a PR pre-code review, but local to iterate quickly with agents.

Requirements

  • PhpStorm 2025.3+
  • For AI reviews: the codex and/or claude CLIs installed and authenticated.

Installation

The plugin is not on the JetBrains Marketplace yet. Install it from disk:

  1. Download the latest prereview-*.zip from the Releases page
  2. In PhpStorm: Settings > Plugins > ⚙️ > Install Plugin from Disk…
  3. Select the ZIP and validate

Usage

  • Add a comment: select code (or place the caret), then right-click and pick Add Review Comment, or press ⌘⌥C.
  • Run an AI review: open the Review Comments tool window (right sidebar) and click Run Review. Codex and Claude review the branch diff in parallel. Comments appear as each agent finishes.
  • Address comments: use Copy Prompt on a single comment card, or the global Copy Prompt button in the tool window. Paste the result into your agent of choice.

Development

./gradlew build      # build and run tests
./gradlew runIde     # launch a sandboxed PhpStorm with the plugin
make build           # build the ZIP and copy it to ~/Downloads

The Gradle wrapper defaults GRADLE_USER_HOME to ./.gradle-user-home (unless already set) to keep plugin-SDK caches isolated from your global ~/.gradle.

Toolchain: Gradle 9.4, IntelliJ Platform Gradle Plugin 2.x, Java 21, Kotlin, targeting PhpStorm 2025.3.

Releasing

Create a release on GitHub with a vX.Y.Z tag (auto-generated notes work fine). The release workflow builds the plugin with that version and attaches prereview-X.Y.Z.zip to the release. No version bump is needed in the repo.

About

PhpStorm AI review

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages