prompttools

Git-native CI tooling for prompt engineering.

The repo-native prompt DevEx layer for AI product teams, OSS maintainers, and startups that keep prompts in version control.

Start with promptlint

Start Here

You don't need seven tools on day one. Start with one, feel the win, adopt more when you need them.

promptlint ← start here

Run pip install promptlint-ai and lint your prompts in 30 seconds. Catches ambiguity, missing placeholders, security risks, and bloat. Add it to CI and never merge a bad prompt again.

34 rules auto-fix zero config

The Full Suite

Seven packages. Install only what you need. Each works standalone.

promptlint

Static analysis for prompt files. Catches ambiguity, missing placeholders, excessive length, and more.

34 rules auto-fix

promptfmt

Auto-formatter that normalizes whitespace, heading structure, placeholder style, and section ordering.

5-rule pipeline watch mode

prompttest

Test framework for prompt files. Write assertions against prompt structure, content, and behavior.

15 assertion types JUnit XML

promptcost

Cost estimator with model comparison tables and budget enforcement for CI pipelines.

model comparison budget enforcement

promptdiff

Semantic diff for prompt changes. Shows message-level diffs, variable impact, token deltas, and breaking change detection.

breaking changes CI gate

promptvault

Git tracks files. promptvault tracks prompt packages — with semver, cross-prompt dependency resolution, lockfiles for reproducibility, and quality gates that block publish until lint+test pass.

semver lockfiles quality gates

prompttools-core

Shared foundation providing prompt parsing, tokenization, and model profiles used by all tools.

parsing tokenization profiles

Quick Start

Install from PyPI and start using each tool right away.

Install

pip install promptlint-ai promptfmt-ai prompttest-ai promptcost-ai promptdiff-ai promptvault-ai

promptlint

# Lint all prompt files in a directory
promptlint check ./prompts/

# Auto-fix issues
promptlint check --fix ./prompts/

promptfmt

# Format prompt files
promptfmt format ./prompts/

# Check without modifying
promptfmt format --check ./prompts/

prompttest

# Run tests
prompttest run tests/

# Output JUnit XML for CI
prompttest run tests/ --format junit

promptcost

# Estimate costs across models
promptcost estimate prompt.yaml --compare

# Enforce a budget ceiling in CI
promptcost budget prompt.yaml --limit 0.05

promptdiff

# Compare two prompt files
promptdiff old.yaml new.yaml

# CI gate: exit 1 on breaking changes
promptdiff old.yaml new.yaml --exit-on-breaking

promptvault

# Initialize a prompt package
promptvault init --name @my-org/my-prompts

# Publish and install
promptvault publish
promptvault install

Who It's For

Teams that treat prompts as code and want guardrails before investing in a hosted platform.

🏭

AI Product Teams

Ship prompts with the same rigor as application code. Lint in PRs, test in CI, track costs before they surprise you.

💻

OSS Maintainers

Version your prompts, detect breaking changes in diffs, and give contributors clear quality gates.

⚙

Platform Engineers

Enforce org-wide prompt standards with shared lint rules, cost budgets, and a local prompt registry.

🚀

Startups

Skip the hosted prompt platform. Get lint, format, test, diff, and versioning from pip install — free, local, Git-native.

Why prompttools

Local-first. Git-first. CI-first. No hosted platform required.

⚙

CI/CD Native

Exit codes, JUnit XML, JSON reporters, and breaking-change gates. Plug into GitHub Actions, GitLab CI, or any pipeline.

📊

10+ Model Profiles

Built-in pricing and token limits for GPT-4, Claude, Gemini, and more. Compare costs across models in one command.

🔌

Plugin System

Extend lint rules, formatters, and cost profiles with your own Python plugins.

📄

Multi-Format

YAML, JSON, Markdown, and plain text prompts. Parse once, lint/format/test/diff across all of them.

How It Compares

prompttools is the toolchain, not the platform.

Capability Hosted Platforms
(Maxim, Braintrust, Humanloop)
Promptfoo prompttools
Static analysis (lint) ✗ ✗ ✓ 34 rules + auto-fix
Auto-formatting ✗ ✗ ✓ 5-rule pipeline
Structural testing (no API call) ✗ ✗ ✓ 15 assertion types
Output testing (with API call) ✓ ✓ planned
Cost estimation as CI gate ✗ ✗ ✓ budget enforcement
Semantic diff with breaking changes UI only ✗ ✓ CLI + CI gate
Prompt versioning ✓ cloud ✗ ✓ local + lockfiles
Runs locally ✗ ✓ ✓
No account required ✗ ✓ ✓
Git-native CI integration partial ✓ ✓

prompttools composes with your existing Git workflow and CI pipeline. It doesn't replace your platform — it makes your prompts ready for one.