Skip to main content

culprit

git bisect thinking for prompts: compare what changed in behavior, not only in text.

CI codecov License: MIT

culprit diff terminal demo

pip install culprit-ai

Quickstart

cp examples/quickstart/culprit.yaml .
cp -r examples/quickstart/evals .
export OPENAI_API_KEY="..."
culprit diff HEAD~1 HEAD --eval-set evals/summarizer.yaml

Features

  • Semantic diff: an LLM summary backed by per-case eval evidence.

  • Behavioral bisect: binary-search prompt history to locate the first regression.

    culprit bisect terminal demo

  • Semantic merge (experimental): conservatively combine compatible branch edits and verify the result before staging it.

  • Git-native architecture: prompt history stays in ordinary Git.

  • Provider adapters for OpenAI, Anthropic, and arbitrary OpenAI-compatible endpoints.

  • Content-addressed evaluation cache to avoid repeat API spend.

  • culprit check warnings for common secret and PII patterns.

Why not just use X?

Tool Best fit How culprit differs
Promptfoo Broad prompt/model evaluation and red teaming culprit centers comparisons on Git revisions and commit history.
Confident AI / DeepEval Evaluation frameworks and hosted workflows culprit is a local Git wrapper with zero required backend.
promptvc Prompt versioning workflows culprit leaves version storage entirely to Git and adds eval-backed diffs.

These tools can complement culprit; the comparison is about workflow focus, not superiority.

Contributing

Phase 1 improvements are open for contribution. See CONTRIBUTING.md, including adapter guidance and suggested first issues.

Released under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

culprit_ai-0.1.4.tar.gz (232.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

culprit_ai-0.1.4-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file culprit_ai-0.1.4.tar.gz.

File metadata

  • Download URL: culprit_ai-0.1.4.tar.gz
  • Upload date:
  • Size: 232.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for culprit_ai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 efaa5688df0e516b46497b7b7bf80c78845398ab3378eb4c0e574771b07475ba
MD5 109c8fe63cd64213fc183d111dde201b
BLAKE2b-256 79a3fe09a09776dad286490b3ed1d18b16309b2a21f3e02cf4fd31993de3c86b

See more details on using hashes here.

Provenance

The following attestation bundles were made for culprit_ai-0.1.4.tar.gz:

Publisher: release.yml on abi6374/culprit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file culprit_ai-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: culprit_ai-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for culprit_ai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4e7e8c95b2b5437dd78601bea60cc97e77ed3ee3cd31dd47a435a1e6e4b3a2
MD5 d2b67aa162947fde2e30c3a41607abf4
BLAKE2b-256 b3b4ab63c02d08e65078a4aee26bddee70153cd6eb715e1c49f7ccba91e316d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for culprit_ai-0.1.4-py3-none-any.whl:

Publisher: release.yml on abi6374/culprit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page