# CwdLabel

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/status/CwdLabel)

A label that displays the working directory, condensed to fit.

The tail of a path is the part users read, so directory components are
collapsed from the middle outward (see :func:`condense_path`) rather than
clipping the end the way CSS `text-overflow: ellipsis` does. The widget
sizes to the full path but is capped by `.status-cwd`'s `max-width`, so
`render` always sees the real budget in `content_size`. The untruncated
path is always available as the widget's tooltip.

## Signature

```python
CwdLabel()
```

## Extends

- `Widget`

## Properties

- `path`

## Methods

- [`get_content_width()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/status/CwdLabel/get_content_width)
- [`watch_path()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/status/CwdLabel/watch_path)
- [`render()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/status/CwdLabel/render)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/tui/widgets/status.py#L372)