Task context
Context is the information the agent uses to understand your project and produce a correct change. The more relevant the task context is, the fewer assumptions the agent has to make.
Good practice is to add just enough context to point the agent to the right code: the relevant files or symbols, the current changes, and any examples that show the expected behavior.
Add context
Add context from Chat
In the Chat tool, use @ to reference context items.
In the task input, type @ and select what you want to reference, for example, files, commits, or symbols.
In the Chat tool, use the + button to attach context.
In the task toolbar, click + and select what you want to attach, for example, files and folders, Git branches or commits, local changes, terminals, or an MCP server.

Add context from the editor
Use editor selection when a specific snippet is the most relevant context for the task. This works well when you want to point the agent to the exact code that needs attention (for example, the buggy logic, the API boundary, or the code you want to refactor).
Select any code, right-click, and use Add to Task to attach it to the task. If you want to leave feedback for a follow-up iteration, use Add Comment for Selection.

If a task starts producing changes in the wrong area, stop and add more context. The fastest fix is usually to point the agent to the correct file or symbol.
Files and folders
Attach files when the change is local and you already know the file to edit. Attach folders when the change spans multiple files in the same area.
Prefer a small folder over the entire repository. Large context can make it harder for the agent to focus on the correct code.
Documentation
Use documentation context when the agent needs to follow an external source of truth. A common use case is adding library documentation (for example, a framework API reference) so the agent can use the correct APIs and patterns. Documentation sources are workspace-scoped and can point to an external documentation site.
If no documentation source is configured yet, you will see Add Documentation. Use it to add a documentation source by providing a name and a URL. After you add a source, you can reference it as a task context from the + menu or with @.
Git branches
Reference a Git branch when the task depends on code that is not in your current working tree. This is useful when you want the agent to inspect another line of work or compare approaches.
Git commits
Reference a commit when you want the agent to explain a change, identify the cause of a regression, or use a known-good version as a baseline.
Commits are also useful as evidence: this behavior worked in commit X.
Local changes
Attach local changes when you want the agent to continue from your unfinished work. This is useful for "finish what I started" tasks, or when you want the agent to review a diff and suggest fixes.
Local changes reduce back-and-forth because the agent sees the exact state of your working copy.
Symbols
Symbols help you point the agent to specific code elements, such as classes, functions, or methods. This is often the most precise way to add context without attaching entire files.
Use symbols when you know what part of the code should change but do not want to include unrelated code from the same file.
The symbol list shows symbols only for the files that are currently opened in the editor. Open the file first if you want to reference its symbols.

Terminals
Attach a terminal when the agent needs command output, logs, or an existing shell state. This is useful for debugging tasks where the evidence is in the console output.
If the output is long, select the exact lines you care about in the Terminal and add them with Add to Task.

MCP Server
Attach an MCP server when the task needs tools that are not built into JetBrains Air. MCP servers can provide external capabilities, for example access to a service API or a specialized analyzer.
Use MCP when the tool is necessary for the task. Avoid adding tools "just in case".
Learn more in MCP server integration.
Upload from computer
Upload files when the relevant input is not part of the repository. For example: logs, screenshots, sample data, or a specification document you want the agent to follow.
Keep uploads minimal and explain what the agent should look for inside them.