Skip to main content

Review tool for plans and code diffs

Project description

redliner

A local review tool for AI agent work. Comment on plans and code diffs line-by-line, resolve feedback, and approve changes through a web UI or CLI.

The idea: an agent writes code, you redline it. Comments are stored as JSON files that the agent can read and act on.

Install

uv tool install redliner

Plan review

Review a plan file with inline comments:

redliner open plan.md        # web UI in your browser
redliner show plan.md        # print with line numbers and comments
redliner comment plan.md 10 "This needs more detail"
redliner list plan.md        # list all comments
redliner resolve plan.md 1   # resolve comment #1
redliner approve plan.md     # approve (fails if unresolved comments)

Diff review

Review working tree changes side by side:

redliner diff                 # opens all changes in web UI
redliner diff --path src/foo.py   # single file
redliner diff --no-open       # just print status as JSON

The diff view shows old and new versions in collapsible columns. Click any line to leave a comment.

How comments are stored

Comments are stored under $XDG_DATA_HOME/redliner/reviews/ (defaults to ~/.local/share/redliner/reviews/). Each review session (a plan file, or a diff over a repo) gets its own directory with comments.jsonl and meta.json.

comments.jsonl has one comment per line, each self-describing with the full file path:

{"id": 1, "file": "/abs/path/plan.md", "line": 42, "text": "Handle the None case", "status": "pending", "created": "..."}

meta.json tracks per-file review status:

{"files": {"/abs/path/plan.md": {"status": "approved", "approved_at": "..."}}}

The storage path is shown in the web UI header with a one-click copy button. From the CLI, redliner status <file> prints it as "storage". Agents can read comments.jsonl directly.

Agent workflow

  1. Agent writes code or a plan
  2. You run redliner diff or redliner open plan.md
  3. You leave comments on specific lines
  4. Agent reads the review JSON files and addresses feedback
  5. You review again until satisfied, then approve

Requirements

Python 3.12+. No external dependencies.

Project details


Download files

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

Source Distribution

redliner-0.4.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

redliner-0.4.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file redliner-0.4.0.tar.gz.

File metadata

  • Download URL: redliner-0.4.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redliner-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f586a88100d13ec9deaddc391a929e12cfb97a0ccfebe47a0e5d03777056c210
MD5 8a2cef69982dffe7b600b33dd5d00230
BLAKE2b-256 bdfcdc21617680f456b5abe104e0e667298e17ac14d27493761b37de82768951

See more details on using hashes here.

Provenance

The following attestation bundles were made for redliner-0.4.0.tar.gz:

Publisher: publish.yaml on PFigs/redliner

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

File details

Details for the file redliner-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: redliner-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redliner-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fd1d3d84bdce48f2cb9aa14c5372dbdd8fcca27a8b9f8376f04e63821d6f833
MD5 2ebd8c7735f66f210b902da3399a2d49
BLAKE2b-256 470e9bb3376255eb0d919eeaec63ed584bc4d3397ab100ec8e2451c1c06a0ff2

See more details on using hashes here.

Provenance

The following attestation bundles were made for redliner-0.4.0-py3-none-any.whl:

Publisher: publish.yaml on PFigs/redliner

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page