# project_paths

> **Function** in `deepagents_code`

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

Return project-controlled paths for an explicit repository root.

## Signature

```python
project_paths(
    root: Path,
) -> ProjectPaths
```

## Description

**Note:**

`_normalize_absolute` raises `ValueError` for a relative `root`. That is
a caller bug rather than a `DEEPAGENTS_HOME` misconfiguration, so it is
deliberately not a `DeepAgentsHomeError`.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `root` | `Path` | Yes | Absolute project root. |

## Returns

`ProjectPaths`

Paths rooted at the normalized project directory.

---

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