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 saved as JSON sidecar files that the agent can read and act on.
Install
pip 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 live in .review.json sidecar files next to whatever you're reviewing:
plan.md -> plan.md.review.json
src/foo.py -> src/foo.py.review.json
{
"status": "in_review",
"comments": [
{"id": 1, "line": 42, "text": "Handle the None case", "status": "pending"}
]
}
Agents read these files, fix the issues, and you re-run the review.
Agent workflow
- Agent writes code or a plan
- You run
redliner difforredliner open plan.md - You leave comments on specific lines
- Agent reads the
.review.jsonfiles and addresses feedback - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redliner-0.1.0.tar.gz.
File metadata
- Download URL: redliner-0.1.0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ae62db08c462895802f14a64e43824c9e9cbf7e56dd66076dc4bc2abd82c916
|
|
| MD5 |
32b5cf10aaec3b49bc43f96c563abb82
|
|
| BLAKE2b-256 |
c1f6ff72305320112e10910b0eae31e6b3a2e655f5d485ac6eff907d2173d9a9
|
Provenance
The following attestation bundles were made for redliner-0.1.0.tar.gz:
Publisher:
publish.yaml on PFigs/redliner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redliner-0.1.0.tar.gz -
Subject digest:
0ae62db08c462895802f14a64e43824c9e9cbf7e56dd66076dc4bc2abd82c916 - Sigstore transparency entry: 1216064952
- Sigstore integration time:
-
Permalink:
PFigs/redliner@fb15c1221abd50023800992e986524a69f0d97b7 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/PFigs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@fb15c1221abd50023800992e986524a69f0d97b7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file redliner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: redliner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cc1f9c765ac2b6c5b7304e4ba420e471e1f9c920951577bdda2cb2668f2971a
|
|
| MD5 |
9b0d76523811b0a43133479c4115a005
|
|
| BLAKE2b-256 |
06d6ca3d710ed1b28061806784a577eae78f7aa938a8ebd41b4bd8946f593d84
|
Provenance
The following attestation bundles were made for redliner-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on PFigs/redliner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redliner-0.1.0-py3-none-any.whl -
Subject digest:
0cc1f9c765ac2b6c5b7304e4ba420e471e1f9c920951577bdda2cb2668f2971a - Sigstore transparency entry: 1216065018
- Sigstore integration time:
-
Permalink:
PFigs/redliner@fb15c1221abd50023800992e986524a69f0d97b7 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/PFigs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@fb15c1221abd50023800992e986524a69f0d97b7 -
Trigger Event:
release
-
Statement type: