Interact with the agent
Once a session is started, Air in IDEs hosts it in the Agent Session View, where you can interact with the agent. By default, the view opens in a separate editor tab, and you can also open it in the Agent Sessions tool window.
Agent Session View overview
The Agent Session View holds one conversation with an agent. Here you can find your messages and the agent's replies, add context, configure the agent's settings, and perform other actions.

Run mode: Choose where the agent runs:
Local – on your machine, in the project directory.
New Local Worktree – on your machine, in a separate Git working copy of the project.
Cloud – on JetBrains infrastructure, in a cloud clone of your repository.
Project: Select the project that the session works with.
Prompt library: Save prompts and reuse them for recurring tasks instead of typing them again.
Add: Attach project files, folders, commits, or other context to the request.
Start Voice Input: Dictate your request instead of typing it. Air in IDEs turns the recorded speech into prompt text.
Send: Send the request to the agent.
Agent preset: Click the selected agent to choose another agent preset.
Agent settings: Configure the model, effort, and operation mode for the next request. The availability of these settings depends on the agent.
Authorization: Select the authorization source that the agent works through. For more information, refer to Switch the authorization source during a session.
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.
Configure agent settings
When you start a session from an agent, it uses the settings from your last session with that agent, such as the model, effort level, and mode. When you start it from a preset, it uses the settings saved in the preset. You can change these settings for the current session using the controls below the text field:

Model and effort settings: To configure the model and its settings, either click the model name or press Ctrl+Shift+M and select the required options:

Model – click
to open the list of available models and select the model that processes your requests.
Effort – use the slider to select how much reasoning effort the model uses.
Other model-related options – enable or disable other model settings, such as Fast mode.
Mode: Choose which actions the agent can perform without asking for confirmation. The popup can also hold agent modes, such as Plan or Goal.

Reduce AI credit usage with Eco mode in Junie
Junie, JetBrains' coding agent, provides an Eco mode that can reduce AI credit usage by sending routine implementation work to a smaller, cheaper companion model while keeping your selected model for planning and more complex tasks. Junie selects the companion model automatically, so you do not need to choose it separately.
Eco mode does not replace the model that you select. Junie uses your selected model to plan the task and make complex decisions. After planning, it routes suitable routine implementation steps to the companion model. The work of both models appears in the same session, as one conversation with the agent. The companion model can differ depending on the selected model, its provider, and the effort level.
Eco mode is not available for every model. Whether you can turn it on depends on the selected model, its provider, and the effort level. The free Lite model of Junie Lite does not support Eco mode.
To turn Eco mode on or off, use the Eco mode option in the model and effort settings. When Eco mode is on, appears next to the model and effort settings below the text field.

If you select Default in the Junie model list, Eco mode is turned on automatically. This option offers a recommended balance between the quality of the results and the cost.
Attach context
Click Add in the text field to search for context to add. The popup lists the recent files first and offers the following sources:

Project Files and Folders: Any file or directory in the project.
Upload from Computer: A file outside the project, such as a log or a specification.
Context from Screen: A screenshot. On macOS 14 and newer, this opens the native window and display picker, which can capture another application even when its window is behind the IDE, and shows an Attach/Retake/Cancel preview before you add the capture.
Commits: One or more commits from the repository history.
Skills: A skill that tells the agent how to perform a specific kind of task.
Air in IDEs adds these attachments to the prompt that the agent receives, so the agent works with the context required for the task.

As an alternative, you can use the Add to Agent Context action to hand a specific part of your project to an agent. To do this:
Right-click a selection in the editor, a file in the Project tool window, a console, a test in the test runner tree, or a change in a version control view.
Select Add to Agent Context from the context menu.

Compose and send a request
To prepare a prompt for the agent, write your request in the text field using natural language. If you need to span the request across multiple lines, press Shift+Enter to start a new line.
Alternatively, you can dictate the request, reuse your previous prompts, use suggestions provided by Air in IDEs when composing a prompt, accept follow-up prompts suggested by the agent, or reply to a part of an agent response.
Dictate a prompt
Instead of typing a request, you can dictate it. Click Start Voice Input in the prompt field, dictate the request, and click
to finish the recording.

Air in IDEs transcribes the recording and adds it to the prompt.
Use prompt suggestions
After you add context in the global prompt, Air in IDEs can show predefined prompt suggestions below the text field. The suggestions depend on the type of the attachments and help you formulate a request for them. For example, selected or pasted code gets suggestions such as Explain code, Refactor code, and Review code.

Click a suggestion to add it to the request, then edit as needed before sending it.
Use follow-up prompts
After completing a task or a step, some agents can suggest a follow-up prompt for the next possible action. For example, an agent can offer to commit the changes after editing files, or to delete the files that it found safe to remove. The suggestion appears in the empty text field.

Press Tab to insert the suggested prompt into the text field, then edit it as needed and send it to the agent.
Reply to a part of an agent response
To ask the agent about a specific part of its response, select the text in the response and click Reply next to the selection.

Air in IDEs adds the selected text to the text field as a quote. The request is not sent yet, so add your question or comment after the quote, then send the request to the agent.
Reuse prompts
To reuse your previous prompts, click the Open prompt library button in the top-right corner of the text field and select the required entry from the Prompts dialog.

You can save a prompt by clicking the Pin button next to it. Saved prompts appear at the beginning of the list.
Stop the agent
To stop the agent while it is working on a request, click Stop in the text field or press Ctrl+F2. The agent stops the current turn.
Stopping the agent does not return the sent prompt to the text field. To correct the prompt and send it again, press Up Arrow while the text field is empty to insert your last prompt, edit it, and press Enter.
Add a prompt to a queue
While the agent is working, you can draft another prompt in the text field and add it to the queue. The agent processes queued prompts in order after it finishes the current request.
While the agent is working, type your next prompt in the text field.

Send the request. The prompt is added to the queue, and the queue counter shows the number of prompts waiting to be processed.
To manage a queued prompt, use the controls displayed next to it or the keyboard shortcuts:

Click
Send now to send the prompt immediately. Alternatively, press Ctrl+Enter while the text field is empty to send the first prompt in the queue.
To take back the prompt that you queued last, press Ctrl+Z while the text field is empty. The prompt is removed from the queue and returned to the text field, so you can edit it or send it right away.
Click the
button and select Edit Message to change the prompt, Delete to remove it, or Open in New Session to start a new session with the selected prompt.
To combine a prompt with the one above it, select Merge with Above in the same menu. The agent receives the merged prompts as one prompt.
To stop the queue after a specific prompt, select Pause Queue After This Message. The agent processes the queue up to and including this prompt, and then the queue pauses.
Hold a queued prompt by the
icon and drag it to the required position in the queue.
To manage the whole queue, use the controls in the queue header:
Click Merge All to join all queued prompts into one, in queue order. The agent receives them as one prompt instead of processing them one by one.
Click Pause to stop sending queued prompts to the agent. To continue processing the queue, click Resume.
Answer agent questions
Sometimes an agent might request specific details from you. In these cases, Air in IDEs displays an interactive form containing a question and a list of suggestions on how to proceed with the task. The session pauses until you submit or dismiss the form, and your answer is added to the chat as a single summary block.

Use the Up and Down arrow keys to navigate the choices. Press Enter to confirm the selected choice, or press Esc to close the form.
If none of the suggestions fits, select Other and type your own answer.
To give the agent more details with your answer, type them in the Add a note to your answer field below the choices. The note is optional.
View images and diagrams in agent responses
When an agent response shows an image or a Mermaid diagram, Air in IDEs displays it right in the session. Several images in one response appear together as a gallery.
To see an image or a diagram in detail, click the image or double-click the diagram. You can also hover over it and click Expand. The preview opens in a dialog over the IDE, so you do not leave the session.

Copy Image: Copy the image or the diagram to the clipboard.
Copy Mermaid Code: Copy the source code of the diagram. Available only for Mermaid diagrams.
Open in Editor Tab: Close the dialog and open the image or the diagram in an editor tab.
Download Image: Save the image or the diagram to a file.
Close: Close the dialog. You can also press Esc.
Zoom out: Decrease the zoom level.
Zoom level: Shows the current zoom level. Click it to fit the content to the dialog.
Zoom in: Increase the zoom level. When you zoom in, drag the image or the diagram to see the parts that do not fit in the dialog.
Show at actual size (1:1): Show the diagram at its actual size. Available only for Mermaid diagrams.
For a gallery, the dialog shows all its images. To switch between them, use the arrows on the sides of the dialog or the thumbnails at the bottom.

You can also work with an image or a diagram without opening the preview. Hover over it in the session, click More actions, and select an action:
Copy Image – copy the image to the clipboard.
Download Image – save the image to a file.
Open in Editor Tab – open the image in an editor tab.
Expand – open the image in the preview dialog.

Copy Image – copy the diagram to the clipboard as an image.
Save as SVG – save the diagram to an SVG file.
Copy Mermaid Code – copy the source code of the diagram.
Show Mermaid Code – show the source code in the session instead of the diagram. To return to the diagram, select Show Diagram.

Find text in the chat
To find a message or any other text in the current session, search the chat:
On the right side of the session header, click
and select Find in Chat. Alternatively, click the chat or the text field and press Ctrl+F.

Type the text to find. The search bar shows the number of matches.
To move between the matches, click
Previous Match or
Next Match in the search bar, or press Shift+F3 or F3. You can also press Enter to move to the next match.
To close the search bar, press Esc.
Edit terminal agent prompts in the IDE
When you work with an agent in the terminal surface, you can write a long prompt or edit a plan of the agent in an IDE editor tab instead of in the terminal.
To open the prompt or the plan in an editor tab, use the command of the agent that opens its external editor:
Claude Code CLI and Codex – press Ctrl+G.
OpenCode Agent – press Ctrl+X, then E, or run the
/editorcommand. Ctrl+X is the default leader key of OpenCode Agent.
Air in IDEs opens the text in an editor tab next to the terminal. Edit the text and close the tab: Air in IDEs saves the changes, and the agent continues with the edited text.
The Edit terminal agent prompts in the IDE option is on by default. To open the prompt in your own editor instead, such as Vim or VS Code, clear its checkbox in the settings. The agent then uses the editor set in the VISUAL or EDITOR environment variable.

