Junie by JetBrains
Not available in: DataGrip
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 a processing model
To select a model that Junie uses to process your requests, click and select the model from the list.

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.

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:
Navigate to the pane listing the changed files.
Do one of the following:
To roll back changes in a specific file, hover over it and click
.

To roll back changes in all files, click Rollback.

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:
Navigate to the prompt you want to roll back to.
Hover over it and click
Rollback here.
Confirm the operation by clicking Rollback.

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 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.

To connect Junie to an MCP server:
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.

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.

