Changelog
All notable changes to PromptLint are documented here.
v1.4.0
Released: April 2026
New Rule
output-length-missing— INFO-level completeness rule that fires when a prompt contains a task verb (write,generate,list, etc.) but no length constraint (word count, sentence limit, brevity directive). Total: 21 rules, 5 auto-fixable.
New CLI Features
| Flag | Description |
|---|---|
--show-score | Display health score (0–100) + letter grade (A–F) and per-category breakdown |
--badge | Output a Shields.io badge URL + markdown snippet for the health score |
--compare FILE_A FILE_B | Lint two prompts and show score delta per category — useful for validating rewrites |
--update-baseline | Write current findings to .promptlintbaseline; future runs suppress known issues |
--install-hooks | Install a pre-commit git hook that lints staged .txt/.md/.prompt files |
Improvements
- Message array input — both CLIs now accept OpenAI/Anthropic
[{role, content}…]JSON arrays via--textor stdin;contentfields are joined and linted as a single prompt - TS autofix parity —
verbosity-redundancyauto-fix expanded from 7 to 41 replacement patterns to match the Python implementation - Docs site redesigned to match the main landing page (black/green terminal aesthetic, JetBrains Mono, film grain overlay)
- New Config Examples page with 10 ready-to-copy
.promptlintrcstarters for common use cases
v1.3.0
Released: 2024
New Rules
jailbreak-pattern— Detects jailbreak attempts and persona hijackingsecret-in-prompt— Detects hardcoded API keys, passwords, connection stringspii-in-prompt— Detects emails, phone numbers, SSNs, credit card numberscontext-injection-boundary— Enforces trust boundaries on user-injected contentrole-clarity— Checks for missing role/persona definitionsoutput-format-missing— Checks for missing output format specificationhallucination-risk— Detects patterns that increase hallucination likelihood
Improvements
- SARIF v2.1.0 output format for GitHub Security tab integration
- VS Code extension with real-time linting and quick-fix support
- GitHub Action with PR annotations and SARIF upload
- Python/TypeScript parity tests in CI
- Score (0–100) and grade (A–F) in all output formats
Rule Count
Total: 20 rules, 5 auto-fixable
v1.2.0
New Features
--show-dashboardflag for cost savings visualization- Monthly and annual cost projection in dashboard
--ruleflag to run a single rule--explainflag for rule documentation in the terminal
v1.1.0
New Features
--format sarifoutput (v2.1.0)- Score and grade calculation
calls_per_dayconfig for cost projection
New Rules
completeness-edge-casesconsistency-terminology
v1.0.0
Initial Stable Release
- 13 rules across security, cost, quality, and structure
--fixauto-fix with 5 fixable issues--format jsonfor CI/CD.promptlintrcYAML configuration- Python CLI (pip) and TypeScript CLI (npm)
- GitHub Action (
AryaanSheth/promptlint@v1)
Rules at Launch
cost,cost-limitprompt-injectionstructure-sectionsclarity-vague-termsspecificity-examples,specificity-constraintspoliteness-bloatverbosity-redundancy,verbosity-sentence-lengthactionability-weak-verbsconsistency-terminology,completeness-edge-cases
v0.2.0
- Structure flexibility: XML, headings, and Markdown all recognized
- Politeness configuration:
allow_politeness: truedemotes to INFO - Improved auto-fix: structure scaffold respects
structure_styleconfig
v0.1.0
- Initial release with 13 rules and 5 auto-fixes