Cette page est affichée en anglais. Une traduction française est en cours.
PromptsMay 12, 2026·2 min de lecture

Prompty — One Prompt File for VS Code/Python/TS

Prompty is a Markdown-based `.prompty` format that runs the same prompt from VS Code, Python, or TypeScript with consistent templating and providers.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 27/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Prompt
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install d270b1e5-26cf-4f73-9ef6-deac2d0953df --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

Prompty is a Markdown-based .prompty format that runs the same prompt from VS Code, Python, or TypeScript with consistent templating and providers.

  • Best for: teams standardizing prompts across IDEs and runtimes, with reproducible config and templating
  • Works with: VS Code extension, Python package, TypeScript packages, providers like OpenAI/Anthropic/Foundry
  • Setup time: 10–25 minutes

Practical Notes

  • Quant: keep prompts in git and require PR review for .prompty changes.
  • Data point: .prompty files embed model/provider settings next to the template.

Pattern: prompt as an interface contract

Use .prompty as a contract between product and engineering:

  • define inputs (variables),
  • define provider + model settings,
  • and keep the prompt body readable Markdown.

Pattern: run the same prompt in three places

  1. In VS Code for authoring and preview.
  2. In Python for batch jobs / eval harnesses.
  3. In TypeScript for web backends.

This reduces "works on my machine" drift where the template differs per runtime.

FAQ

Q: Is Prompty stable? A: It’s labeled v2 alpha in the repo; expect API/file-format changes.

Q: Can I use it without VS Code? A: Yes. You can invoke .prompty from Python or TypeScript runtimes.

Q: How do I keep secrets out of git? A: Reference env vars in connections (e.g. ${env:OPENAI_API_KEY}) instead of hardcoding.

🙏

Source et remerciements

Source: https://github.com/microsoft/prompty > License: MIT > GitHub stars: 1,209 · forks: 114

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires