# AutoModeNoticeScreen

> **Class** in `deepagents_code`

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

In-TUI first-run notice describing what Auto mode does.

Dismisses with `True` on Enter (confirm switch to Auto) and `False` on
Esc (cancel, stay in current mode). Programmatic dismiss may yield `None`;
callers treat that like cancel so Auto is never activated without an
explicit confirm.

## Signature

```python
AutoModeNoticeScreen(
    self,
    body: str | None = None,
    *,
    model_label: str | None = None,
    distinct_from_main_model: bool | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `body` | `str \| None` | No | Optional Markdown body under the title. Defaults to `AUTO_MODE_NOTICE_BODY`. Links open in a browser. (default: `None`) |
| `model_label` | `str \| None` | No | Spec of the model that reviews gated actions, added to the default body. Ignored when `body` is supplied. (default: `None`) |
| `distinct_from_main_model` | `bool \| None` | No | Whether the reviewing model differs from the model writing code. Required alongside `model_label`; omitting both leaves the body's generic anchor in place. (default: `None`) |

## Extends

- `ModalScreen[bool]`

## Constructors

```python
__init__(
    self,
    body: str | None = None,
    *,
    model_label: str | None = None,
    distinct_from_main_model: bool | None = None,
) -> None
```

| Name | Type |
|------|------|
| `body` | `str \| None` |
| `model_label` | `str \| None` |
| `distinct_from_main_model` | `bool \| None` |


## Properties

- `BINDINGS`
- `CSS`
- `can_focus`

## Methods

- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auto_mode_notice/AutoModeNoticeScreen/on_mount)
- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auto_mode_notice/AutoModeNoticeScreen/compose)
- [`on_markdown_link_clicked()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auto_mode_notice/AutoModeNoticeScreen/on_markdown_link_clicked)
- [`action_confirm()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auto_mode_notice/AutoModeNoticeScreen/action_confirm)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auto_mode_notice/AutoModeNoticeScreen/action_cancel)

---

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