# agent_ui: Add mention disambiguation \(\#56926\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b9ba43c9c1f9fc466d27b690ea5e7bea75209110)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b9ba43c9c1f9fc466d27b690ea5e7bea75209110

Requested commit: b9ba43c9c1f9fc466d27b690ea5e7bea75209110

Commit: b9ba43c9c1f9fc466d27b690ea5e7bea75209110

Tree: 27935fda43e3627ab7ce2e9411f273c54bfc9571

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Add mention disambiguation (#56926)

Closes AI-261

This PR adds mention disambiguation in the agent panel, which works both
for regular @-mentions as well as for skills. Effectively, when you
mention files with the same name, the mention crease displays the next
path parent name, following a similar approach to common tabs in the
editor. For skills, the skill source is displayed (either global or from
some project).

<img width="500" alt="Screenshot 2026-05-15 at 6  32@2x"
src="https://github.com/user-attachments/assets/72c99480-cf32-42ac-9304-3f65167a1d94"
/>

Release Notes:

- Agent: Improved file and skill mention disambiguation in the agent
panel.

---------

Co-authored-by: Richard Feldman <richard@zed.dev>
```

## Parents

- [ec9ba5f069f415713a2f2e3e8550c28479678dba](https://git.cafe/gitcafe/zed/commit/ec9ba5f069f415713a2f2e3e8550c28479678dba?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b9ba43c9c1f9fc466d27b690ea5e7bea75209110?format=markdown)
