Skip to content

Quickstart Guide

Installation

pip install gptdiff

Configuration

Set your API key:

export GPTDIFF_LLM_API_KEY='your-api-key'

Your First Transformation

  1. Navigate to your project: bash cd myproject cat "# A collection of useful linux commands: ..."

  2. Generate and smartapply a diff: bash gptdiff "Add some useful linux commands" --apply

  3. Apply: bash git add -p git commit

Next Steps