Setting the file. One moment.
Subchapter 1.1
references/agent-safety.mdMarkdown1 KBView on GitHub
Prisma detects common AI-agent environments and blocks these commands until the user gives explicit consent:
prisma migrate resetprisma db push --force-resetprisma db push --accept-data-lossFor an agent-run subprocess, Prisma accepts the exact consent text through:
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION='<exact user consent message>' prisma migrate reset --forceThe value must match the user’s message exactly and must not contain added quotes or newlines. Never fabricate consent, reuse an old unrelated approval, or bypass the checkpoint by hiding agent-detection environment variables.
The MCP server has no migrate-reset tool. Use the shell command only after consent.