AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How JetBrains AI Assistant Handles Proprietary Code Privacy and External LLM Data Retention

365Finds Editorial
Indexed 11,430 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

For Engineering Directors, Chief Information Security Officers (CISOs), and legal compliance leads, integrating AI-assisted developer tooling introduces a major dilemma: developer productivity gains versus the risk of intellectual property leakage and unauthorized model training. A primary concern when adopting JetBrains AI Assistant is whether proprietary code sent to cloud-based Large Language Models (LLMs) might be retained, inspected, or incorporated into training datasets by third-party providers.

This guide provides a comprehensive breakdown of the privacy architecture, data flow, contractual protections, Zero Data Retention (ZDR) policies, and administrative governance mechanisms implemented by JetBrains and its external LLM partners.


Executive Summary: Key Security Facts


1. Request Lifecycle & Multi-Tier Processing Architecture

Understanding how proprietary code is safeguarded begins with the end-to-end request lifecycle:

[ Developer IDE ]
       |
       +---> [ Local Analysis & Filtering (.aiignore / .noai) ]
       |
       +---> [ Full Line Completion (Local / On-Device ML - Zero Network) ]
       |
       v (TLS 1.2+ Encrypted Request)
[ JetBrains AI Platform Proxy (EU / EEA) ]
       |
       +---> [ Semantic Search / RAG: JetBrains-Hosted Embedding & Reranker Models ]
       |       (No embeddings sent to OpenAI, Google, or other external vendors)
       |
       v (TLS 1.2+ Ephemeral API Call)
[ External LLM Subcontractors ]
  (OpenAI, Anthropic, Google Cloud Vertex, AWS Bedrock, xAI)
       |
       +---> [ Ephemeral Inference Execution ]
       |
       v (Output Streamed Back; Zero Model Training; No Data Retention)
[ IDE Result Rendered ]

Context Construction in the IDE

JetBrains AI Assistant does not dump entire repositories into LLM prompts. Instead, it utilizes the IDE's semantic understanding (AST parsing, symbol indexing, dependency graphs) to assemble a targeted context window. This includes:

JetBrains AI Service as a Secure Proxy

Developer workstations never communicate directly with commercial LLM endpoints using public end-user interfaces. All communication traverses the JetBrains AI Service proxy, hosted within secure data centers in the European Economic Area (EEA). This architectural tier performs essential security functions:

  1. Metadata Sanitization: Strips unauthorized identifying telemetry and unneeded local environment signatures before forwarding payloads.
  2. Quota & Rate Governance: Prevents denial-of-service abuse and controls model routing.
  3. Provider Isolation: Ensures requests are directed strictly through enterprise-grade API agreements rather than standard consumer endpoints.

2. Third-Party LLM Providers and the Zero Data Retention Boundary

Standard consumer interfaces for models like ChatGPT or Google Gemini often permit vendors to use prompts and interactions for model improvement unless explicitly opted out. Enterprise developer tools require a fundamentally different legal and architectural boundary.

Subcontractor Model Roster

As designated in official legal terms, JetBrains AI services utilize selected third-party language model providers as AI subcontractors:

In addition to external providers, JetBrains platform-hosted models (such as Mellum, Mellum2, and open-weight models including Qwen-based components) run directly on JetBrains-managed infrastructure, ensuring their inputs and outputs are never exposed to external model creators.

Contractual Zero Training & Ephemeral Retention

JetBrains maintains Data Processing Addenda (DPAs) and commercial B2B contracts with each external provider. These agreements mandate that:

  1. No Training on Inputs or Outputs: Vendor models are prohibited from using transmitted code, prompts, or generated suggestions for model training, tuning, or fine-tuning.
  2. Zero Commercial Data Retention (ZDR): Prompts and responses exist solely in volatile memory during the round-trip inference cycle. Once generation concludes and the response is streamed back to the JetBrains proxy, the payload is released.
  3. No Secondary Sharing: External providers cannot sublicense, monetize, or expose code snippets to third-party evaluators or public indexes.

Isolation of RAG and Vector Embeddings

Semantic search and Retrieval-Augmented Generation (RAG) are critical for project-wide code understanding. JetBrains executes its code vectorization and embedding pipelines internally:


3. Data Collection Governance: Telemetry vs. Detailed Code-Related Data

JetBrains distinguishes between operational telemetry and code-level data collection:

Data CategoryContent CollectedDefault Commercial StatePurposeRetention Period
Anonymous TelemetryGeneralized IDE interaction stats (click counts, latency metrics)Enabled (configurable)Product stability and UX performanceStandard retention
Operational MetadataAPI call counts, error rates, token latency (pseudonymized)Enabled (configurable)Capacity planning and outage preventionStandard retention
Detailed Code-Related DataFull text of prompts, LLM responses, and embedded source code snippetsStrictly DisabledTraining JetBrains proprietary models (e.g., Mellum)1 year (when opted in)

The "Detailed Code-Related Data" Safeguard

JetBrains offers an optional program where developers can donate interaction logs to train JetBrains-owned in-house models (such as Mellum). For engineering leaders, two structural guardrails prevent unintentional exposure:

  1. Disabled by Default: Commercial, enterprise, and educational licenses have detailed data collection turned off out of the box.
  2. Company-Level Override: Individual team members cannot opt in from their local IDE settings if the organizational account administrator has not granted company-level permission.
  3. Never Shared Externally: Even when explicitly enabled, this collected dataset is stored exclusively within the European Economic Area (EEA), accessible only to vetted personnel, and never transferred to third-party model providers.

4. Multi-Layer Enterprise Governance & Access Controls

Engineering leadership can enforce privacy boundaries across four complementary control layers:

[ Layer 1: Organization Admin Console ] ---> Master toggle: Enable/Disable AI across all seats
                                        ---> Hard block on detailed data collection
                                                      |
[ Layer 2: Repository Root (.noai) ]     ---> Complete AI Assistant shutoff for entire project
                                                      |
[ Layer 3: File / Folder (.aiignore) ]   ---> Targeted exclusion of credentials, keys, IP modules
                                                      |
[ Layer 4: Local Inspection Log ]       ---> Developer audit via ai-assistant-requests.md

Layer 1: Centralized Organization Administration

Within the JetBrains Account management portal, enterprise administrators can manage AI deployment across all assigned subscriptions:

Layer 2: Project-Level Disabling via .noai

To block all AI Assistant interactions across a specific project or sensitive repository, create an empty .noai file in the root directory:

touch .noai

When present, JetBrains AI Assistant completely disengages for that project, disabling chat, contextual completion, and agent operations regardless of individual user license status.

Layer 3: Granular Path Exclusion via .aiignore

When teams want to leverage AI Assistant generally while shielding confidential submodules, proprietary algorithms, or configuration files, they can place an .aiignore file in the project root.

The syntax mirrors .gitignore rules:

# Exclude proprietary algorithmic modules
src/core/crypto/
src/proprietary/trade_engine/

# Exclude secrets and credential configurations
config/secrets/
**/*.env
**/*.pem
**/*.key

# Exclude intellectual property or patent documentation
docs/patents/
internal_compliance/

JetBrains AI Assistant also respects established third-party ignore files present in the root directory, including .cursorignore, .codeiumignore, and .aiexclude.

Layer 4: Transparency & Audit Logging

Developers and security auditors can verify the exact payloads sent to external LLMs during any working session:

  1. Press Shift twice in any JetBrains IDE to open the Search Everywhere dialog.
  2. Search for and execute Open AI Assistant Requests Log in Editor.
  3. The IDE opens ai-assistant-requests.md, showing the raw prompts, file fragments, and system parameters dispatched during that session.

5. Deployment Options for Regulated and Restricted Environments

For organizations operating under stringent regulatory frameworks (such as defense, banking, or healthcare) where cloud LLM interaction is prohibited, JetBrains provides alternative architectures:

Full Line Code Completion (Offline Local ML)

Bring Your Own Key (BYOK)

JetBrains AI Enterprise (On-Premises & Private Cloud)


6. Architecture Comparison Matrix

Capability / DimensionStandard JetBrains AI (Commercial)JetBrains AI EnterpriseBring Your Own Key (BYOK)Full Line Code Completion
Model HostingJetBrains Cloud & External LLMsSelf-hosted or Private CloudDirect to Vendor via Local IDELocal Developer Machine
External Training on CodeProhibited by ContractProhibited / On-PremGoverned by Customer DPANone (Offline Model)
Data Retention (Inference)Zero Data Retention (ZDR)Zero Data Retention (ZDR)Governed by Customer AgreementNone (Local Memory)
Network EgressTLS 1.2+ to JetBrains EU ProxyInternal VPC / Controlled EgressDirect to Provider APIZero Network Traffic
Embedding / RAG PrivacyJetBrains-Hosted Isolated ModelsFully Private / Self-HostedVendor API or Local EmbeddingsLocal In-Memory Index
Granular Controls.aiignore, .noai, Admin PortalCentral Policy Server + Config.aiignore, .noaiIDE Settings Toggle
Compliance CertificationsSOC 2 Type II, GDPR, JetBrains DPAFull On-Premises ControlCustomer Direct ComplianceAir-Gapped Ready

Conclusion & Recommended Next Steps

JetBrains AI Assistant addresses proprietary code concerns through a defense-in-depth architecture: TLS 1.2+ encrypted transport, isolation via an EEA-hosted secure proxy, strict contractual Zero Data Retention and zero-training guarantees with LLM subcontractors, internal open-weight vector processing, and local file exclusions via .aiignore.

Recommended Rollout Checklist for Engineering Leaders:

  1. Verify Account-Level Defaults: Ensure "Detailed code-related data collection" remains disabled across all team seats in the JetBrains Account portal.
  2. Standardize Project Ignore Files: Add .aiignore or .noai files to repositories containing sensitive algorithms, patent-pending logic, or compliance-restricted assets.
  3. Audit Live Session Requests: Conduct an initial verification by inspecting ai-assistant-requests.md during a pilot evaluation to confirm prompt payload boundaries.
  4. Evaluate Deployment Tier: Use standard commercial subscriptions for general enterprise development; select BYOK or JetBrains AI Enterprise with on-premises models for restricted or air-gapped environments.

References