id stringlengths 20 30 | source stringclasses 1
value | chunk_index int64 0 520k | token_count int32 154 512 | content stringlengths 185 57.5k |
|---|---|---|---|---|
rust_dataset_chunk_509500 | rust_dataset.txt | 509,500 | 512 | } from the command palette. This opens a read-only reference you can use when editing your own settings.
### Project Settings {#project-settings}
Override user settings for a specific project by creating a `.zed/settings.json` file in your project root. Run {#action zed::OpenProjectSettings} to create this file.
Pro... |
rust_dataset_chunk_509501 | rust_dataset.txt | 509,501 | 512 | "light": "One Light",
"dark": "One Dark"
},
"buffer_font_family": "JetBrains Mono",
"buffer_font_size": 14,
"tab_size": 2,
"format_on_save": "on",
"autosave": "on_focus_change",
"vim_mode": false,
"terminal": {
"font_family": "JetBrains Mono",
"font_size": 14
},
"languages": {
"P... |
rust_dataset_chunk_509502 | rust_dataset.txt | 509,502 | 512 | useful after making edits to determine if further changes are needed.
When a path is provided, shows all diagnostics for that specific file.
When no path is provided, shows a summary of error and warning counts for all files in the project.
### `fetch` {#fetch}
Fetches a URL and returns the content as Markdown. Usef... |
rust_dataset_chunk_509503 | rust_dataset.txt | 509,503 | 512 | context window to perform a delegated task. Useful for running parallel investigations, completing self-contained tasks, or performing research where only the outcome matters. Each subagent has access to the same tools as the parent agent.
## See Also {#see-also}
- [Agent Panel](./agent-panel.md) — Where you interac... |
rust_dataset_chunk_509504 | rust_dataset.txt | 509,504 | 512 | active file
- **Entire project:** {#kb project_symbols::Toggle} searches symbols across all files
## Outline Panel {#outline-panel}
The Outline Panel ({#kb outline_panel::ToggleFocus}) shows a persistent tree view of symbols in the current file. It's especially useful with [multibuffers](./multibuffers.md) for navig... |
rust_dataset_chunk_509505 | rust_dataset.txt | 509,505 | 512 | _preprocessor/actions.json`. Without it, the preprocessor cannot validate keybinding and action references in the docs and will report errors. You only need to re-run it when actions change.
If you use Nix, the development shell provides a pinned `mdbook` (0.4.40) and a
prebuilt docs preprocessor, so you can build the... |
rust_dataset_chunk_509506 | rust_dataset.txt | 509,506 | 512 | e.g., {#kb zed::OpenSettings}.
This will output a code element like: `<code>Cmd + , | Ctrl + ,</code>`. We then use a client-side plugin to show the actual keybinding based on the user's platform.
By using the action name, we can ensure that the keybinding is always up-to-date rather than hardcoding the keybinding.
... |
rust_dataset_chunk_509507 | rust_dataset.txt | 509,507 | 512 | title for this page
description: A page-specific description
---
# Editor
```
The above code will be transformed into (with non-relevant tags removed):
```html
<head>
<title>Editor | Some more detailed title for this page</title>
<meta name="description" contents="A page-specific description" />
</head>
<body>
... |
rust_dataset_chunk_509508 | rust_dataset.txt | 509,508 | 512 | each plan and how token usage works, see [Plans & Pricing](./plans-and-pricing.md).
## Individual billing {#individual}
### Billing information {#settings}
Access billing information and settings from your [Zed dashboard](https://dashboard.zed.dev).
This page embeds data from Orb, our invoicing and metering partner... |
rust_dataset_chunk_509509 | rust_dataset.txt | 509,509 | 512 | team's costs. Paid Business seats and member AI usage appear on one bill, with no separate invoices per member. For a full feature overview, see [Zed Business](../business/overview.md).
### Billing dashboard {#dashboard}
Owners, admins, and Billing Managers can access billing information at [dashboard.zed.dev](https... |
rust_dataset_chunk_509510 | rust_dataset.txt | 509,510 | 512 | your billing address, followed by the card issue country known to Stripe.
If you have a tax ID, such as a VAT or GST ID, you can add it during checkout or update it later from the Billing page. Check the box that denotes you as a business.
Changes to tax IDs and addresses will **only** affect future invoices. We can... |
rust_dataset_chunk_509511 | rust_dataset.txt | 509,511 | 512 | ; usage beyond that is billed at the rates listed on [Zed-Hosted Models](./zed-hosted-models.md). A [trial of Zed Pro](#trials) includes $5 of GPT-6 Luna usage and unlimited Edit Predictions for 14 days from when you start the trial.
For details on billing and payment, see [Individual Billing](./billing.md).
### Zed ... |
rust_dataset_chunk_509512 | rust_dataset.txt | 509,512 | 512 | limit your spend with Zed to exactly $10/month. If you adjust this limit _higher_ than $10 and consume more than $10 of incremental token spend, that usage may be billed during the month via [Zed Pro threshold billing](./billing.md#threshold-billing).
Once the spend limit is hit, we'll stop any further usage until yo... |
rust_dataset_chunk_509513 | rust_dataset.txt | 509,513 | 512 | | Provider | Token Type | Provider Price per 1M tokens | Zed Price per 1M tokens |
| ----------------- | --------- | ------------------- | ---------------------------- | ----------------------- |
| Claude Fable 5.2 | Anthropic | Input | $8.00 | $8.80 |
... |
rust_dataset_chunk_509514 | rust_dataset.txt | 509,514 | 512 | .55 |
| Claude Opus 4.5 | Anthropic | Input | $5.00 | $5.50 |
| | Anthropic | Output | $25.00 | $27.50 |
| | Anthropic | Input - Cache Write | $6.25 ... |
rust_dataset_chunk_509515 | rust_dataset.txt | 509,515 | 512 | Anthropic | Output | $10.00 | $11.00 |
| | Anthropic | Input - Cache Write | $2.50 | $2.75 |
| | Anthropic | Input - Cache Read | $0.20 | $0.22 |
| ... |
rust_dataset_chunk_509516 | rust_dataset.txt | 509,516 | 512 | .50 | $13.75 |
| | OpenAI | Cached Input | $1.00 | $1.10 |
| GPT-6.1 Sol | OpenAI | Input | $2.00 | $2.20 |
| | OpenAI | Output... |
rust_dataset_chunk_509517 | rust_dataset.txt | 509,517 | 512 | | $0.22 |
| GPT-5.6 Luna | OpenAI | Input | $0.20 | $0.22 |
| | OpenAI | Output | $1.20 | $1.32 |
| | OpenAI | Input - ... |
rust_dataset_chunk_509518 | rust_dataset.txt | 509,518 | 512 | | OpenAI | Input | $0.25 | $0.275 |
| | OpenAI | Output | $2.00 | $2.20 |
| | OpenAI | Cached Input | $0.025 | $0.0275 |
... |
rust_dataset_chunk_509519 | rust_dataset.txt | 509,519 | 512 | Opus 4.1 → Claude Opus 4.5, Claude Opus 4.6, Claude Opus 4.7, or Claude Opus 4.8
- Claude Sonnet 4 → Claude Sonnet 4.5 or Claude Sonnet 4.6
- Claude Sonnet 3.7 (retired February 19, 2026) → Claude Sonnet 4.5 or Claude Sonnet 4.6
- GPT-5.1 and GPT-5 → GPT-5.2 or GPT-5.3-Codex
- GPT-5.2-Codex (retired July 23, 2026) → G... |
rust_dataset_chunk_509520 | rust_dataset.txt | 509,520 | 512 | enerative-ai/docs/vertex-ai-zero-data-retention).
> LLMs can enter unproductive loops that require user intervention. Monitor longer-running tasks and interrupt if needed.
## Context Windows {#context-windows}
A context window is the maximum span of text and code an LLM can consider at once, including both the input... |
rust_dataset_chunk_509521 | rust_dataset.txt | 509,521 | 512 | Luna | OpenAI | 272k input / 400k total |
| GPT-5.5 pro | OpenAI | 272k input / 400k total |
| GPT-5.5 | OpenAI | 272k input / 400k total |
| GPT-5.4 pro | OpenAI | 272k input / 400k total |
| GPT-5.4 | OpenAI | 272k input / 400k total |
| GPT-5.3-Codex ... |
rust_dataset_chunk_509522 | rust_dataset.txt | 509,522 | 512 | core of Zed's AI code editing experience — use it for code generation, refactoring, debugging, documentation, and general questions.
Open it with {#action agent::NewThread} from [the Command Palette](../command-palette.md) or click the ✨ icon in the status bar.
## Getting Started {#getting-started}
If you're using ... |
rust_dataset_chunk_509523 | rust_dataset.txt | 509,523 | 512 | } creates a new thread with the specified External Agent id.
You can also start a new thread from the [Threads Sidebar](./parallel-agents.md#threads-sidebar), scoped to a specific project — see [Running Multiple Threads](./parallel-agents.md#running-multiple-threads).
### Managing Multiple Threads {#multiple-threads}... |
rust_dataset_chunk_509524 | rust_dataset.txt | 509,524 | 512 | response in the thread view to access a context menu with the following actions:
- **Copy**: Copies the currently selected text as plain text (available when text is selected).
- **Copy as Markdown**: Copies the currently selected text as Markdown (available when text is selected).
- **Copy This Agent Response**: Cop... |
rust_dataset_chunk_509525 | rust_dataset.txt | 509,525 | 512 | not interrupted when you step away.
The display can still turn off and the screen can still lock; only system sleep is held back, and only while a thread is generating, not while it waits for your confirmation.
Turn this off with the `agent.prevent_idle_sleep` setting.
If the operating system rejects the request, Zed... |
rust_dataset_chunk_509526 | rust_dataset.txt | 509,526 | 512 | as Context
Additionally, you can also select text in a buffer or terminal and add it as context by using the {#kb agent::AddSelectionToThread} keybinding, running the {#action agent::AddSelectionToThread} action, or choosing the "Selection" item in the `+` menu in the message editor.
### Images as Context
It's also... |
rust_dataset_chunk_509527 | rust_dataset.txt | 509,527 | 512 | ToggleModelSelector} keybinding.
> The same model can be offered via multiple providers - for example, Claude Sonnet 4.5 is available via Zed Pro, OpenRouter, Anthropic directly, and more.
> Make sure you've selected the correct model **_provider_** for the model you'd like to use, delineated by the logo to the left o... |
rust_dataset_chunk_509528 | rust_dataset.txt | 509,528 | 512 | 's system prompt and tools.
> **Warning:** Rating an AI response sends the conversation thread to Zed. The
> conversation thread includes your messages, AI responses, and thread metadata.
> See [Feedback and Training Data](./ai-improvement.md) and
> [AI Privacy](./privacy-and-security.md) for more information.
> **_If... |
rust_dataset_chunk_509529 | rust_dataset.txt | 509,529 | 512 | "read_file": true,
"grep": true,
"terminal": false,
"edit_file": false
},
"enable_all_context_servers": false,
"context_servers": {},
"default_model": {
"provider": "zed.dev",
"model": "claude-sonnet-4-5"
}
}
}... |
rust_dataset_chunk_509530 | rust_dataset.txt | 509,530 | 512 | servers, and related pages |
| Settings file | {#action zed::OpenSettingsFile} | Direct JSON edits and settings not exposed in UI |
For general settings mechanics, see [Configuring Zed](../configuring-zed.md).
## LLM Providers {#llm-providers}
The `LLM Providers` section configures mode... |
rust_dataset_chunk_509531 | rust_dataset.txt | 509,531 | 512 | 20000` | Compact once fewer than that many tokens remain in the model's context window. |
`0` is not a valid threshold. If the threshold is invalid, Zed falls back to `90%`.
You can compact a Zed Agent thread manually at any time by typing `/compact` in the Agent Panel message editor. For more on thread token usage a... |
rust_dataset_chunk_509532 | rust_dataset.txt | 509,532 | 512 | -permissions.md) |
| Configure reusable task instructions | [Skills](./skills.md) |
| Configure always-on personal or project instructions | [Instructions](./instructions.md) |
| Configure edit prediction providers | [Ed... |
rust_dataset_chunk_509533 | rust_dataset.txt | 509,533 | 512 | selected, to save it as `agent.default_model`.
2. Enable thinking if it is off, then open the thinking effort menu. The "Change Thinking Effort" menu lists the model's supported levels. If the model offers no effort choices, omit `effort`.
3. Choose a level and read `agent.default_model.effort` in `settings.json` for ... |
rust_dataset_chunk_509534 | rust_dataset.txt | 509,534 | 512 | model-temperature}
Most Zed AI features use the selected model's default generation behavior.
Use `agent.model_parameters` when you need to set a temperature for a provider,
a model, or a specific provider/model pair.
```json [settings]
{
"agent": {
"model_parameters": [
{
"provider": "anthropic",... |
rust_dataset_chunk_509535 | rust_dataset.txt | 509,535 | 512 | called a harness. It is the way agentic work is started, displayed, configured, and controlled in Zed.
## Agent Path vs. LLM Provider {#agent-path-vs-llm-provider}
| Question | Start here |
| ----------------------------------------- | -----------------------... |
rust_dataset_chunk_509536 | rust_dataset.txt | 509,536 | 512 | such as
Anthropic's Covered Models), are documented
on [AI Privacy](./privacy-and-security.md#data-retention-and-training).
## Response Ratings and Feedback {#ai-feedback-with-ratings}
You can rate AI responses or submit feedback to help improve Zed's system prompt,
tools, and AI product experience. Each share is opt... |
rust_dataset_chunk_509537 | rust_dataset.txt | 509,537 | 512 | Exclusions {#file-exclusions}
Certain files are always excluded from Edit Prediction training data collection,
regardless of opt-in status:
```json [settings]
{
"edit_predictions": {
"disabled_globs": [
"**/.env*",
"**/*.pem",
"**/*.key",
"**/*.cert",
"**/*.crt",
"**/.dev.va... |
rust_dataset_chunk_509538 | rust_dataset.txt | 509,538 | 512 | terms}
See the [Zed Terms of Service](https://zed.dev/terms) for more.
--- FILE: zed/docs/src/ai/by-company.md ---
---
title: AI by Company - Zed
description: Find the right Zed setup path for OpenAI, ChatGPT, Codex, Claude, Gemini, Copilot, Cursor, OpenCode, Pi, Poolside, OpenRouter, Bedrock, local models, and othe... |
rust_dataset_chunk_509539 | rust_dataset.txt | 509,539 | 512 | .md) |
## Anthropic / Claude / Claude Code {#anthropic-claude}
| Path | Support level | What you get | Account / billing | Setup |
| -------------------- | ---... |
rust_dataset_chunk_509540 | rust_dataset.txt | 509,540 | 512 | ) |
| Copilot External Agent | Hosted in Zed | Copilot in an External Agent thread, where available | Owned by Copilot | [External Agents](./external-agents.md#copilot) |
| Copilot CLI | Run in terminal | Native CLI ... |
rust_dataset_chunk_509541 | rust_dataset.txt | 509,541 | 512 | Pi CLI/TUI | Run in terminal | Native Pi command-line experience, where available | Owned by Pi | [Terminal Threads](./terminal-threads.md) |
Pi is an agent harness, not a Zed LLM subscription. Pi may support provider auth such as ChatGPT, Claude, or Copilot through its own setup flow.
## Poolside {#pool... |
rust_dataset_chunk_509542 | rust_dataset.txt | 509,542 | 512 | use-a-gateway.md#amazon-bedrock) |
## Local Models {#local-models}
| Tool | Support level | What you get | Account / billing | Setup |
| --------------------------------- | ----------------- | -------... |
rust_dataset_chunk_509543 | rust_dataset.txt | 509,543 | 512 |
[AI Privacy](./privacy-and-security.md) and
[Feedback and Training Data](./ai-improvement.md#edit-predictions).
## Configuring Zeta
To use Zeta, [sign in](../authentication.md#what-features-require-signing-in).
Once signed in, predictions appear as you type.
You can confirm that Zeta is properly configured by openi... |
rust_dataset_chunk_509544 | rust_dataset.txt | 509,544 | 512 | bound as a default key binding for edit predictions on those platforms.
In `eager` mode, you can also use the `tab` key to accept edit predictions, unless the completion menu is open, in which case `tab` accepts LSP completions. To use `tab` to insert whitespace, you need to dismiss the prediction with {#kb editor::C... |
rust_dataset_chunk_509545 | rust_dataset.txt | 509,545 | 512 | ```
After that, `alt-tab` remains available for accepting edit predictions, and on Linux and Windows `alt-l` does too unless you unbind it.
### Keybinding Example: Rebind Both Tab and Alt-Tab
To move both default accept bindings to something else, unbind them and add your replacement:
Open the keymap editor with {#... |
rust_dataset_chunk_509546 | rust_dataset.txt | 509,546 | 512 | {
"provider": "open_ai_compatible_api",
"open_ai_compatible_api": {
"prediction_debounce": 500
}
}
}
```
The default debounce depends on the provider:
| Provider | Default |
| --------------------- | ------: |
| GitHub Copilot | 75 ms |
| Codestral | 150 ms |
| ... |
rust_dataset_chunk_509547 | rust_dataset.txt | 509,547 | 512 | uring Other Providers {#other-providers}
Edit Prediction also works with other providers.
### GitHub Copilot {#github-copilot}
To use GitHub Copilot as your provider, set this in your settings file ([how to edit](../configuring-zed.md#settings-files)):
```json [settings]
{
"edit_predictions": {
"provider": "c... |
rust_dataset_chunk_509548 | rust_dataset.txt | 509,548 | 512 |
**Configure Providers** from the menu.
After adding your API key, Mercury Coder will appear in the provider dropdown in the status bar menu, where you can select it. You can also set it directly in your settings file:
```json [settings]
{
"edit_predictions": {
"provider": "mercury"
}
}
```
### Codestral {#c... |
rust_dataset_chunk_509549 | rust_dataset.txt | 509,549 | 512 | _output_tokens": 512
}
}
}
```
The `prompt_format` setting controls how code context is formatted for the model. Use `"infer"` to detect the format from the model name, or specify one explicitly:
- `zeta` - Zeta 1 format
- `zeta2` - Zeta 2 format
- `zeta2_1` - Zeta 2.1 format
- `code_llama` - CodeLlama format: ... |
rust_dataset_chunk_509550 | rust_dataset.txt | 509,550 | 512 | _api",
"open_ai_compatible_api": {
"api_url": "http://localhost:8080/v1/completions",
"model": "zeta2.1",
"prompt_format": "infer",
"max_output_tokens": 512
}
}
}
```
You can also set `"prompt_format": "zeta2"` or `"prompt_format": "zeta2_1"` explicitly when the model name does not ma... |
rust_dataset_chunk_509551 | rust_dataset.txt | 509,551 | 512 | Registry}, or open [Agent Settings](./agent-settings.md) with {#action agent::OpenSettings}, go to the **External Agents** page, click `Add Agent`, and choose `Install from Registry`.
After installation, the agent appears in the new-thread menu in the Agent Panel and Threads Sidebar.
## Common Agents {#common-agents}... |
rust_dataset_chunk_509552 | rust_dataset.txt | 509,552 | 512 | flow.
If `GEMINI_API_KEY` or `GOOGLE_AI_API_KEY` is available to the agent process, Gemini CLI uses that key. Otherwise, if you have configured an API key for Zed's Google AI provider, Zed passes that key to Gemini CLI as `GEMINI_API_KEY`.
## OpenCode {#opencode}
Use OpenCode when you want OpenCode running as an AC... |
rust_dataset_chunk_509553 | rust_dataset.txt | 509,553 | 512 | Zed's settings file on macOS and on Linux without a custom `XDG_CONFIG_HOME`. On Windows, or with a custom config directory, install from the registry or use the manual configuration below instead. You do not need to restart Zed. It detects the settings change automatically. Select `Poolside` from the new-thread menu.... |
rust_dataset_chunk_509554 | rust_dataset.txt | 509,554 | 512 | .
External Agents may have their own sign-in flow, API key setup, subscription behavior, environment variables, and config files.
Examples:
- Claude Agent may use Claude Code auth and Claude-native config.
- Codex may use ChatGPT login, Codex API keys, OpenAI API keys, or Codex-native config.
- Cursor subscriptions ... |
rust_dataset_chunk_509555 | rust_dataset.txt | 509,555 | 512 | Command Palette. Click **Import Threads**, choose the agents you want to import from, then click **Import Threads** again.
Zed connects to each selected agent over ACP and adds sessions that are not already in your history. Imported threads are archived entries; open one to restore it and continue where you left off.... |
rust_dataset_chunk_509556 | rust_dataset.txt | 509,556 | 512 | ), including Zed-hosted models, provider API keys, gateways, [local models](./use-a-local-model.md), and supported subscriptions.
## Adding Context
You can add context in the Inline Assistant the same way you can in [the Agent Panel](./agent-panel.md#adding-context):
- @-mention files, directories, past threads, ins... |
rust_dataset_chunk_509557 | rust_dataset.txt | 509,557 | 512 | "model": "gpt-5-mini"
},
{
"provider": "zed.dev",
"model": "gemini-3-flash"
}
]
}
}
```
## Inline Assistant vs. Edit Prediction
Both features generate inline code, but they work differently:
- **Inline Assistant**: You write a prompt and select what to transform. You control ... |
rust_dataset_chunk_509558 | rust_dataset.txt | 509,558 | 512 | they conflict.
## Instruction File Support {#support}
| File | [Zed Agent](./zed-agent.md) | [External Agents](./external-agents.md) | Terminal Threads |
| --------------------------------- | -----------------------------------------------------... |
rust_dataset_chunk_509559 | rust_dataset.txt | 509,559 | 512 | #choose-a-model-access-path}
| Model access path | Best when | Source of truth |
| ----------------------------------------------------------------- | --------------------------------------... |
rust_dataset_chunk_509560 | rust_dataset.txt | 509,560 | 512 | ification/2025-11-25/server/tools) and [Prompts](https://modelcontextprotocol.io/specification/2025-11-25/server/prompts) features.
We welcome contributions that help advance Zed's MCP feature coverage (Discovery, Sampling, Elicitation, etc).
Zed also handles the `notifications/tools/list_changed` notification from MC... |
rust_dataset_chunk_509561 | rust_dataset.txt | 509,561 | 512 | can connect both local and remote MCP servers from **[Settings → AI → MCP Servers](./agent-settings.md)** (also accessible via the {#action agent::OpenSettings} action, then selecting `MCP Servers`). Click `Add Server` in the page header, then choose `Add Local Server` or `Add Remote Server`. Your specified configurat... |
rust_dataset_chunk_509562 | rust_dataset.txt | 509,562 | 512 | custom profile](./agent-profiles.md) where all built-in tools (or the ones that could cause conflicts with the server's tools) are turned off and only the tools coming from the MCP server are turned on.
As an example, [the Dagger team suggests](https://container-use.com/agent-integrations#zed) doing that with their [... |
rust_dataset_chunk_509563 | rust_dataset.txt | 509,563 | 512 | since pattern-based rules match against an empty string for MCP tools and most patterns won't match.
Learn more about [how tool permissions work](./tool-permissions.md), how to further customize them, and other details.
### External Agents
MCP servers configured in Zed are forwarded to [External Agents](./external-... |
rust_dataset_chunk_509564 | rust_dataset.txt | 509,564 | 512 | account/zed-hosted-models.md), provider API keys, supported subscriptions, gateways, and [local models](./use-a-local-model.md). It also uses built-in tools, profiles, skills, instructions, and MCP servers.
- [External Agents](./external-agents.md): ACP-integrated agents that run through their own process and configura... |
rust_dataset_chunk_509565 | rust_dataset.txt | 509,565 | 512 | thread works independently with its own agent, context window, and conversation history. Terminal Threads appear alongside agent threads in the same sidebar, so you can switch between them without leaving the Agent Panel.
Open the Threads Sidebar with {#kb multi_workspace::ToggleWorkspaceSidebar}.
Use **Panel Layout... |
rust_dataset_chunk_509566 | rust_dataset.txt | 509,566 | 512 | is open, `Ctrl+Down` and `Ctrl+Up` also move the selection one thread at a time, as do the arrow keys when no modifier is held. This works from both the Agent Panel and the Threads Sidebar.
### Thread History {#threads-history}
To remove a thread from the sidebar, you can archive it by hovering over it and clicking ... |
rust_dataset_chunk_509567 | rust_dataset.txt | 509,567 | 512 | [External Agent](./external-agents.md) like Claude Code or Codex in another.
### Thread Types {#thread-types}
The Threads Sidebar can hold different thread types:
| Thread type | Configuration |
| ------------... |
rust_dataset_chunk_509568 | rust_dataset.txt | 509,568 | 512 | (to the right of the project picker) to switch between existing worktrees or create a new one. New worktrees are created in a detached HEAD state, so you won't accidentally share a branch between worktrees.
Once you're in a new worktree, use the branch picker next to the worktree picker to create a new branch or chec... |
rust_dataset_chunk_509569 | rust_dataset.txt | 509,569 | 512 | models with safety retention](#provider-safety-retention),
such as Anthropic's Covered Models.
Zed only retains AI data when you explicitly share feedback or opt in to
training data collection.
## AI Request Paths {#ai-request-paths}
| Path | Who handles model ... |
rust_dataset_chunk_509570 | rust_dataset.txt | 509,570 | 512 | Edit Prediction](./edit-prediction.md) | The selected edit prediction provider | Each keystroke can send local editing context to the selected provider. Zeta requests are processed transiently unless training data collection is enabled; third-party providers follow their own terms. ... |
rust_dataset_chunk_509571 | rust_dataset.txt | 509,571 | 512 | ://openai.com/enterprise-privacy/) | [Yes](https://platform.openai.com/docs/guides/your-data) |
### Provider Safety Retention for Designated Models {#provider-safety-reten... |
rust_dataset_chunk_509572 | rust_dataset.txt | 509,572 | 512 | Business](../business/privacy.md): How Zed Business enforces
privacy settings across an organization.
- [Admin Controls](../business/admin-controls.md): How owners and admins control
Zed-hosted models, Edit Prediction, and feedback sharing.
- [AI Quick Start](./quick-start.md#turn-ai-off): How to turn AI off.
- [P... |
rust_dataset_chunk_509573 | rust_dataset.txt | 509,573 | 512 | , Codex, OpenCode, Copilot, Cursor, Pi Coding Agent, Gemini CLI, or another coding agent.
| If the agent... | Use |
| ------------------------------- | ----------------------------------------- |
| Integrates with Zed through ACP | [External Agents](./external-agen... |
rust_dataset_chunk_509574 | rust_dataset.txt | 509,574 | 512 | changes | [Agent Panel](./agent-panel.md) |
| Accept AI completions while typing | [Edit Prediction](./edit-prediction.md) |
| Rewrite selected code or terminal text | [Inline Assistant](./inline-assistant.md) |
| Run multiple AI tasks at once ... |
rust_dataset_chunk_509575 | rust_dataset.txt | 509,575 | 512 | windsurfrules`
- `.clinerules`
- `.github/copilot-instructions.md`
- `AGENT.md`
- `AGENTS.md`
- `CLAUDE.md`
- `GEMINI.md`
## Migrating to Skills {#migrating-to-skills}
Existing Rules migrate automatically:
- Non-default Rules become global Skills in `~/.agents/skills/`, each with `disable-model-invocation: true`. Th... |
rust_dataset_chunk_509576 | rust_dataset.txt | 509,576 | 512 | all escape attempts. See
> [Windows](#windows) for more detail.
## Sandboxed Tools {#sandboxed-tools}
Zed Agent sandboxing currently applies to the `terminal` and `fetch` tools.
| Tool | What sandboxing limits |
| ---------- | ----... |
rust_dataset_chunk_509577 | rust_dataset.txt | 509,577 | 512 | them.
Firstly, sandboxing relies on OS-level features, which may contain bugs.
Operating systems have historically had bugs in security features. And while we
have tested thoroughly, there may also be bugs in Zed's implementation. These
could allow privilege escalation - for example, allow an agent to write to a
file... |
rust_dataset_chunk_509578 | rust_dataset.txt | 509,578 | 512 | ).
- use a shell prompt that reports Git status without executing
repository-defined programs.
- review the diff before running `git commit`
But none of this changes the fundamental principle: **a sandbox is not a
substitute for good security practices**. It is one layer in a defense-in-depth
strategy.
Zed's defaul... |
rust_dataset_chunk_509579 | rust_dataset.txt | 509,579 | 512 | |
Prefer narrow grants, such as a specific host or write path, over `allow_all_hosts`, `allow_fs_write_all`, or
`allow_unsandboxed`.
## Git Metadata {#git-metadata}
Git metadata writes are not grantable while a terminal command is sandboxed. This includes writes to `.git` directories,
linked worktree metadata, refs... |
rust_dataset_chunk_509580 | rust_dataset.txt | 509,580 | 512 | uid Bubblewrap to enable sandboxing.
Sandboxed terminal commands:
- can read the filesystem, including protected Git metadata contents
- can write inside open project directories, except protected Git metadata
- can write to `/tmp`, which is backed by a fresh temporary filesystem and is cleared between terminal tool ... |
rust_dataset_chunk_509581 | rust_dataset.txt | 509,581 | 512 | , in Ubuntu 23.10, Canonical [added a security
measure][ubuntu blog] that restricts unprivileged user namespaces. These
restrictions are enforced by AppArmor.
Because of this, you may also need to install an AppArmor profile for bubblewrap
after you install it. This is a configuration file that gives bubblewrap the
ab... |
rust_dataset_chunk_509582 | rust_dataset.txt | 509,582 | 512 | If WSL is not installed, or if you choose to run a command without the sandbox, Zed falls back to the standard terminal
behavior of running in your native shell. It selects the shell using the usual preference order: a bash (scoop's bash or
Git Bash) when one is installed, otherwise PowerShell, and finally `cmd.exe`. B... |
rust_dataset_chunk_509583 | rust_dataset.txt | 509,583 | 512 | mechanism similar to a network drive. Unfortunately, inode pinning is
not guaranteed to work for these. While we can still pin the inode for
`/mnt/c/foo/bar.txt`, this doesn't pin the underlying Windows filesystem object,
and so it's possible for this to change during the lifetime of a sandbox, which
could potentially... |
rust_dataset_chunk_509584 | rust_dataset.txt | 509,584 | 512 | ubuntu blog]: https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
--- FILE: zed/docs/src/ai/skills.md ---
---
title: Agent Skills - Zed
description: Extend Zed's AI agent with reusable, on-demand skill files for specialized tasks.
---
# Skills {#skills}
Skills are reusable instruction packa... |
rust_dataset_chunk_509585 | rust_dataset.txt | 509,585 | 512 | [`frontend-design`](https://skills.sh/anthropics/skills/frontend-design): production-grade frontend interfaces with design polish
- [`pdf`](https://skills.sh/anthropics/skills/pdf): PDF text extraction, merging, splitting, form filling, and OCR
To install a skill, copy the skill's folder into `~/.agents/skills/` for ... |
rust_dataset_chunk_509586 | rust_dataset.txt | 509,586 | 512 | in its system prompt, and calls the `skill` tool when a task matches a skill's description.
When the agent invokes a skill you created or installed, Zed prompts you to allow or deny it, using the same permission flow as other tools. Skills built into Zed do not prompt. You can set per-skill defaults in [Tool Permissi... |
rust_dataset_chunk_509587 | rust_dataset.txt | 509,587 | 512 | and hyphens only. Max 64 characters. Should match the folder name. |
| `description` | Yes | What the skill does and when to use it. Keep it at most 1024 characters; skills with longer descriptions still load, but with a warning. |
| `disable-model-invocation... |
rust_dataset_chunk_509588 | rust_dataset.txt | 509,588 | 512 | | Path | When it applies |
| ------------- | ---------------------------- | ------------------------ |
| Global | `~/.agents/skills/` | Every project |
| Project-local | `<worktree>/.agents/skills/` | Only the current project |
Each skill is a direct... |
rust_dataset_chunk_509589 | rust_dataset.txt | 509,589 | 512 | from the catalog with a warning in the UI. Keep descriptions concise.
- **No remote registry.** Zed does not discover or load skills from remote locations at runtime, and custom search paths are not supported. (You can still import a skill once from a GitHub URL — see [Create your own](#create-your-own).) Skills are l... |
rust_dataset_chunk_509590 | rust_dataset.txt | 509,590 | 512 | the top-right of the panel toolbar, then choose **Terminal**. The Terminal Thread opens in the panel body, just like switching to an agent thread.
You can open as many Terminal Threads as you like. Each gets its own entry in the Threads Sidebar.
## Running a Command Automatically {#terminal-thread-init-command}
If ... |
rust_dataset_chunk_509591 | rust_dataset.txt | 509,591 | 512 | , that Zed uses to show useful context in the sidebar.
### Claude Code Notifications {#claude-code-notifications}
Claude Code can notify you when it finishes a task or pauses for permission. To enable this, set `preferredNotifChannel` to `"terminal_bell"` in your Claude Code user settings:
```json
{
"preferredNoti... |
rust_dataset_chunk_509592 | rust_dataset.txt | 509,592 | 512 | -agent";
export default function (pi: ExtensionAPI) {
pi.on("agent_end", async () => {
process.stdout.write("\x07");
});
}
```
Restart Pi after adding the extension, or run `/reload` if the extension is in one of Pi's auto-discovered extension locations.
### Codex Terminal Titles {#codex-terminal-titles}
Co... |
rust_dataset_chunk_509593 | rust_dataset.txt | 509,593 | 512 | Agent Panel](./agent-panel.md) tools run automatically and which require your approval.
For a list of available tools, [see the Tools page](./tools.md).
> **Note:** In Zed v0.224.0 and above, tool approval is controlled by `agent.tool_permissions.default`.
> In earlier versions, it was controlled by the `agent.always_... |
rust_dataset_chunk_509594 | rust_dataset.txt | 509,594 | 512 | tools](./mcp.md), use the format `mcp:<server>:<tool_name>`.
For example, a tool called `create_issue` on a server called `github` would be `mcp:github:create_issue`.
For model-invoked [Skills](./skills.md), use the `skill` tool. A user-invoked `/skill-name` slash command does not prompt again because you explicitly ... |
rust_dataset_chunk_509595 | rust_dataset.txt | 509,595 | 512 | actions
5. **Tool-specific `default`**: Per-tool fallback when no patterns match (e.g., `tools.terminal.default`)
6. **Global `default`**: Falls back to `tool_permissions.default` when no tool-specific default is set
## Global Auto-Approve
To auto-approve all tool actions:
```json [settings]
{
"agent": {
"too... |
rust_dataset_chunk_509596 | rust_dataset.txt | 509,596 | 512 | for word boundaries: `\brm\b` matches "rm" but not "storm"
- Use `^` and `$` to anchor patterns to start/end of input
- Escape special characters: `\.` for literal dot, `\\` for backslash
<div class="warning">
Test carefully—a typo in a deny pattern blocks legitimate actions.
You can use the "Test Your Rules" checke... |
rust_dataset_chunk_509597 | rust_dataset.txt | 509,597 | 512 | .
MCP tools only support the tool-level option.
## Examples
### Terminal: Auto-Approve Build Commands
```json [settings]
{
"agent": {
"tool_permissions": {
"tools": {
"terminal": {
"default": "confirm",
"always_allow": [
{ "pattern": "^cargo\\s+(build|test|check|cl... |
rust_dataset_chunk_509598 | rust_dataset.txt | 509,598 | 512 | "github\\.com" }
],
"always_deny": [{ "pattern": "internal\\.company\\.com" }]
}
}
}
}
}
```
### MCP Tools
```json [settings]
{
"agent": {
"tool_permissions": {
"tools": {
"mcp:github:create_issue": {
"default": "confirm"
},
"mcp:g... |
rust_dataset_chunk_509599 | rust_dataset.txt | 509,599 | 512 | .md) is enabled.
## Read & Search Tools
### `diagnostics`
Gets errors and warnings for either a specific file or the entire project, useful after making edits to determine if further changes are needed.
When a path is provided, shows all diagnostics for that specific file.
When no path is provided, shows a summary o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.