Find what you need to change
Run this from the root of your project. No output means nothing to change.Python SDK
Removed from bothPromptGuard and PromptGuardAsync:
Text completions. Send the prompt as one user message:
Before (1.x)
After (2.0)
Before (1.x)
After (2.0)
Before (1.x)
After (2.0)
Node.js SDK
The removed types are why TypeScript code that only imported them fails to
compile on 2.0.0, even though it never called anything.
Text completions. Send the prompt as one user message:
Before (1.x)
After (2.0)
Before (1.x)
After (2.0)
pg.embeddings, pg.scrape and pg.redteam.intelligenceStats(): delete the
calls and their type imports.
CLI
A script that still calls a removed command now exits with an
unrecognised-subcommand error instead of a request failure, so a CI step that
ignored the old failure will start failing.
Before (1.x)
After (2.0)
What also changed, with nothing to do
The red team calls that 2.0.0 kept (run_test, run_all and run_custom in
Python, runTest, runAll and runCustom in Node.js, and promptguard redteam) got an authorization error for every API key in 1.x, because
they called an admin-only path.
From 2.0.0 they work with an API key that has the proxy scope. Their names
and arguments did not change.
Shadow AI desktop agent 0.10
The desktop agent is versioned on its own and has no 2.0. Its one breaking change so far is in 0.10.0: protection runs only while the PromptGuard Shadow app is running. If an RMM tool or login script starts the agent withpgshadow start and no app, set the managed key
headless: true
before you upgrade, or protection on those machines stops. What to do for
each later agent Release is on
Shadow AI desktop agent upgrade notes.
Next steps
Versioning & support
How long each SDK and CLI version gets fixes
Changelog
What changed in each Release, filterable by product
Python SDK
Use the 2.x Python SDK
Node.js SDK
Use the 2.x Node.js SDK