<img width="851" height="315" alt="Screenshot 2026-06-09 at 2 15 51 AM" src="https://github.com/user-attachments/assets/958f2d2f-db7d-4afb-b4b3-ed11f36b00e7" /> <img width="644" height="260" alt="Screenshot 2026-06-09 at 2 16 04 AM" src="https://github.com/user-attachments/assets/e6a74c6b-aba5-4fbb-991c-25842ced5832" /> <img width="619" height="128" alt="Screenshot 2026-06-09 at 2 18 08 AM" src="https://github.com/user-attachments/assets/ba7fa303-852b-4a17-b8df-ea5bd4df7c11" /> Adds an always-available `/compact` slash command to Zed's native agent that forces a summary-based context compaction of the current conversation, regardless of token usage. This reuses the agent's existing compaction logic (always the summary strategy, never provider-native), bypassing the automatic-compaction token threshold and minimum-context-window guard since the user explicitly asked to compact. The command lives entirely in `NativeAgent`/`NativeAgentConnection`, so external (ACP) agents are untouched and keep their own `/compact` implementations. The command is gated behind the `handoff` feature flag, matching the gate on automatic compaction, so it's only advertised and dispatched when that flag is enabled. When the flag is off, typing `/compact` is treated as an ordinary prompt. Because the agent panel always renders the typed `/compact` as a user message, the manual compaction records a matching zero-content user message in the model thread (skipped when building model requests) so that rewinding/truncating that message works instead of erroring, while keeping the command itself out of the model's context. The slash-command popup now groups commands into separate sections by source — "Commands" (built-in, e.g. `/compact`), "MCP Server Commands", and "ACP Agent Commands" — so same-named commands from different sources show up as distinguishable duplicates. The source category travels on each command's ACP `_meta`. Release Notes: - N/A --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Zed
Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Installation
On macOS, Linux, and Windows you can download Zed directly or install Zed via your local package manager (macOS/Linux/Windows).
Other platforms are not yet available:
- Web (tracking discussion)
Developing Zed
Contributing
See CONTRIBUTING.md for ways you can contribute to Zed.
Also... we're hiring! Check out our jobs page for open roles.
Licensing
Zed source code is licensed primarily under GPL-3.0-or-later, with Apache-2.0 components where marked.
License information for third party dependencies must be correctly provided for CI to pass.
We use cargo-about to automatically comply with open source licenses. If CI is failing, check the following:
- Is it showing a
no license specifiederror for a crate you've created? If so, addpublish = falseunder[package]in your crate's Cargo.toml. - Is the error
failed to satisfy license requirementsfor a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to theacceptedarray inscript/licenses/zed-licenses.toml. - Is
cargo-aboutunable to find the license for a dependency? If so, add a clarification field at the end ofscript/licenses/zed-licenses.toml, as specified in the cargo-about book.
Sponsorship
Zed is developed by Zed Industries, Inc., a for-profit company.
If you’d like to financially support the project, you can do so via GitHub Sponsors. Sponsorships go directly to Zed Industries and are used as general company revenue. There are no perks or entitlements associated with sponsorship.