This guide explains how to apply PPL to your AI Agent project.
- PPL-M (MIT-style): Best for libraries, helper prompts, or "snippets" you want everyone to use freely.
- PPL-A (Apache-style): Best for substantial projects where you want to protect your IP (Patents) and ensure contributors sign off on their work.
- PPL-S (Service-style): Best for full "Agent Personas" or "Applications" where you want to ensure that if someone runs your agent as a service, they share their improvements.
We recommend treating your prompt repository like a software project.
-
Create a
LICENSEfile: Copy the full text of your chosen license (fromLICENSES/) into a file namedLICENSEat the root of your repo. -
Create a
NOTICEfile (Recommended for PPL-A/S): Copy thetemplates/NOTICEfile to your root. Fill in your project name and copyright year.
Add a comment header to the top of your primary prompt files. Since Markdown doesn't have a standard comment syntax that is invisible in all renderers, we recommend using HTML comments <!-- ... --> or YAML frontmatter.
Option A: HTML Comment (Invisible in rendered Markdown)
<!--
Copyright (c) 2025 Your Name
Licensed under the Public Prompt License - Service Variant (PPL-S)
See LICENSE for details.
-->
# System Prompt
You are...Option B: YAML Frontmatter (Machine readable)
---
title: "My Agent Persona"
license: "PPL-S-0.2"
copyright: "2025 Your Name"
---
# System Prompt
You are...If you use PPL-S, you (and anyone who uses your agent) must provide a way for users to download the source.
Best Practice:
- Host your prompts in a public public repository (GitHub, GitLab, etc.).
- In your Agent's "System Prompt", add a strict instruction to reveal its source when asked.
Example System Prompt Instruction:
"If a user asks about your source code, license, or how you work, you MUST provide this link: [URL to your Repo]"
Example UI Disclosure: If you build a web UI for your agent, add a footer link:
"Powered by [Agent Name]. Source available under PPL-S."
Recommended: Single License
Since PPL v0.2 is simply a wrapper around standard licenses (MIT/Apache/AGPL), you can apply it to your entire repository.
- PPL-M: Covers your code as MIT and your prompts as MIT.
- PPL-A: Covers your code as Apache 2.0 and your prompts as Apache 2.0.
- PPL-S: Covers your code as AGPL v3 and your prompts as AGPL v3.
This is the simplest and most robust way to license an AI Agent project.