Zed's Agent Blame Links Every Line of Code to its AI Conversation
Delta's new Agent Blame links every line of code to the agent conversation that produced it, surviving squashes and rebases.
Takeaways
- Zed shipped Agent Blame in Delta Desktop, web, and the Claude Code plugin.
- Hover a line of code, jump to the exact agent conversation that produced it.
- Install the Delta GitHub App to keep links alive through squash and rebase.
- Works without commit IDs by matching edit text to stable DeltaDB identities.
- Lets other agents pull just relevant messages instead of entire threads.
- Built on DeltaDB, Zed's CRDT-based version control for agent context.
Zed has released Agent Blame, a Delta feature that links each recorded line of code to the agent conversation that produced it. Developers can open a line, inspect the surrounding prompts and tool calls, and ask an agent to explain or revise the implementation with its original context.
Git history loses the prompt
Traditional git blame identifies the commit and author that last changed a line. Agent-assisted development creates another layer of provenance: the request, constraints, rejected approaches, tool calls, and follow-up instructions behind the edit. Those details usually remain in a chat log that Git does not track.
Agent Blame is available in Delta Desktop, on the web, and through a Claude Code plugin. DeltaDB now associates new agent edits with their source conversations. To preserve those links in a GitHub repository, a developer installs the Delta GitHub App from Settings > Integrations.
How attribution survives a squash
Squashing, rebasing, amending, and cherry-picking all replace or rearrange commit identifiers. That made durable attribution harder than Zed anticipated when it published its DeltaDB announcement.
DeltaDB avoids using commit hashes as the primary identity for an agent edit. It records character-level changes alongside the tool calls that produced them and assigns each edit a stable identity. After Git history changes, Delta matches text in the rewritten commit with the recorded edit and follows that association back to its conversation.
This design allows attribution to persist after a pull request is squashed or rebased on GitHub. The published description does not explain how matching handles ambiguous duplicate text or code that has been heavily modified after the original agent edit.
What developers can do with it
Line-level conversation history supports review, maintenance, and agent handoffs without requiring every participant to reconstruct intent from the final diff. Common workflows include:
- Investigating an implementation: Open a line written by a teammate’s agent and inspect the prompt, tool calls, and nearby responses.
- Giving an agent focused context: Retrieve the messages associated with a specific edit while keeping unrelated parts of a long thread out of the context window.
- Reviewing rewritten history: Follow an edit back to its source conversation after a pull request has been squashed or rebased.
- Continuing another agent’s work: Supply the original requirements and decisions to a new agent before it modifies the code.
Commit messages still provide concise repository history for people and automation. Agent Blame adds the detailed reasoning and execution record that a short message cannot carry.
Built for narrow retrieval
Zed built DeltaDB in Rust, with SQLite for local storage and one Cloudflare Durable Object for each thread. A Durable Object provides a consistent, stateful service instance for coordinating access to that thread.
DeltaDB uses copy-on-write B+ trees and cached snapshots to reconstruct historical versions without duplicating the entire dataset for every change. Zed says this structure lets an agent retrieve the relevant portion of an earlier conversation, reducing the tokens and latency required to load context.
Coverage depends on capture
Agent Blame can trace only edits that passed through DeltaDB. Changes made in another editor, imported from an unrecorded branch, or created before DeltaDB captured the conversation fall back to standard Git attribution. The feature cannot retroactively recover a chat history that was never stored.
Team adoption also determines coverage. A repository with partial Delta use will contain a mix of conversation-linked lines and ordinary Git history, so reviewers will still need both attribution systems.
Delta’s larger plan
Zed positions Delta as a multiplayer environment for working with coding agents and reviewing their output. The company plans to open-source DeltaDB while offering an optional paid service, following the model used for the Zed editor. It also intends to bring DeltaDB into the editor itself.
Zed says thread summaries are next, allowing developers and agents to read a compact account of a change without opening the full conversation. The team is also refining how coding agents retrieve and use Agent Blame data. Together, these features treat agent conversations as durable development artifacts that remain available during review and maintenance.