# CLI Parameter: --dir
Set the working directory for the Claude Code subprocess. The runner
changes to this directory before invoking claude.
- **Type:** [`DirectoryPath`](../type/02_directory_path.md)
- **Default:** current working directory
- **Command:** [`run`](../command/01_run.md)
- **Group:** [Runner Control](../param_group/02_runner_control.md)
- **Validation:** requires a value; `--dir` at end of argv → error
```sh
clr "Fix bug" --dir /path/to/project
```
**Note:** When `--dir` appears multiple times, the last value wins.
### Referenced Type
| [`DirectoryPath`](../type/02_directory_path.md) | Semantic | String | valid filesystem path |
### Referenced Parameter Groups
| 2 | [Runner Control](../param_group/02_runner_control.md) | Full | 16 other params |
### Referenced Commands
| 1 | [`run`](../command/01_run.md) | cwd | — |
| 5 | [`ask`](../command/05_ask.md) | cwd | — |
### Referenced User Stories
| 1 | [001_interactive_repl.md](../user_story/001_interactive_repl.md) | Developer |
| 3 | [003_interactive_with_message.md](../user_story/003_interactive_with_message.md) | Developer |
| 5 | [005_project_specific_execution.md](../user_story/005_project_specific_execution.md) | Developer |
| 7 | [007_fresh_session.md](../user_story/007_fresh_session.md) | Developer |
| 22 | [022_session_isolation_subdir.md](../user_story/022_session_isolation_subdir.md) | Developer |