# resolve_editor

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/editor/resolve_editor)

Resolve editor command from environment.

Checks $VISUAL, then $EDITOR, then falls back to platform default.

## Signature

```python
resolve_editor() -> list[str] | None
```

## Returns

`list[str] | None`

Tokenized command list, or `None` if the env var was set but empty after
tokenization.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/88c2b5cb874dc1d093acf54d2a967ba6e085c99b/libs/cli/deepagents_cli/editor.py#L30)