AI Assistant 2026.1 Help

Junie by JetBrains

Not available in: DataGrip

Junie logo Junie is an AI coding agent developed by JetBrains whose primary task is to autonomously plan and execute complex, multi-step actions based on your prompt. It can introduce large-scale edits to your project, run tests or terminal commands, and use external tools when needed, while reporting progress to you.

Get started with Junie

To use Junie, you need to install and activate it using one of the supported authentication methods. For instructions, refer to:

After setup, select Junie in AI Chat to start using it.

Select Junie

Select a processing model

To select a model that Junie uses to process your requests, click and select the model from the list.

Select the model

Approve operations

By default, Junie requests your permission to run suggested bash commands, perform file operations, or use external tools. In this case, you can either approve or reject the operation.

Junie requests an approval
  • Yes – allows Junie to execute the command. You will be asked again if the command is requested later.

  • No – prevents Junie from executing this command.

  • Always allow – allows Junie to execute the required command automatically, without asking for permission.

Rollback operations

If the changes introduced by Junie do not suit you, you can roll them back. To do this:

  1. Navigate to the pane listing the changed files.

  2. Do one of the following:

    • To roll back changes in a specific file, hover over it and click .

      Rollback changes in a specific file
    • To roll back changes in all files, click Rollback.

      Rollback changes in all files

You can also roll back to a checkpoint, restoring your project to an earlier point in the conversation to undo changes or retry with different instructions. To do this:

  1. Navigate to the prompt you want to roll back to.

  2. Hover over it and click Rollback here.

  3. Confirm the operation by clicking Rollback.

    Rollback changes

    This reverts all changes made by Junie, as well as any manual changes you made after the selected point.

Brave mode

You can allow Junie to execute commands or modify files without asking for confirmation. To enable this behavior, turn on Brave Mode in the chat input field.

Enable Brave mode

Enable use of external tools

You can connect Junie to Model Context Protocol (MCP) servers. This will provide Junie with executable functionality for working with data sources and tools, such as file systems, productivity tools, or databases.

When processing a prompt, Junie analyzes which commands exposed by the configured MCP servers as available tools are relevant and executes them through the respective MCP server.

Run MCP command

To connect Junie to an MCP server:

  1. Go to Settings | Tools | AI Assistant | Model Context Protocol (MCP).

    Model Context Protocol settings
  2. Click Add button on the toolbar. In the New MCP Server dialog, select how you want to connect to the MCP server, provide a JSON configuration, and configure other parameters.

    Add an MCP server
  3. Click OK.

Restrict access with .aiignore

Junie respects the existing .aiignore file, so if you have one configured in your project, it will not process any files or directories listed there unless you explicitly permit it to do so.

.aiignore support

Add guidelines

Guidelines allow you to provide persistent, reusable context to the agent. Junie adds this context to every task it works on.

Guidelines are stored in the AGENTS.md file in the root project directory, so you can keep them under version control and reuse across the project. For more information on the format, see the AGENTS.md documentation.

22 May 2026