Manage agent sessions
The Agent Sessions tool window provides an overview of everything agents are doing across your projects. Use it to:
See all sessions in one tree – follow the sessions started in the IDE, the ones started in external tools, such as the Codex app, and the cloud runs started in the web interface or on another machine, grouped by project.
Scope and search – keep the tree to the current project, attach other projects to follow their sessions in the same tree, and search the text of active and archived conversations.
Manage the session lifecycle – rename and pin sessions, mark a session as done to archive it, and open an archived session again when you need to continue the work.
Open the Agent Sessions tool window
To open the Agent Sessions tool window, do one of the following:
Press the Alt+2 shortcut.
Select .
Click the
Agent Sessions button in the left toolbar.
This opens the tool window listing the recently run sessions:

The tool window lists your sessions, most recent first. Each session takes its name from the first prompt you sent, carries the icon of the agent that runs it, and shows how long ago it was last active, as well as whether it is still running or waiting for your input. Sessions that run a plain shell are named Terminal.
The header of the tool window can also show counters of the sessions that are waiting for your input or review, the sessions that are currently processing, and the recently completed sessions:

To show the counters, set Show agent activity to Agent Sessions Toolbar or Both in . Alternatively, click Settings at the bottom of the Agent Sessions tool window, select Agent Activity, then Agent Sessions Toolbar.
Configure the tool window
Click Settings at the bottom of the tool window to change how the tool window works:
Agent Activity – choose where to show the counters of the sessions that need your attention, are running, or have recently completed.
Open Chat – open sessions in editor tabs or in the tool window, as described in Open sessions in the tool window.
Remote Control – pair your phone with the IDE to control sessions from your phone.
Manage Agents – install and configure agents on the Agents page.
Open AI Assistant – switch back to the AI Assistant plugin, as described in Return to AI Assistant.
Submit Feedback – send feedback about Air in IDEs to JetBrains.
The options that change how the session tree behaves, such as opening a session with a single click or listing only the sessions of the current project, are in .
Open sessions in the tool window
By default, each session opens in its own editor tab, next to your code. To keep the conversation in the Agent Sessions tool window instead:
At the bottom of the Agent Sessions tool window, click
Settings.
Select Open Chat, then In Toolwindow.

In this mode, the tool window shows either the session list or one chat. Click a session to open its chat in place of the list, and click Back to Sessions List to return to the list. To switch to another session without returning to the list, click
next to the session name and select the session. Switching the mode does not stop running agents or discard your drafts.

To return to editor tabs, select Open Chat, then In Editor. The same choice is the Open chats in setting in .
Attach another project
By default, the tree shows the sessions of the current project. If you want to track the sessions that ran in another project without opening it in a separate window, do the following:
Click Add Folder next to New Session in the toolbar of the tool window.

Select the folder or project to attach.
The sessions of that project appear under a node of their own and stay in the tree until you detach it. Double-clicking one of the attached project sessions opens the session in the editor of the window you are working in.
To manage the attached project, right-click its node in the tree and select one of the following actions:

New Session – start a new session in the attached project without switching to its window.
Open in New Window – open the attached project in a separate IDE window.
Open in Terminal – open a terminal in the root directory of the project.
Reveal in Finder – show the project directory in the file manager.
Copy Path (Ctrl+Shift+C) – copy the absolute path to the project directory.
Detach Folder – remove the project and its sessions from the tree.
Find a session
To search for a specific session, do the following:
Click
Search Sessions in the toolbar of the tool window. Alternatively, press the Ctrl+F shortcut.
Type the text to find.
Select the required search result.
The action searches what was said in a session, not only its name, and includes both active and archived sessions.
Filter sessions
You can filter the sessions listed in the Agent Sessions tool window according to a set of parameters, as well as change how the tree groups them. To do this:
Click
Filter and View Options in the toolbar of the tool window.

Use Filter Sessions to choose which sessions the tree lists:
Active – the sessions that are still in progress. This option is selected by default.
Done – the sessions that you archived with Mark as Done.
All – both the active and the archived sessions.
Use Show to choose the details that each session row carries:
Time – how long ago the session was last active.
Cost – the cost of the session, as described in Review session cost.
Sub-agents – shows agent child sessions nested under their parent session rather than as top-level rows.
Use Statuses to keep only the sessions that are in a particular state:
In Progress – the sessions where the agent is still working on your prompt.
Input Required – the sessions that wait for your answer or your review.
Unread – the sessions with completed work that you have not opened yet.
Draft – an opened New Session with no prompt sent yet. Air in IDEs keeps one reusable draft; selecting New Session again returns to it instead of creating another one.
Use Sessions Visible to limit how many sessions the tree lists for each project: 5 Sessions, 10 Sessions, 15 Sessions, or All Sessions. The rest of the sessions of a project stay hidden behind the Show more button at the end of its list.
Use Group By to choose how the tree arranges the sessions:
Date – the sessions of the current week first, with all the older ones collected under Older.
Status – by the state of the session, such as the sessions in progress and the ones that wait for your input.
Unread – the sessions with completed work that you have not opened yet, separately from the rest.
Project – by the project and worktree that the session belongs to.
None – as a flat list, without groups.
Rename, archive, and pin sessions
You can manage the session by right-clicking it in the tree and selecting an action that you want to apply to it:
Mark as Done – archive a session whose work is finished. An archived session stays in the search results. To continue the work, list the done sessions with Filter Sessions and double-click the session.
Mark Unread or Mark Read – change whether the session is listed under the Unread status and group. The menu shows Mark Read for an unread session and Mark Unread for a read one.
Add Color Label – mark the session with a specific color. The selected color is also applied to the corresponding tab in the editor.
Pin – move the session to the Pinned group at the top of the tree and lock its tab in the editor, so the tab can be neither closed nor moved.
Rename – change the name that the session took from your first prompt. You can also press Shift+F6 to rename a session.
Copy Session Info – copy the identifier of the session, its full conversation log, or the path to it.
Report a Problem – report an issue that you hit in the session.
Review session cost
To see what each session costs, click Filter and View Options, select Show, then Cost. The session list displays a cost value next to each session, where available.

Cost information comes from the agent or provider. For some agents this is the exact amount they report for the session; for others it may be missing or only approximate. Use these values to compare runs and understand which tasks are most expensive.
Check how many AI credits are left
When you work with JetBrains AI, the AI Usage button at the bottom of the Agent Sessions tool window shows how many of your monthly credits are left. Click the button to expand the AI usage block:

The block shows the share of monthly credits that is left and the date when the credits reset. For a personal license, it also shows the top-up credits that are left.
The block covers only the license or organization workspace that you selected for your JetBrains account. To check the credits of another one, select it as described in Use JetBrains AI.
Next to the name of the license or workspace:
Refresh – update the credits that are left.
Open in JetBrains Console – for an organization workspace, open the Adoption and usage page of AI analytics in JetBrains Console to see how you spent the credits over time.
The block shows only JetBrains AI credits. If you work only with Junie Lite, the AI Usage button is not shown.
Check the session outline
Open the Structure tool window while a session is opened in its tab in the editor to see an outline of its conversation and jump to any point in it.

Track agent activity without the tool window
To follow agent sessions while the Agent Sessions tool window is closed, show the session counters in the main toolbar: in , set Show agent activity to Main Toolbar or Both.
On compatible macOS keyboards, Air in IDEs can reuse the LED of the Caps Lock key as a status indicator for agent sessions. To enable this behavior:
The LED patterns show the overall state of your agent sessions:
Slow blink – one or more sessions are still processing work.
Fast blink – at least one session needs your input or review.
Solid on – there is unread completed work from an agent.
Control sessions from your phone
You can work with the sessions of the IDE from the Air mobile app on your phone. The app does not replace the IDE: it helps you keep the agents going while you are away from your desk. With the app, you can:
Answer the questions and permission requests of the agent, so that the session does not wait for you.
Follow the progress of the agent, steer it with the next prompt, or stop it.
Review the changes that the agent made.
Start a new session in one of your projects with any agent configured in the IDE. The session also appears in the Agent Sessions tool window in the IDE.
Get notified when the agent finishes working on your request or needs your input.
The app is connected to the IDE through Remote Control. The sessions keep running on your machine, and only the conversation reaches the phone, end-to-end encrypted.
To connect the app to the IDE:
Click
Settings at the bottom of the Agent Sessions tool window and select Remote Control.

Select Allow remote connections. The page shows a QR code that leads to the app.

Scan the QR code with your phone and install the app.
Open the app, tap Log In, and sign in with the same JetBrains Account that you use in the IDE. If your account belongs to an organization, select the required workspace from the list.

In the app, open the Remote tab and tap the IDE that you want to connect to.

In the Pair a Device dialog that opens in the IDE, check that the phone shows the same code, and click Allow.

After pairing, the Remote tab of the app shows the sessions of the IDE. To learn how to work with them in the app, refer to:
Run tasks from your phone – start a session in the IDE from your phone and follow up on it.
Manage tasks on your phone – find, filter, and rename sessions.
Notifications on your phone – choose which notifications you get on your phone.
Keep the machine awake
The app can reach the IDE only while the IDE is running and the machine is awake. To prevent the machine from sleeping, configure the Keep this machine awake option in :
Never – the machine goes to sleep according to its power settings.
Only while plugged in – the machine stays awake when it is connected to power, and goes to sleep as usual on battery.
Always – the machine stays awake both on power and on battery.