# PDL

A macOS app and command-line tool for exploring and running YAML-based programs that compose LLM prompts, code, and data.

> This is the Markdown version of the PDL page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/pdl>

- **Latest version**: `0.9.3`
- **Developer**: Mandana Vaziri; Louis Mandel; Claudio Spiess; Martin Hirzel
- **Homepage**: <https://ibm.github.io/prompt-declaration-language/>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask pdl`
- **30-day installs**: 1
- **Homebrew**: Still offered by Homebrew; paused by OpenNavo
- **Download URL**: <https://github.com/IBM/prompt-declaration-language/releases/download/v0.9.3/PDL_0.9.3_universal.dmg>
- **SHA-256**: `e01c41cb198f05dec7c3fb08b479ae50ee90e385406c1b95561f55d400bf76d9`
- **Commands**: pdl

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "app": [
        "PDL.app"
      ],
      "target": "/Applications/PDL.app"
    },
    "phase": "install",
    "sources": [
      "PDL.app"
    ],
    "target": "/Applications/PDL.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/PDL.app/Contents/MacOS/PDL",
        {
          "target": "pdl"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/pdl"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/PDL.app/Contents/MacOS/PDL"
    ],
    "target": "$HOMEBREW_PREFIX/bin/pdl",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": "~/Library/Application Support/PDL"
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## About

PDL (Prompt Declaration Language) provides a declarative, YAML-based way to define the structure of prompts and compose interactions with large language models (LLMs). The Homebrew cask installs the macOS `PDL.app` and provides a `pdl` command-line executable. The official project identifies the app as Live Explorer, a user interface for exploring traces and live programming.

With PDL, programs can combine model calls with code and rule-based logic. The language supports variables, templates, conditionals, loops, and functions, as well as reading files or standard input, including JSON data. It also supports Python code and REST API calls, input and output type checking for model calls, and chat APIs and templates. The interpreter can produce program results or stream conversational context, and can write trace files for use with Live Explorer.

Install the macOS app and command-line executable with `brew install --cask pdl`. To run a program, use `pdl <path/to/example.pdl>`. The project recommends an editor that supports YAML and JSON Schema validation for authoring PDL files. Its interpreter installation instructions separately use `pip install prompt-declaration-language`; the documentation reports testing Python 3.11, 3.12, and 3.14 on macOS and Linux. For model calls, PDL can use local or remote LLMs through LiteLLM; the model service and any required account or credentials depend on the service selected. Python code runs locally unless the interpreter is invoked with `--sandbox`, which requires a running Docker-compatible daemon.

Sources: [PDL documentation](https://ibm.github.io/prompt-declaration-language/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/p/pdl.rb)

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 0.9.3 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pdl.rb> · Checked 2026-12-05
  - <https://github.com/IBM/prompt-declaration-language/releases/download/v0.9.3/PDL_0.9.3_universal.dmg>
  - SHA-256: `e01c41cb198f05dec7c3fb08b479ae50ee90e385406c1b95561f55d400bf76d9`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 0.9.3 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pdl.rb> · Checked 2026-12-05
  - <https://github.com/IBM/prompt-declaration-language/releases/download/v0.9.3/PDL_0.9.3_universal.dmg>
  - SHA-256: `e01c41cb198f05dec7c3fb08b479ae50ee90e385406c1b95561f55d400bf76d9`

## PDL security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

- <https://github.com/IBM/prompt-declaration-language> · Open source: Yes — <https://github.com/IBM/prompt-declaration-language> · Checked 2026-11-13

## Uninstall

- `brew uninstall --cask pdl`

A regular uninstall removes the app and keeps its settings and caches.

### Deep clean (optional)

- `brew uninstall --zap --cask pdl`

`--zap` also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out `--zap`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/Library/Application Support/PDL` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pdl.rb> · These entries come from the Homebrew definition, checked 2026-12-05. They say what it declares, not what is on your Mac.

## Latest release notes

### 0.9.3 (2026-02-26)

Adds model-usage and scope variables, variable selection for code blocks, and Jinja template parameters. The release documents two backward-incompatible changes.

**Features**

- Adds pdl_usage and pdl_scope to the PDL scope.
- Adds scope to Python and Jinja code blocks.
- Adds parameters to Jinja code blocks.

**Updates**

- Changes function-signature syntax generated by .signature.
- Changes rule re-evaluation for aggregator declarations and functions.

## Facts and sources

- <https://opennavo.com/apps/pdl>
- <https://opennavo.com/apps/pdl/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pdl.rb> · Checked 2026-12-05
- <https://formulae.brew.sh/cask/pdl>
- <https://github.com/IBM/prompt-declaration-language> · Checked 2026-11-13
