# HookTrustScreen

> **Class** in `deepagents_code`

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

Ask how project hooks in a newly entered workspace should be trusted.

## Signature

```python
HookTrustScreen(
    self,
    *,
    project_root: str,
    config_path: str,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_root` | `str` | Yes | Workspace root governing the trust decision. |
| `config_path` | `str` | Yes | Project hooks file that may execute commands. |

## Extends

- `ModalScreen[HookTrustChoice]`

## Constructors

```python
__init__(
    self,
    *,
    project_root: str,
    config_path: str,
) -> None
```

| Name | Type |
|------|------|
| `project_root` | `str` |
| `config_path` | `str` |


## Properties

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

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/on_mount)
- [`action_allow_once()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/action_allow_once)
- [`action_always_allow()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/action_always_allow)
- [`action_deny()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/action_deny)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/HookTrustScreen/action_cancel)

---

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