How to ignore Project Trust Feature in Pi Coding Agent
Pi Agent has recently shipped Project Trust Feature where it’ll ask you whether the you trust that project if it has any custom project specific instructions like AGENTS.md/CLAUDE.md file or have .pi directory in it.
Thought it is a good thing in terms of security, it is kind of feels like rubber stamping sometime.
How to allow all projects by default?
If you prefer not to have this approval thing, you can pass -a argument when starting it.
Or you can set an alias like this and use it.
alias pi='pi -a'
You can also bypass it by using global extenstion like this
import type { ExtensionAPI, ProjectTrustEventResult } from "@earendil-works/pi-coding-agent";
export default function trustAllExtension(pi: ExtensionAPI): void {
pi.on("project_trust", async (event): Promise<ProjectTrustEventResult> => {
return { trusted: "yes" };
});
}