frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Revdiff – TUI diff reviewer with inline annotations for AI agents

https://github.com/umputun/revdiff
7•bumpa•1h ago
I built a terminal diff viewer for a workflow I couldn't do comfortably with existing tools: reviewing AI-generated code changes without leaving the terminal session where the agent runs, annotating what needs to change, and feeding those annotations straight back to the agent. Plenty of diff viewers exist, and some can even feed notes back to an agent, but none of them fit that flow for me - they pulled me out of the terminal into a separate app, or the round-trip back to the agent was clunky.

Revdiff is how I solved it. From a Claude Code session I type `/revdiff main` or just say "review diff for last 3 commits" - it opens as a terminal overlay on top of the agent session. I read the diff, drop annotations on any line, hunk, or file, then quit. The annotations go straight back to the agent, which picks them up and starts working on them. When the agent is done, revdiff reopens on the new changes so I can annotate again - and this loop continues until I quit without leaving any annotations.

The same flow turned out to be useful for plans too. There's a separate `revdiff-planning` plugin that hooks into Claude Code's plan mode - the moment the agent finishes a plan and calls ExitPlanMode, revdiff opens automatically on the plan text. I annotate the parts I disagree with or want expanded, quit, and the agent revises the plan before writing any code.

It's a two-pane TUI: file tree on the left, syntax-highlighted diff on the right. Vim-style navigation, /search, hunk jumping, word-level change highlighting, blame gutters, collapsed diff mode. Fully customizable - 7 bundled color themes, remappable keybindings, and per-color overrides via CLI flags, env vars, or config file. Works with git and Mercurial.

It's a single binary - just `revdiff HEAD~3` to review your last 3 commits. Ready-to-use plugins are available for Claude Code (terminal overlay via tmux, Zellij, kitty, wezterm, Kaku, cmux, ghostty, iTerm2, or Emacs vterm - whichever you're in), Codex, and pi.

Written in Go, open source (MIT). Install via brew: `brew install umputun/apps/revdiff`

GitHub: https://github.com/umputun/revdiff Site: https://revdiff.com

Would love to hear how others approach reviewing AI-generated diffs and PRs, any unusual use cases, and ideas for what to improve or add.

Comments

bumpa•1h ago
Author here, happy to answer questions or dig into the technical details.
hackmajoris•1h ago
I use it within OpenCode. I’m happy.

Show HN: Stork – MCP server so Claude/Cursor can search 14k MCP servers AI tools

https://www.stork.ai
1•usestork•36s ago•1 comments

Self-evolving daemon that 'dreams' about your codebase at night for AI agents

https://github.com/juyterman1000/entroly/
1•abbyedd•2m ago•0 comments

HUMANS.md

https://josem.co/humans.md/
1•josem•2m ago•0 comments

Footbag Patterns

http://www.footbag.org/footbags/patterns/
1•helterskelter•3m ago•0 comments

Staged homes sell for more than empty homes

https://marginalrevolution.com/marginalrevolution/2026/04/staged-homes-sell-for-more-than-empty-h...
1•neehao•3m ago•0 comments

Mutually Automated Destruction: The Escalating Global A.I. Arms Race

https://www.nytimes.com/2026/04/12/technology/china-russia-us-ai-weapons.html
1•johnbarron•4m ago•0 comments

Major European polluter EPH corporation hides over half its carbon emissions

https://denikreferendum.cz/clanek/238763-kretinskys-eph-corporation-hides-over-half-its-carbon-em...
1•kukakike•4m ago•0 comments

The Peril of Laziness Lost

https://bcantrill.dtrace.org/2026/04/12/the-peril-of-laziness-lost/
2•gpm•5m ago•0 comments

Rankle

https://github.com/semperos/rankle/blob/master/Rankle.ipynb
1•tosh•7m ago•0 comments

The Longest Outdoor Escalator Just Opened in China

https://www.smithsonianmag.com/smart-news/the-worlds-longest-outdoor-escalator-just-opened-in-chi...
1•mooreds•8m ago•0 comments

Terraform Versioning Guide

https://masterpoint.io/blog/ultimate-terraform-versioning-guide/
1•mooreds•9m ago•0 comments

'Witness Tampering'?: Live Nation Demands Sanctions Against State Plaintiffs

https://www.law.com/newyorklawjournal/2026/04/07/witness-tampering-live-nation-demands-sanctions-...
1•1vuio0pswjnm7•9m ago•0 comments

We Planned Surgery and Built a Hospital Instead

https://jaketoolson.com/we-planned-surgery-and-built-a-hospital-instead/
1•mooreds•9m ago•0 comments

Probabilistic Language Tries: Unified Framework for Compression and AI Execution

https://arxiv.org/abs/2604.06228
1•EGreg•9m ago•0 comments

An Interview with Alan Moore (2013)

https://www.thebeliever.net/an-interview-with-alan-moore/
1•cainxinth•10m ago•0 comments

Researchers develop biodegradable, plant-based packaging from natural fibers

https://theconversation.com/researchers-develop-biodegradable-plant-based-packaging-from-natural-...
1•PaulHoule•10m ago•0 comments

Live Nation Calls Expert Witness in Antitrust Trial a Liar

https://www.law.com/corpcounsel/2026/04/06/live-nation-calls-expert-witness-in-antitrust-trial-a-...
1•1vuio0pswjnm7•10m ago•0 comments

Viktor Orbán concedes defeat after 'painful' election result

https://apnews.com/article/hungary-election-orban-magyar-trump-1a4eb0ba6b94e0c80c3cd18bd36254ab
67•hackernj•12m ago•8 comments

Distributed AI Agents

https://s2.dev/blog/distributed-ai-agents
1•mesto1•14m ago•0 comments

Show HN: NeonD – open-source DX-oriented Postgres Control Plane

https://github.com/matisiekpl/neond/
2•matisiekpl•16m ago•0 comments

AI Is Like TV

https://fredrikmeyer.net/2026/04/09/ai-is-like-tv.html
2•FredrikMeyer•16m ago•0 comments

Scaling Managed Agents: Decoupling the brain from the hands

https://www.anthropic.com/engineering/managed-agents
2•gmays•17m ago•0 comments

Friends are hiding their best ideas from you

https://idiallo.com/blog/your-friends-are-hiding-their-ideas
3•firefoxd•20m ago•1 comments

Standard Control Flow Flattening is fundamentally broken

https://gist.github.com/xkilldash9x/e8ee393a5c681677b38c58f178e203a4
3•BlackVectorOps•21m ago•0 comments

The Blast Radius Principle

https://www.250bpm.com/p/the-blast-radius-principle
3•artbristol•21m ago•0 comments

MCP still matters, even and especially for devtools

https://docsalot.dev/blog/why-mcp-still-matters-if-you-already-have-a-cli
3•fazkan•21m ago•0 comments

A Brick of Coke

https://www.monochrom.at/experiences/coke.htm
2•proprietario•21m ago•0 comments

Show HN: I built a tool to bootstrap VLESS and REALITY over SSH (with rollback)

1•insany•21m ago•0 comments

Core views on AI safety (March 2023)

https://www.anthropic.com/news/core-views-on-ai-safety
2•Olshansky•21m ago•0 comments

The Quest to Identify a Westerner Called 'The Most Famous Face in China' (2022)

https://www.wsj.com/world/china/the-quest-to-identify-a-westerner-called-the-most-famous-face-in-...
3•acqbu•23m ago•1 comments