Claude Code
$ pdep init --claude- MCP server
.mcp.json- Guard hook
.claude/settings.local.json- Then
- Restart Claude Code and allow the pdep server once.
Install
One command downloads pdep, checks it against its SHA-256 checksum and puts it in ~/.pdep/bin. No administrator rights needed.Latest version: 0.17.0.
In PowerShell:
> irm https://pdep.dev/install.ps1 | iex
Windows 10 or 11, x64. Read the script.
In a terminal:
$ curl -fsSL https://pdep.dev/install.sh | sh
macOS on Apple silicon, Linux x64. Read the script.
$ pdep init # PDEP here, with the MCP server and guard hook for your agent (below)
In a folder that holds several repositories, run it in the folder: it sets up each of them.
The first pdep init on a machine signs you in to pdep.dev: it opens your browser, where you sign in or create a free account, and approve with a code we e-mail you. After that, pdep works offline.
To update, run the install command again. To remove pdep, delete ~/.pdep (%USERPROFILE%\.pdep on Windows).
Set up your agent
pdep init writes the PDEP MCP server and the guard hook into each agent’s own project files. Your other settings stay as they are; run it again any time.
$ pdep init --claude --codexAny number of agents at once. Without a flag: Claude Code. Already set up? pdep hook install adds an agent later.
$ pdep init --claude.mcp.json.claude/settings.local.json$ pdep init --codex.codex/config.toml.codex/hooks.json$ pdep init --cursor.cursor/mcp.json.cursor/hooks.json$ pdep init --copilot.vscode/mcp.json.github/hooks/pdep.json$ pdep init --gemini.gemini/settings.json.gemini/settings.json$ pdep init --windsurf.devin/hooks.jsonExperimental: the agent’s hook input is not fully documented yet. An edit pdep cannot read is allowed and logged, never silently blocked; CI still checks every pull request.