1# Zed AI Improvement
2
3## Agent Panel
4
5### Opt-In
6
7When you use the Agent Panel through any of these means:
8
9- [Zed's hosted models](./subscription.md)
10- [connecting a non-Zed AI service via API key](./llm-providers.md)
11- using an [external agent](./external-agents.md)
12
13Zed does not persistently store user content or use user content to evaluate and/or improve our AI features, unless it is explicitly shared with Zed. Each share is opt-in, and sharing once will not cause future content or data to be shared again.
14
15> Note that rating responses will send your data related to that response to Zed's servers.
16> **_If you don't want data persisted on Zed's servers, don't rate_**. We will not collect data for improving our Agentic offering without you explicitly rating responses.
17
18When using upstream services through Zed's hosted models, we require assurances from our service providers that your user content won't be used for training models.
19
20| Provider | No Training Guarantee | Zero-Data Retention (ZDR) |
21| --------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
22| Anthropic | [Yes](https://www.anthropic.com/legal/commercial-terms) | [Yes](https://privacy.anthropic.com/en/articles/8956058-i-have-a-zero-data-retention-agreement-with-anthropic-what-products-does-it-apply-to) |
23| Google | [Yes](https://cloud.google.com/terms/service-terms) | **No**, in flight |
24| OpenAI | [Yes](https://openai.com/enterprise-privacy/) | [Yes](https://platform.openai.com/docs/guides/your-data) |
25
26> Zed's use of Gemini models is currently supported via [Google AI Studio](https://ai.google.dev/aistudio), which **_does not_** support ZDR. We're migrating to [Vertex AI](https://cloud.google.com/vertex-ai?hl=en), which **_does_**, and upon completion of that migration will offer ZDR to all users of Zed's hosted Google/Gemini models.
27
28> If ZDR from upstream model providers is important to you, _please do not use Gemini models at this time_. Your data will never be used for training purposes by any model providers hosted by Zed, however.
29
30When you use your own API keys or external agents, **Zed does not have control over how your data is used by that service provider.**
31You should reference your agreement with each service provider to understand what terms and conditions apply.
32
33### Data we collect
34
35For prompts you have explicitly shared with us, Zed may store copies of those prompts and other data about the specific use of the Agent Panel.
36
37This data includes:
38
39- The prompt given to the Agent
40- Any commentary you include
41- Product telemetry about the agentic thread
42- Metadata about your Zed installation
43
44### Data Handling
45
46Collected data is stored in Snowflake, a private database where we track other metrics. We periodically review this data to improve our overall agentic approach and refine the product via our system prompt, tool use, etc. We ensure any included data is anonymized and contains no sensitive information (access tokens, user IDs, email addresses, etc).
47
48## Edit Predictions
49
50By default, when using Zed Edit Predictions, Zed does not persistently store user content or use user content for training of its models.
51
52### Opt-in
53
54Users who are working on open source licensed projects may optionally opt-in to providing model improvement feedback. This opt-in occurs on a per-project basis. If you work on multiple open source projects and wish to provide model improvement feedback you will have to opt-in for each individual project.
55
56When working on other projects where you haven't opted-in, Zed will not persistently store user content or use user content for training of its models.
57
58You can see exactly how Zed detects open source licenses in: [license_detection.rs](https://github.com/zed-industries/zed/blob/main/crates/zeta/src/license_detection.rs).
59
60### Exclusions
61
62Zed will intentionally exclude certain files from Predictive Edits entirely, even when you have opted-in to model improvement feedback.
63
64You can inspect this exclusion list by opening `zed: open default settings` from the command palette:
65
66```json [settings]
67{
68 "edit_predictions": {
69 // A list of globs representing files that edit predictions should be disabled for.
70 // There's a sensible default list of globs already included.
71 // Any addition to this list will be merged with the default list.
72 "disabled_globs": [
73 "**/.env*",
74 "**/*.pem",
75 "**/*.key",
76 "**/*.cert",
77 "**/*.crt",
78 "**/secrets.yml"
79 ]
80 }
81}
82```
83
84Users may explicitly exclude additional paths and/or file extensions by adding them to [`edit_predictions.disabled_globs`](https://zed.dev/docs/configuring-zed#edit-predictions) in their Zed settings.json:
85
86```json [settings]
87{
88 "edit_predictions": {
89 "disabled_globs": ["secret_dir/*", "**/*.log"]
90 }
91}
92```
93
94### Data we collect
95
96For open source projects where you have opted-in, Zed may store copies of requests and responses to the Zed AI Prediction service.
97
98This data includes:
99
100- the edit prediction
101- a portion of the buffer content around the cursor
102- a few recent edits
103- the current buffer outline
104- diagnostics (errors, warnings, etc) from language servers
105
106### Data Handling
107
108Collected data is stored in Snowflake, a private database where we track other metrics. We periodically review this data to select training samples for inclusion in our model training dataset. We ensure any included data is anonymized and contains no sensitive information (access tokens, user IDs, email addresses, etc). This training dataset is publicly available at [huggingface.co/datasets/zed-industries/zeta](https://huggingface.co/datasets/zed-industries/zeta).
109
110### Model Output
111
112We then use this training dataset to fine-tune [Qwen2.5-Coder-7B](https://huggingface.co/Qwen/Qwen2.5-Coder-7B) and make the resulting model available at [huggingface.co/zed-industries/zeta](https://huggingface.co/zed-industries/zeta).
113
114## Applicable terms
115
116Please see the [Zed Terms of Service](https://zed.dev/terms-of-service) for more.