Closed beta · Community edition: free local CLI + MCP

PDEPPrompt-Driven Engineering Protocol

Engineering discipline for AI‑generated code.

PDEP makes AI coding agents analyze, plan and prove their work. Every decision stays with a human. One protocol, any agent.

Free Community edition · Windows, macOS, Linux · Claude Code, Codex, Cursor, Copilot, Gemini

Illustrative session in VS Code. The agent can only ask: you approve with your code, and pdep.dev signs it.

The problem

AI agents write code fast. Nobody can show how it was decided.

Prompt rules are suggestions. Different agents follow them differently, and nothing connects the request, the plan, the approval and the commit.

01

Edits before understanding

Agents change code before analyzing it, and treat an untested hypothesis as the root cause.

02

Plans that drift

The scope grows mid-task. What was reviewed is no longer what gets merged, and nobody re-approves.

03

Code that ignores the codebase

A second HTTP wrapper, a hand-written Excel export, rows inserted one by one: it works, and it is not how your team builds.

The protocol

Ten stages. Five human decisions. Every step leaves evidence.

Each stage produces a Markdown artifact and must pass a deterministic gate before the next one starts. You decide where it matters; policy decides how strict each stage is.

Point at a stage to see it on an example: an ERP where three-line invoices show a VAT total 0.01 off. The PDEP Manifesto

Understand

01 Problem definitionproblem.md
02 Codebase analysisanalysis.md
03 Root causediagnosis.md
04 Solution design + reusesolution-design.md
05 Impact analysis⚿ you approve the analysisimpact-analysis.md

Commit

06 Implementation plan⚿ you approve the planimplementation-plan.md

Execute

07 Controlled steps⚿ you approve each stepstep-XX.md

Prove

07+ Conformance + SOLID⚿ you review when neededconformance-review.md
08 Verificationverification.md
09 Security reviewsecurity-review.md
10 Delivery⚿ you acceptdelivery-report.md
Agent works, gate checksHuman decides with a code, pdep.dev signs

Guarantees

Rules your agent can’t talk its way around.

No analysis,no implementation.

No approved plan,no code changes.

No evidence,no verification.

No verification,no completion.

Signed human approval

The agent asks; you approve with the 6-digit code from your authenticator app, right in the prompt, and pdep.dev checks it and signs the record. The agent has no way to make that code, so it cannot approve its own work.

Approval bound to the plan

The signature covers a canonical hash of the plan, its scope and its base commit. Change one target path and the approval is void.

Scope enforced on the diff

Every changed path, including renames and deletions, is checked against the approved scope. Out-of-scope edits fail the check.

Reuse before rewrite

The design lists what the change reuses, and the new code is checked against how your project already builds things, so hand-rolled Excel exports, row-by-row inserts or a second HTTP wrapper get flagged.

SOLID, scored and explained

The agent scores its changed code against each SOLID principle, with reasons and file:line evidence. Anything below your minimum comes to you.

Verified, not claimed

Results an agent reports are labelled “claimed”. Checks re-run by trusted CI are “verified”. The delivery report shows which is which.

Honest about limits: local hooks are advisory, because anything on a developer machine can be bypassed. Every approval is given on pdep.dev and signed there, and required CI checks are the boundary that holds.

Read the PDEP Manifesto →

Your project, your rules

Your policies decide. pdep holds every agent to them.

Set how strict each repository, branch and team is, lock what must not change, and pdep enforces it on every task: approvals where your policy asks for them, changes held to your own codebase, confidential data kept out of prompts.

Approval policies

Approvals the way your team works, managed in one place.

Decide which stages need a person, how strong the approval must be, which paths always count as risky and which checks CI must pass. Set it for the whole organisation, a team, a repository, a branch or a type of task. Administrators lock what teams may not loosen, and every change becomes a pull request your team reviews.

  • Strict, balanced or autonomous, per repository, branch or task type
  • Approve the analysis, each step, the conformance review and the delivery, or let low-risk work through
  • Minimum approval: e-mailed code (L1), code in the prompt (L2) or on pdep.dev (L3)
  • Locked settings: teams tighten freely, never loosen what the organisation set

Project baseline

Every change is held to how your project is already built.

Before the first task, pdep maps the project from the code itself: its projects and the direction of their layers, base classes and wrappers, naming and packages. The agent records your team's practices, each with evidence from your code. Every change is checked against them again.

  • Computed from your code, not a generic rule list
  • Each practice points to the files that prove it
  • A new layer dependency or a second wrapper is flagged before review

.pdep/conventions.yaml

conventions:  - id: api-errors    intent: Return an error from the API    use: throw DomainException → ProblemDetails    evidence:      - src/Api/Middleware/ExceptionMiddleware.cs    avoid: 'return BadRequest\('    severity: high# conformance review of TASK-0004✗ src/Api/OrdersController.cs:48  return BadRequest(…)  → api-errors

Prompt rules

Confidential data stays out of prompts.

Before your agent sends a prompt, pdep checks it on your machine. Identity numbers, IBANs, card numbers, keys and connection strings are stopped; phone numbers and e-mail addresses warn. Add your own patterns and value lists, such as a customer's lookup keys: the values are hashed in your browser, so pdep.dev never sees them.

  • Checked on your machine; the prompt is never sent to pdep.dev
  • Numbers count only when their check digits are right
  • Set in PDEP Console; in Business, by your administrators

Claude Code

> Refund customer 10000000146 to TR33 0006 1005 1978 6457 8413 26PDEP stopped this prompt before it was sent:  - TC identity number: 10•••••••46  - IBAN: TR••••••••••••26Remove it from the prompt and send it again.

Any agent

One protocol. Any AI coding agent.

PDEP speaks MCP and has a CLI, so it works with the agent your team already uses. Switch models without switching process.

  • Claude Code
  • Codex
  • Cursor
  • Copilot
  • Gemini CLI
  • Windsurf
  • Any MCP client

Connect an agent

$ irm https://pdep.dev/install.ps1 | iex
$ pdep init --claude --codex   # MCP server + guard hook for each agent

Everything lives in your repository

.pdep/
├── policies/default.yaml
├── profile.json              # the project map pdep computed
├── conventions.yaml          # your “use X for Y” rules
└── tasks/TASK-0001/
    ├── problem.md … impact-analysis.md
    ├── implementation-plan.md
    ├── implementation/step-01.md
    ├── conformance-review.md
    ├── approvals/APR-0001.json   # signed
    └── delivery-report.md

Readable Markdown for people, versioned metadata for tools. No source code leaves your machine.

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.

Develop with any AI. Govern with PDEP.

Install it with one command and run pdep init. Free for up to three people; for anything else, talk to us.