Install

Install pdep

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.

Windows

In PowerShell:

> irm https://pdep.dev/install.ps1 | iex

Windows 10 or 11, x64. Read the script.

macOS and Linux

In a terminal:

$ curl -fsSL https://pdep.dev/install.sh | sh

macOS on Apple silicon, Linux x64. Read the script.

Then, inside a Git repository

$ 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

One command per 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 --codex

Any number of agents at once. Without a flag: Claude Code. Already set up? pdep hook install adds an agent later.

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.

OpenAI Codex

Experimental
$ pdep init --codex
MCP server
.codex/config.toml
Guard hook
.codex/hooks.json
Then
Trust the project, then approve the hook with /hooks.

Cursor

Experimental
$ pdep init --cursor
MCP server
.cursor/mcp.json
Guard hook
.cursor/hooks.json
Then
Trust the workspace and turn on the pdep server in MCP settings.

Copilot (VS Code)

Experimental
$ pdep init --copilot
MCP server
.vscode/mcp.json
Guard hook
.github/hooks/pdep.json
Then
Trust the workspace; agent hooks are a VS Code preview.

Gemini CLI

$ pdep init --gemini
MCP server
.gemini/settings.json
Guard hook
.gemini/settings.json
Then
Run gemini trust in the folder and approve the hook.

Windsurf

$ pdep init --windsurf
MCP server
your Windsurf MCP settings (pdep prints the entry)
Guard hook
.devin/hooks.json
Then
Add the printed MCP entry; the hook works as is.

Experimental: 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.