Skip to main content

Saga

PyPI Python versions CI License: MIT

AI writes most of our code now, and the pull requests it opens keep getting larger, denser, and more frequent. Writing is no longer the bottleneck, reviewing is. And a two-thousand-line diff across forty files doesn't fit in anyone's head; scrolling it top-to-bottom is how real bugs get waved through.

Saga turns that diff into a chapter-by-chapter guided tour. The whole change partitioned into an ordered story, each chapter narrated in plain language with just the hunks that belong to it. You review with judgment instead of drowning. Point it at a branch or a PR and you have one in seconds.

The output is one HTML file with everything inlined (diff2html, syntax highlighting, the data). Open it offline, email it, commit it, or drop it on any static host.

Walking through an example saga chapter by chapter
▶ Explore the interactive example →

New here? I wrote about why reviewing (not writing) is the job now, and how saga tackles it: the story behind saga →

Quickstart

To run saga with no install, diff your current branch with origin/main

cd your-repo
uvx --from saga-cli saga

Or generate a saga from a GitHub PR:

uvx --from saga-cli saga https://github.com/owner/repo/pull/5

Installation

Using saga regularly? Install it once so the command is just saga: uv tool install saga-cli (or pipx install saga-cli).

Documentation

Full docs live at https://jakeberesford.github.io/saga/:

  • Installation: requirements and how to install.
  • Usage: running on a branch or a PR, and every flag.
  • Providers: Anthropic, OpenAI, OpenRouter, local LLMs, and the Claude Code CLI.
  • Reviewing: leaving comments on a saga and publishing them to GitHub, or pulling them into your agent.
  • How it works: the pipeline, end to end.

Contributing? See CONTRIBUTING.md

Release files for saga-cli 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saga-cli 0.7.0
File Size Uploaded
saga_cli-0.7.0.tar.gz 1.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for saga-cli 0.7.0
File Interpreter ABI Platform
saga_cli-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / saga_cli-0.7.0.tar.gz

Download URL saga_cli-0.7.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
a6a758d2c18f861ccea095d1f80311670a1b85acc0b1a7fa1658d711f38de949
BLAKE2b-256 checksum
How to use checksums
63dcbb3ca3a6c95a5e55eb6781a94fc114fb73aed30d16ff7f70700df7bf8ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / saga_cli-0.7.0-py3-none-any.whl

Download URL saga_cli-0.7.0-py3-none-any.whl
Size 57.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8088b978cb80c6042e302dd6f09cd1d27f4bcbc58354a9eb42e312d5ba331a18
BLAKE2b-256 checksum
How to use checksums
aac6b40058cd16fa8c35dc58a50eace065c6318dd4052b5658d5d057cb4334fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

0.8.0

2 release files

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release 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