Skip to content

redlines

Compare two texts and see what changed — as markdown, rich terminal output, or JSON an agent can parse.
Terminal window
pip install redlines
redlines "the quick brown fox" "the quick red fox"

Quickstart

Install, compare two texts from the CLI or from Python, and find your way around the output formats.

Start here

Agent integration

Invocation, the JSON structure, exit codes, error handling and integration patterns for calling redlines from agents and automation.

Agent guide · llms.txt

API reference

Every class and method, generated from the docstrings that ship with the package.

API reference

Why it works this way

The decisions behind redlines 1.0 — what was rejected, and the conditions under which each should be revisited.

Decision records · Roadmap