
prompt-run: Run .prompt files against any LLM from your terminal
The post Prompts buried in Python strings. No git history. No way to diff two versions. No clean way to swap models. I got tired of it. So I built prompt-run — a CLI tool that treats .prompt files as first-class runnable artifacts. Quickstart (60 seconds) pip install "prompt-run[anthropic]" export ANTHROPIC_API_KEY = "sk-ant-..." prompt run examples/summarize.prompt --var text = "LLMs are changing software development." What a .prompt file looks like --- name : summarize description : Summarizes text into bullet points model : claude-sonnet-4-6 provider : anthropic temperature : 0.3 max_tokens : 500 vars : text : string style : string = bullets --- Summarize the following text as {{style}} : {{ text }} YAML frontmatter for config. Plain text body with {{variable}} syntax. That's the whole format. The file lives in your repo. It is versioned by git. It can be reviewed in a PR. Anyone cloning your project can run it. Commands prompt run — run a prompt against any LLM # Basic prompt run s
Continue reading on Dev.to Python
Opens in a new tab



