﻿# Zed multibuffers: review related edits without pretending they are one file

Zed multibuffers combine related excerpts while edits belong to their source files; use source context and behavioral evidence to review cross-file agent changes.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/learn-zed-multibuffer-agent-review/
Language: en

A cross-file change is easier to review when related excerpts can be seen together without losing their source identities. Zed multibuffers provide that editing surface. For agent-produced work, the useful distinction is between a convenient combined view and the actual files whose changes must remain coherent in the repository.

## A multibuffer combines excerpts, not file ownership

Imagine an agent renaming a response field across a parser, an adapter and a component. A multibuffer can place relevant excerpts together so the developer follows the relationship without repeatedly switching tabs. The documentation explains that edits reflect in the underlying open files. The combined surface therefore does not create an independent copy whose contents replace the repository. Each excerpt retains a relationship to a source location, which matters when deciding what an edit actually changes.

## Source navigation restores the missing surroundings

An excerpt can omit the declaration or condition needed to interpret a line correctly. The multibuffer guide describes navigating from an excerpt to its source file. For the response-field example, a displayed occurrence might belong to a compatibility adapter that intentionally preserves the old name. Inspecting its surroundings distinguishes that case from a missed rename. Convenience of combined viewing should not become an assumption that every matching word has the same meaning or should receive an identical mechanical replacement.

## Search and diagnostics provide different entry points

The guide describes search results and diagnostics as uses of multibuffers. A textual match identifies a location, while a diagnostic identifies a reported issue under the configured language tools. Neither is a complete specification of the desired cross-file behavior. An agent change can eliminate a type error while still mapping a response field incorrectly at runtime. The developer should connect the displayed evidence to the actual interface contract between parser, adapter and component, rather than equating a quiet diagnostics view with a fully accepted change.

## Finish review against the actual repository artifact

After inspecting the relevant excerpts, review the resulting file changes and exercise the interface behavior that motivated the task. A focused fixture can verify that a parsed response reaches the component under the intended name. The Agent Panel and AI overview provide the surrounding agent workflow, while multibuffers organize human attention. This combination is useful because the review stays connected to real source files and behavior, not because a combined view automatically proves every dependency correct or converts multiple files into one atomic change.

## Primary sources

- [Zed AI overview](https://zed.dev/docs/ai/overview).

- [Zed Agent Panel](https://zed.dev/docs/ai/agent-panel).

- [Zed multibuffers](https://zed.dev/docs/multibuffers).

Related engineering context: [Choosing an AI development stack](/journal/local-ai-app-stack-selection/); [Git state and undo](/journal/aider-git-dirty-tree-undo/).
