projectPath scopes the research surface inside a larger repository.
When to Use projectPath
Use it when:
- the relevant code lives under one package or app directory;
- multiple Onyx projects should share one monorepo;
- agents should only see paths relative to a subdirectory;
- file trees and diffs should stay focused.
App Setup
When starting a branch, set:projectPath on the auto-provisioned project, prepends it for GitHub code reads, and strips it from file paths returned to the app.
Agent Setup
Tell the agent which subdirectory is in scope:Repo-Side Files
For a scoped project, Onyx files live under the project path:eval.sh and checks.sh are protected during measurement.