# reslop

> A terminal-native CLI tool for reviewing AI-generated code diffs, leaving feedback and todos, and generating structured markdown plans for AI agents to execute.

reslop is an open-source, terminal-native CLI tool built by Timur Shemsedinov that bridges the gap between human code review and AI agent execution. It lets developers walk uncommitted git diffs, GitHub PRs, or GitLab MRs, annotate them with feedback and todos, and produce a structured markdown plan that an AI agent can then work through autonomously. The project is MIT-licensed, written in JavaScript, and requires Node.js 18+ with no runtime dependencies.

## What It Is

reslop sits at the intersection of code review and AI agent orchestration. Rather than simply reviewing code, it creates a feedback loop: a developer reviews AI-generated changes in the terminal, marks findings and todos, and the tool outputs a dated `.review/YYYY-MM-DD-NN.md` file with frontmatter status and checkbox-based action items. An AI agent then reads that file, executes the `ready` or `partial` items, and ticks off checkboxes as it goes — turning the review into a repair cycle.

## The Review-Plan-Repair Loop

The core workflow follows four stages: **Review → Plan → Repair → Verify**. The developer opens a diff (uncommitted changes, a specific commit, or a remote PR/MR URL), navigates block by block, and annotates each hunk with feedback or todos. When finished, quitting with `f` marks the plan `ready`. The agent picks up any file with `status: ready` or `status: partial`, works through unchecked items, and marks each `[x]` on completion. The four status values — `editing`, `ready`, `partial`, `done` — form a clear contract between the human reviewer and the AI agent.

## Terminal-Native Design

reslop is built entirely for the terminal with no runtime dependencies. Key design choices include:

- **Intra-line highlighting**: Stronger red/green paint on the exact tokens that differ, not the whole line, so a one-character edit is immediately visible.
- **Three layout modes**: Unified, mixed, and side-by-side, cycled with `m`.
- **Block-level actions**: Each contiguous hunk can be staged (`a`), unstaged (`u`), dropped to HEAD (`d`), or committed (`c`) directly from the review interface.
- **Clipboard support**: OSC 52 drag-to-copy with fallback to `wl-copy`, `xclip`, or `xsel`.
- Works on Linux, macOS, and Windows (Windows Terminal required on Windows).

## Scope Beyond Git Diffs

Beyond local uncommitted changes, reslop can review a specific commit by SHA, open a GitHub PR or GitLab MR by URL (importing review comments into the local plan), and inspect npm dependencies — proposing unused removals, audit fixes, and outdated updates as diffs. This makes it useful not just for AI-generated code review but for general dependency hygiene workflows driven by an agent.

## Update: v0.1.5

The latest release is **v0.1.5**, published on 2026-09-14, roughly one week after the repository was created on 2026-09-06. The rapid release cadence (five patch versions in under ten days) and the GitHub topic tags — `agent`, `ai`, `code-review`, `diff`, `llm`, `neuroslop`, `planning`, `refactoring`, `repair`, `sdd` — signal active early development. The project had 96 stars and 4 forks as of the last recorded update on 2026-09-15.

## Features
- Review uncommitted git diffs, commits, GitHub PRs, and GitLab MRs
- Intra-line diff highlighting on changed tokens
- Block-level actions: stage, unstage, drop to HEAD, commit
- Three layout modes: unified, mixed, side-by-side
- Feedback and todo annotations per diff block or file
- Generates dated markdown plan files with frontmatter status
- Agent contract: ready/partial/editing/done status lifecycle
- Import GitHub PR and GitLab MR review comments into local plan
- npm dependency review: unused removals, audit fixes, outdated updates
- OSC 52 clipboard support (wl-copy, xclip, xsel)
- No runtime dependencies, Node.js 18+ required
- Read-only mode for commit review
- Autosave while typing feedback or todos

## Integrations
Git, GitHub Pull Requests, GitLab Merge Requests, npm, Node.js

## Platforms
WINDOWS, MACOS, LINUX, API, CLI

## Pricing
Open Source

## Version
v0.1.5

## Links
- Website: https://reslop.it
- Documentation: https://reslop.it/#install
- Repository: https://github.com/tshemsedinov/reslop
- EveryDev.ai: https://www.everydev.ai/tools/reslop
