Working Directory
This page is for local users who launch PRFlow from a repository subdirectory, monorepo package or nested Git checkout.Run From Any Repository Subdirectory
Local PRFlow skills can start from the Git repository root or a subdirectory. Core configuration and prompt-extension readers callgit rev-parse --show-toplevel and anchor the default .prflow/ path to that root.
Shell helpers that need bundled sibling files resolve from their own script location. They do not depend on the current directory for those files.
As a result, a command run from packages/web/ normally reads the same root .prflow/config.json and .prflow/prompt-extensions/ files as a command run from the repository root.
The Nearest Git Root Wins
git rev-parse --show-toplevel returns the nearest containing Git root. This matters when:
- A monorepo contains a nested Git repository.
- The current directory is inside a Git submodule.
- A team deliberately stores
.prflow/somewhere other than the Git root.
Outside a Git Repository
Some helpers fall back to the current directory when no Git root can be resolved. Issue, branch, workpad and pull-request workflows still depend on real Git and GitHub repository state. For predictable behavior, start those workflows from inside the intended Git checkout.Do Not Change Directory Mid-Run
PRFlow’s authored commands avoid a leadingcd. Cloud helper paths are repository-relative, and the cloud Bash working directory persists across tool calls. A directory change can make later helpers resolve against the wrong path.
Local readers re-anchor many paths, but keeping the session inside the same repository avoids selecting another Git root or confusing project-specific test commands.
See Local Runs for the full local execution model.