Override settings for one project
Make one repository use different Mistral settings than your machine-wide defaults — for example, a project agent id or a project region. You need this when a repo’s workflow requires its own configuration.
Prerequisites
Section titled “Prerequisites”- The
pi-mistral-nativepackage installed - The project must be trusted in pi (pi loads the project file only for trusted projects)
-
Write the key to the project scope from inside the project directory:
/mistral set --project agentId my-agentThe write goes to
<cwd>/.pi/mistral-native.json. Without--projectthe write targets your user scope instead. -
Verify the change:
/mistralThe key shows its new value with
project fileprovenance. -
Commit the file, so every contributor of the repository sees the same override in review.
See How configuration layers work · Config file locations and precedence · /mistral commands