Post

diffcue: closing the AI-CLI review loop

diffcue: closing the AI-CLI review loop

When I vibe-code with an AI CLI (Claude Code, Codebuddy, etc.), the loop is always the same: it makes changes, I read the diff, I want to say “line 42 is wrong, rename this” — and then I’m back in the terminal retyping file paths and line numbers. Reviewing in a scrolling terminal is slow and hides context. So I built diffcue to close that loop.

The idea

Review the diff → click lines to drop cues (little comments) → hit Copy Prompt → paste a clean, structured follow-up straight back into the CLI.

The output is exactly what the model wants to read:

1
2
- src/app/ui.cpp:42 - this is wrong, rename to foo
- src/git/diff.cpp:88 - handle CRLF here

Grouped by file, sorted by line. No retyping, no lost context.

What it does

  • GUI diff over your git working tree — side-by-side or inline.
  • Per-line cues persisted to a .diffcue/ sidecar (gitignored).
  • Stale-cue tracking when a target line disappears after edits.
  • Editable prompt pane before it hits the clipboard.
  • Drag-and-drop a folder to switch repos; Ctrl+O / Ctrl+F / Ctrl+Q.
  • Themes and editor palettes (Dracula, Dark/Light/Mariana).

Under the hood

C++17 with Dear ImGui (docking branch), a forked ImGuiColorTextEdit for the diff widget, GLFW + OpenGL, and NFD for the native folder picker. Git is just shelled out (git status / git show) — no libgit2. Everything statically links into a single self-contained binary.

Latest is v0.3.0. It’s MIT-licensed and, fittingly, itself created with GLM 5.2 + Codebuddy CLI → github.com/sindney/diffcue.

This post is licensed under CC BY 4.0 by the author.