promptdiff

promptdiff

// compare prompt versions. track iterations.

installation

npm install -g promptdiff

usage

# compare two prompt files
promptdiff v1.txt v2.txt

# show word-level diff
promptdiff v1.txt v2.txt --word

# output as JSON
promptdiff v1.txt v2.txt --json

# show token count diff
promptdiff v1.txt v2.txt --tokens
← back to all tools