# parse_shell_allow_list_items

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/config/parse_shell_allow_list_items)

Parse an already-split shell allow-list.

Unlike `parse_shell_allow_list`, this takes separate elements so no comma
reparsing occurs — a command name containing a comma (valid on POSIX)
survives intact instead of being split into two entries.

## Signature

```python
parse_shell_allow_list_items(
    items: list[str],
) -> list[str] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `items` | `list[str]` | Yes | Individual allow-list entries, e.g. a TOML array's elements. `'all'` must be the sole entry; `'recommended'` merges the curated safe list at its position. |

## Returns

`list[str] | None`

List of allowed commands, `SHELL_ALLOW_ALL` if `'all'` was the sole

---

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