# ProjectContext

> **Class** in `deepagents_cli`

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

Explicit user/project path context for project-sensitive behavior.

## Signature

```python
ProjectContext(
    self,
    user_cwd: Path,
    project_root: Path | None = None,
)
```

## Constructors

```python
__init__(
    self,
    user_cwd: Path,
    project_root: Path | None = None,
) -> None
```

| Name | Type |
|------|------|
| `user_cwd` | `Path` |
| `project_root` | `Path \| None` |


## Properties

- `user_cwd`
- `project_root`

## Methods

- [`from_user_cwd()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/from_user_cwd)
- [`resolve_user_path()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/resolve_user_path)
- [`project_agent_md_paths()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/project_agent_md_paths)
- [`project_skills_dir()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/project_skills_dir)
- [`project_agents_dir()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/project_agents_dir)
- [`project_agent_skills_dir()`](https://reference.langchain.com/python/deepagents-cli/project_utils/ProjectContext/project_agent_skills_dir)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/3bcc51a95da80094cfc8bc4bcaf25dc1e2ad8f44/libs/cli/deepagents_cli/project_utils.py#L20)