PhpStorm 2026.2 Help

Agents in PhpStorm

IDE intelligence for coding agents

PhpStorm integrates coding agents directly into your project workspace, allowing them to query and act based on PhpStorm’s parsed, indexed, and inferred model of your codebase, the project context, including package dependencies and PHP language level, and the IDE's resolution of dynamic magic in PHP frameworks.

PhpStorm's inspections and integrated static analysis tools provide agents with a deterministic validation layer for enforcing your project's coding standards without cluttering the agent's context window with text-based rules.

For review and validation of an agent’s changes, PhpStorm provides fine-grained diff and rollback tools, while Local History lets you compare and restore intermediate states even when the agent creates no VCS commit.

Agentic workspace in PhpStorm

Multi-agent setups

PhpStorm works with the agents, provider accounts, and subscriptions you already have, along with providing a curated registry of agents you can browse, install, and set up from your IDE.

Agent presets are reusable configurations defining which agent, agent mode, model and reasoning effort are used for the current agent session, allowing you to easily switch between agents or agent setups for different types of tasks.

Locally installed agents

If you already have coding agents installed on your machine, PhpStorm detects them the same way it detects your default system shell or configured PHP interpreter.

An agent that is already present in your environment, such as Claude Code or Codex, becomes available in the IDE with the configuration it already uses.

Registry of available agents

A curated catalog of ACP-compatible agents you can browse from PhpStorm. The IDE reads the registry from a JetBrains-hosted online JSON file by default, and your organization can provide its own registry.

Because Agent Client Protocol (ACP) is a standard interface, compatible agents can work with PhpStorm without a dedicated integration.

Learn more: Browse, install, and update agents.

Authorization options

reuse option list + learn more link

Context and cost management in agent sessions

The agentic workspace in PhpStorm lets you start new sessions across installed agents or agent presets, or browse the history of agent sessions and resume existing ones.

Per each agent session, you can attach context such as files/folders, commits, contex from screen, or specific agent skills.

After you send the first prompt, a context indicator also appears in the text field. Hovering over it shows how much of the model's context window is used in the current session. Prompts, attached context, and agent responses contribute to this usage, and the indicator updates as the session continues.

Learn more: Work with agents.

Review and validation of the agent output

Learn more: Review changes and resolve conflicts.

Learn more

Air Alpha

The detailed guide to the features and usage of the Air Alpha plugin.

MCP server

The full list of PhpStorm tools available for coding agents via MCP server.

AI Assistant

PhpStorm's plugin providing JetBrains AI features, including AI Chat, in-editor code completion, next edit suggestions, code insights, and (a legacy way of interacting with) coding agents.

09 September 2026