# agent: Add token count in the thread view \(\#28037\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b9724d9cbe0b8b4c55e8f5df7015b7efd48917f4

Requested commit: b9724d9cbe0b8b4c55e8f5df7015b7efd48917f4

Commit: b9724d9cbe0b8b4c55e8f5df7015b7efd48917f4

Tree: e2b312774841f620805685fe5c240acbedc40d01

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Add token count in the thread view (#28037)

This PR adds the token count to the active thread view. It doesn't
behaves quite like Assistant 1 where it updates as you type, though; it
updates after you submit the message.

<img
src="https://github.com/user-attachments/assets/82d2a180-554a-43ee-b776-3743359b609b"
width="700" />

---

Release Notes:

- agent: Add token count in the thread view

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

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

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