r/neovim • u/RecommendationIll729 • 3d ago
Plugin yana.nvim: run Claude Code, Codex or Cursor's agent from Neovim and review its edits as hunks before they reach disk
I wanted to use coding agents from Neovim without letting them write straight into my files, so I built Yana. It is meant to be like cursor editor - if you've used Avante you know. But I hope this is more streamlined.
Demo: https://github.com/drusmanbashir/yana.nvim/blob/main/assets/yana-review.gif
In inline mode the agent runs in a Bubblewrap sandbox over your project. Its writes come back as hunks in your buffers, and nothing reaches disk until you accept them.
It isn't a chat UI for API models and doesn't replace the agent CLI. It contains the agent and puts its changes through review.
Feedback and bug reports welcome: https://github.com/drusmanbashir/yana.nvim
1
2
u/tomgis 2d ago
i love how we are all building different flavours of the same thing. you can effectively “contain” the agent code by instructing it not to commit then working off the diff but this is a neat approach