{"repo":"Cannon07/code-preview.nvim","free":true,"listed":false,"github":"https://github.com/Cannon07/code-preview.nvim","clone":"git clone https://github.com/Cannon07/code-preview.nvim.git","description":"A Neovim plugin that shows a live diff preview of AI coding agent's file edits before you accept or reject them.","language":"Lua","stars":177,"topics":["claude","neovim","nvim-plugin","preview","tmux","claude-code","opencode","copilot-cli-plugin","github-copilot-cli","codex"],"license":"MIT","category":"cli-tools","readme_excerpt":"code-preview.nvim Review every edit your AI coding agent makes as a native Neovim diff — before it's written to disk. Works with Claude Code , OpenCode , GitHub Copilot CLI , and OpenAI Codex CLI — on macOS, Linux, and Windows . --- Demo Shown with Claude Code. OpenCode, GitHub Copilot CLI, and Codex CLI work the same way — expand 📺 More demos below. --- Why Your AI coding agent proposes edits in its terminal — a cramped, scroll-past diff you have to eyeball before typing y . code-preview.nvim intercepts that moment and opens the proposed change as a real Neovim diff: full syntax highlighting, your colorscheme, your keymaps. Review it like any other diff, then accept or reject in the agent's CLI as usual. - 🔍 See edits as native diffs — side-by-side or GitHub-style inline, before anything touches disk - 🤝 Agent-agnostic — Claude Code, OpenCode, Copilot CLI, Codex CLI, with more agents planned - 🌳 Neo-tree integration — your file tree marks what's being modified, created, or deleted - 🪶 No Python — file transforms run through nvim --headless -l ; the only hard dep is Neovim 0.10+ 📺 More demos OpenCode GitHub Copilot CLI OpenAI Codex CLI Neo-tree integration --- Install With lazy.nvim: Manual (path-based) Requirements: Neovim = 0.10. Each agent has a couple of extra needs — see below. Per-agent requirements Agent Needs ------- ------- Claude Code Claude Code CLI (with hooks) · jq OpenCode OpenCode (a version with plugin support) GitHub Copilot CLI Copilot CLI (GA since Fe","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cannon07","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cannon07/code-preview.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}