# get_project_agents_dir

> **Function** in `deepagents_code`

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

Return the project-level custom-subagent directory, when available.

## Signature

```python
get_project_agents_dir(
    project_root: Path | None,
) -> Path | None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/_paths.py#L347)