TECHNOLOGY

JetBrains AI context: attachments have types and size boundaries

In this article
THE QUICK TAKE

Attachment type and trimming determine the evidence available to JetBrains AI Chat; inspect what was included rather than assuming a selected folder was read completely.

JetBrains AI Assistant accepts several kinds of context, including files, symbols, problems, changes, and images. The attachment type explains what evidence the request supplies. Large attachments can be trimmed to fit the model’s context capacity, so selecting a folder does not prove that every byte reached the model. Understanding type and size boundaries helps make an answer’s evidence reviewable.

Different context types answer different questions

A symbol identifies a code entity, a local-changes attachment identifies a patch, and a problem attachment describes a diagnostic. These sources are useful for different tasks. Explain whether the request concerns existing behavior, a proposed change, or an observed failure. Otherwise the model can produce a fluent answer using the wrong evidence type. A review of a patch needs its surrounding contract, while a diagnostic explanation needs the relevant current implementation and execution conditions.

Primary reference: JetBrains AI Assistant: Chat with AI.

A folder attachment can exceed the available budget

The model has finite context capacity. Current documentation explains that file and folder contents can be included only partially when they exceed the relevant threshold. This is not equivalent to the model having inspected everything and decided it was irrelevant. Narrow the attachment to the needed files or symbols when possible. Preserve the key contract explicitly, and treat a claim about an unseen file as an inference requiring further evidence rather than a confirmed repository fact.

Primary reference: JetBrains AI Assistant: AI Chat.

An image is visual evidence with limits

A screenshot can show layout, an error message, or a diagram, but it is not the same as the underlying source code or runtime state. Pair it with relevant files when the task requires editing. State which visual condition matters, such as an overflow at a narrow viewport. Avoid expecting an image alone to establish hidden event logic. The attachment’s usefulness follows the question and the evidence it actually contains.

Primary reference: JetBrains AI Assistant: Restrict or Disable Features.

Manual attachment is an intentional data path

Automatic discovery exclusions and a user’s explicit attachment can have different documented behavior. Do not assume that a file hidden from ordinary collection is impossible to provide manually. Review the actual item before sending and follow the project’s data-handling requirements. This distinction is useful without making broad claims about every agent or external tool. The relevant question is which component obtained the content and how that request is configured to process it.

Review the request’s actual evidence

AI Chat provides attachment review and indicators for trimmed content. Use them when an answer misses an expected definition or relies on incomplete material. Add a focused follow-up with the missing contract rather than blindly increasing the entire attachment set. The useful result connects the answer to inspectable evidence and a current revision. It avoids equating a visible attachment label with a guarantee that its full contents were present and understood without limitation.

Related reading: Continue vs Cline vs Aider for local coding; Reproducible inference stacks: preserving a GPU pilot’s result.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles